diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index a9053c2..3de6d44 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -6,7 +6,7 @@ single `probitas` binary (Bun runtime embedded). ## Quick Reference - **Runtime**: Node.js + HonoX + Vite SSG -- **API Generation**: Deno 2.6 (`deno doc --json` schema version 1) +- **API Generation**: TypeDoc JSON from the npm packages - **Deploy**: GitHub Pages ## Commands @@ -15,9 +15,8 @@ single `probitas` binary (Bun runtime embedded). npm run dev # Dev server with HMR npm run build # Build static site (client + SSG + Pagefind) npm run preview # Preview production build - -# API docs generation (requires Deno 2.6 on PATH) -npm run generate-api +npm test # Check internal links in the built site +npm run generate-api # Regenerate data/api/ from the npm packages ``` ## Pre-Completion Verification @@ -34,6 +33,6 @@ When referencing Probitas API: - Scenarios import from `@probitas-test/probitas` (npm); the JSR mirror is `@probitas/probitas` -- Use `deno doc jsr:@probitas/{package}` for API data +- `data/api/{package}.json` holds the generated TypeDoc JSON of each package - Check `../probitas/` for the user-facing package and CLI source - Check `../probitas-packages/` for framework and client package source diff --git a/.claude/rules/architecture.md b/.claude/rules/architecture.md index 339c10b..547a0e6 100644 --- a/.claude/rules/architecture.md +++ b/.claude/rules/architecture.md @@ -42,16 +42,17 @@ documents/ │ ├── llms.ts # LLM-friendly endpoints generation │ ├── path.ts # basePath() helper for GitHub Pages │ ├── signature-formatters.ts # Type signature formatting +│ ├── type-format.ts # Type formatting (TypeDoc types to text and links) │ └── type-references.ts # Type reference resolution ├── data/ # Data modules -│ ├── api/ # Generated API JSON (deno doc --json) +│ ├── api/ # Generated API JSON (TypeDoc) │ ├── docs.ts # Documentation pages configuration │ └── api-pages.ts # API documentation loader ├── docs/ # Markdown documentation source ├── public/ # Static assets (CSS, images, favicon) ├── scripts/ # Build and generation scripts │ ├── post-build.js # Pagefind indexing & llms.txt.html→llms.txt rename -│ └── generate-api-docs.ts # Fetch & process API docs from JSR +│ └── generate-api-docs.ts # Generate API docs from the npm packages ├── package.json # npm dependencies ├── vite.config.ts # Vite + HonoX SSG configuration └── tsconfig.json # TypeScript configuration @@ -76,15 +77,21 @@ documents/ ### 1. API Documentation Generation ```bash -deno run -A scripts/generate-api-docs.ts +npm run generate-api ``` -1. Fetches all `@probitas/*` packages from JSR API -2. Runs `deno doc --json` for each package -3. Processes and filters exports (removes private items, imports, etc.) -4. Saves to `data/api/{package}.json` +1. Lists the `@probitas-test/*` packages of the npm organization +2. Installs their latest versions into a temporary directory +3. Runs TypeDoc on each package's entry point (the published `.ts` sources), + documenting other `@probitas-test` packages' symbols a package re-exports +4. Drops namespaces and TypeDoc's theme-only data, and saves the TypeDoc JSON + to `data/api/{package}.json` 5. Generates `data/api/index.json` with package metadata +The site reads the TypeDoc JSON for types only and never loads TypeDoc at +runtime. `vite.config.ts` keeps Vite from resolving `typedoc`, because HonoX +otherwise walks into it while looking for islands. + ### 2. Static Site Generation ```bash diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b24ca96..26af321 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,6 +33,8 @@ jobs: - run: npm run build + - run: npm test + # Upload artifact for GitHub Pages - name: Upload artifact if: github.ref == 'refs/heads/main' && github.event_name == 'push' diff --git a/README.md b/README.md index ff97eb8..e207fa4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Probitas Documentation -[![GitHub Pages](https://img.shields.io/badge/docs-GitHub%20Pages-blue)](https://probitas-test.github.io/documents) +[![GitHub Pages](https://img.shields.io/badge/docs-GitHub%20Pages-blue)](https://probitas-test.github.io/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE) Documentation site for [Probitas](https://github.com/probitas-test/probitas) - a @@ -34,7 +34,8 @@ npm run dev | `npm run dev` | Start dev server with HMR | | `npm run build` | Build static site to `dist/` (client + SSG + search) | | `npm run preview` | Preview built site | -| `npm run generate-api` | Regenerate API documentation JSON (requires Deno) | +| `npm test` | Check internal links in the built site | +| `npm run generate-api` | Regenerate API documentation JSON | ## Project Structure @@ -43,7 +44,7 @@ npm run dev ├── app/ # HonoX routes, templates, components, and libraries ├── docs/ # Markdown documentation source ├── data/ -│ ├── api/ # Generated API JSON (deno doc --json) +│ ├── api/ # Generated API JSON (TypeDoc) │ ├── index/ # Example scenarios shown on the home page │ └── docs.ts # Documentation pages configuration ├── public/ # Static assets (CSS, images, favicon) @@ -71,11 +72,11 @@ npm run dev ### Prerequisites - [Node.js](https://nodejs.org/) (LTS) -- [Deno](https://deno.land/) 2.6 to regenerate the API documentation ### Regenerating API Documentation -API documentation is generated from the JSR packages using `deno doc`: +API documentation is generated from the npm packages using +[TypeDoc](https://typedoc.org/): ```bash npm run generate-api @@ -83,15 +84,11 @@ npm run generate-api This script: -1. Fetches all `@probitas/*` packages from JSR API (skipping packages that are - no longer part of Probitas) -2. Runs `deno doc --json` for each package -3. Processes and saves the output to `data/api/` -4. Formats the generated JSON files - -The site renders version 1 of the `deno doc --json` schema. Newer Deno releases -emit version 2, which the script rejects; until the site supports the new -schema, run it with Deno 2.6 first on `PATH` (the script spawns `deno` itself). +1. Lists the `@probitas-test/*` packages of the npm organization +2. Installs their latest versions into a temporary directory +3. Runs TypeDoc on each package's entry point +4. Saves each package's TypeDoc JSON to `data/api/`, with an index of the + packages in `data/api/index.json` ### Build Process diff --git a/app/lib/api-docs.ts b/app/lib/api-docs.ts index 1f52902..364424f 100644 --- a/app/lib/api-docs.ts +++ b/app/lib/api-docs.ts @@ -1,9 +1,10 @@ /** * API documentation types and utilities * - * These types represent the structure of deno doc --json output - * and provide utilities for working with API documentation. + * The API data is TypeDoc's JSON output (one project per package, see + * scripts/generate-api-docs.ts). These helpers read it for display. */ +import type { JSONOutput } from "typedoc"; // ============================================================================ // Built-in Type Links @@ -78,267 +79,96 @@ export const BUILTIN_TYPE_LINKS: Record = { unknown: `${TS_BASE}/2/basic-types.html#unknown`, }; -/** - * Check if a type name is a built-in type - */ -export function isBuiltinType(typeName: string): boolean { - return typeName in BUILTIN_TYPE_LINKS; -} - -/** - * Get the documentation URL for a built-in type - */ -export function getBuiltinTypeUrl(typeName: string): string | undefined { - return BUILTIN_TYPE_LINKS[typeName]; -} - -// ============================================================================ -// JSDoc Types -// ============================================================================ - -export interface JsDocTag { - kind: string; - name?: string; - doc?: string; -} - -export interface JsDoc { - doc?: string; - tags?: JsDocTag[]; -} - -// ============================================================================ -// Type Definition Types -// ============================================================================ - -export interface TsTypeDef { - repr: string; - kind: string; - keyword?: string; - typeRef?: { - typeParams: TsTypeDef[] | null; - typeName: string; - }; - array?: TsTypeDef; - union?: TsTypeDef[]; - intersection?: TsTypeDef[]; - literal?: { - kind: string; - string?: string; - number?: number; - boolean?: boolean; - }; - fnOrConstructor?: { - constructor: boolean; - typeParams: TsTypeParamDef[]; - params: ParamDef[]; - returnType: TsTypeDef; - }; - typeOperator?: { - operator: string; - tsType: TsTypeDef; - }; - tuple?: TsTypeDef[]; - typeLiteral?: { - methods: MethodDef[]; - properties: PropertyDef[]; - callSignatures: CallSignatureDef[]; - indexSignatures: IndexSignatureDef[]; - }; - conditionalType?: { - checkType: TsTypeDef; - extendsType: TsTypeDef; - trueType: TsTypeDef; - falseType: TsTypeDef; - }; - infer?: { - typeParam: TsTypeParamDef; - }; -} - -export interface TsTypeParamDef { - name: string; - constraint?: TsTypeDef; - default?: TsTypeDef; -} - // ============================================================================ -// Parameter Types +// TypeDoc Model // ============================================================================ -export interface ParamDef { - kind: string; - name?: string; - optional?: boolean; - tsType?: TsTypeDef; - left?: ParamDef; - right?: string; - elements?: ParamDef[]; - props?: PropertyDef[]; -} +export type DeclarationReflection = JSONOutput.DeclarationReflection; +export type SignatureReflection = JSONOutput.SignatureReflection; +export type ParameterReflection = JSONOutput.ParameterReflection; +export type TypeParameterReflection = JSONOutput.TypeParameterReflection; +export type ProjectReflection = JSONOutput.ProjectReflection; +export type SomeType = JSONOutput.SomeType; +export type Comment = JSONOutput.Comment; +export type CommentDisplayPart = JSONOutput.CommentDisplayPart; -// ============================================================================ -// Method and Property Types -// ============================================================================ - -export interface MethodDef { - name: string; - jsDoc?: JsDoc; - accessibility?: "public" | "private" | "protected" | null; - optional?: boolean; - isAbstract?: boolean; - isStatic?: boolean; - typeParams: TsTypeParamDef[]; - params: ParamDef[]; - returnType?: TsTypeDef; -} - -export interface PropertyDef { - name: string; - jsDoc?: JsDoc; - tsType?: TsTypeDef; - readonly?: boolean; - accessibility?: "public" | "private" | "protected" | null; - optional?: boolean; - isAbstract?: boolean; - isStatic?: boolean; -} - -export interface CallSignatureDef { - jsDoc?: JsDoc; - typeParams: TsTypeParamDef[]; - params: ParamDef[]; - returnType?: TsTypeDef; -} - -export interface IndexSignatureDef { - readonly?: boolean; - params: ParamDef[]; - tsType?: TsTypeDef; -} - -// ============================================================================ -// Definition Types (function, class, interface, etc.) -// ============================================================================ - -export interface FunctionDef { - params: ParamDef[]; - returnType?: TsTypeDef; - hasBody: boolean; - isAsync: boolean; - isGenerator: boolean; - typeParams: TsTypeParamDef[]; -} - -export interface ConstructorDef { - jsDoc?: JsDoc; - accessibility?: "public" | "private" | "protected" | null; - hasBody: boolean; - name: string; - params: ParamDef[]; -} - -export interface ClassDef { - isAbstract: boolean; - constructors: ConstructorDef[]; - properties: PropertyDef[]; - indexSignatures: IndexSignatureDef[]; - methods: MethodDef[]; - extends?: string; - implements: TsTypeDef[]; - typeParams: TsTypeParamDef[]; - superTypeParams: TsTypeDef[]; -} - -export interface InterfaceDef { - extends: TsTypeDef[]; - methods: MethodDef[]; - properties: PropertyDef[]; - callSignatures: CallSignatureDef[]; - indexSignatures: IndexSignatureDef[]; - typeParams: TsTypeParamDef[]; -} - -export interface TypeAliasDef { - typeParams: TsTypeParamDef[]; - tsType: TsTypeDef; -} - -export interface EnumMemberDef { - name: string; - jsDoc?: JsDoc; - init?: TsTypeDef; -} - -export interface EnumDef { - members: EnumMemberDef[]; -} - -export interface VariableDef { - tsType?: TsTypeDef; - kind: "var" | "let" | "const"; -} - -export interface NamespaceDef { - elements: DocNode[]; -} - -// ============================================================================ -// DocNode - The main node type -// ============================================================================ - -export interface Location { - filename: string; - line: number; - col: number; - byteIndex: number; -} +/** + * TypeDoc's `ReflectionKind` values, copied so that the site does not load + * TypeDoc at runtime + */ +export const ReflectionKind = { + Project: 0x1, + Module: 0x2, + Namespace: 0x4, + Enum: 0x8, + EnumMember: 0x10, + Variable: 0x20, + Function: 0x40, + Class: 0x80, + Interface: 0x100, + Constructor: 0x200, + Property: 0x400, + Method: 0x800, + CallSignature: 0x1000, + IndexSignature: 0x2000, + ConstructorSignature: 0x4000, + Parameter: 0x8000, + TypeLiteral: 0x10000, + TypeParameter: 0x20000, + Accessor: 0x40000, + GetSignature: 0x80000, + SetSignature: 0x100000, + TypeAlias: 0x200000, + Reference: 0x400000, + Document: 0x800000, +} as const; + +/** The kinds of export an API page lists, in display order */ +export const EXPORT_KINDS = [ + "class", + "interface", + "function", + "typeAlias", + "variable", + "enum", +] as const; + +export type ExportKind = typeof EXPORT_KINDS[number]; + +const EXPORT_KIND_BY_REFLECTION_KIND = new Map([ + [ReflectionKind.Class, "class"], + [ReflectionKind.Interface, "interface"], + [ReflectionKind.Function, "function"], + [ReflectionKind.TypeAlias, "typeAlias"], + [ReflectionKind.Variable, "variable"], + [ReflectionKind.Enum, "enum"], +]); -export interface DocNode { - name: string; - isDefault?: boolean; - location: Location; - declarationKind: string; - jsDoc?: JsDoc; - kind: - | "moduleDoc" - | "function" - | "class" - | "interface" - | "typeAlias" - | "enum" - | "variable" - | "namespace" - | "import"; - functionDef?: FunctionDef; - classDef?: ClassDef; - interfaceDef?: InterfaceDef; - typeAliasDef?: TypeAliasDef; - enumDef?: EnumDef; - variableDef?: VariableDef; - namespaceDef?: NamespaceDef; +/** + * The export kind of a top-level reflection, or undefined for reflections an + * API page does not list (namespaces, re-export references) + */ +export function exportKind( + reflection: DeclarationReflection, +): ExportKind | undefined { + return EXPORT_KIND_BY_REFLECTION_KIND.get(reflection.kind); } // ============================================================================ // Package Documentation // ============================================================================ -export interface DenoDocOutput { - version: number; - nodes: DocNode[]; -} - export interface PackageDoc { - /** Package name (e.g., "probitas", "client-http") */ + /** Package name without the scope (e.g., "probitas", "client-http") */ name: string; - /** Full package specifier (e.g., "@probitas/probitas") */ + /** npm package name (e.g., "@probitas-test/probitas") */ specifier: string; /** Package version */ version: string; /** Module-level documentation */ - moduleDoc?: string; + moduleDoc?: Comment; /** Exported items */ - exports: DocNode[]; + exports: DeclarationReflection[]; } export interface ApiDocsIndex { @@ -363,187 +193,162 @@ export interface PackageInfo { counts: ExportCounts; } -// ============================================================================ -// Utilities -// ============================================================================ +/** + * Read a package's TypeDoc project as the site's package model + */ +export function toPackageDoc( + name: string, + project: ProjectReflection, +): PackageDoc { + resolveLinkTargets(project); + return { + name, + specifier: project.name, + version: project.packageVersion ?? "", + moduleDoc: project.comment, + exports: project.children ?? [], + }; +} /** - * Format a type definition as a readable string + * Replace the reflection IDs that `{@link}` tags point at with the names the + * page anchors use: `Name` for an export, `Name.member` for its member * - * @param type - The type definition to format - * @param indent - Current indentation level (used for nested conditionals) + * A link to a reflection the site does not render (such as a dropped + * namespace) loses its target and renders as plain text. */ -export function formatType(type?: TsTypeDef, indent = 0): string { - if (!type) return "unknown"; - - switch (type.kind) { - case "keyword": - return type.keyword ?? type.repr; - - case "typeRef": - if (type.typeRef) { - const params = type.typeRef.typeParams; - if (params && params.length > 0) { - return `${type.typeRef.typeName}<${ - params.map((p) => formatType(p, indent)).join(", ") - }>`; - } - return type.typeRef.typeName; - } - return type.repr; - - case "array": - return `${formatType(type.array, indent)}[]`; - - case "union": { - if (!type.union) return type.repr; - const members = type.union.map((t) => formatType(t, indent)); - const inline = members.join(" | "); - // Break into multiple lines if too long (>80 chars) and has multiple members - if (inline.length > 80 && members.length > 1) { - const spaces = " ".repeat(indent); - return members.map((m, i) => i === 0 ? m : `${spaces}| ${m}`).join( - "\n", - ); - } - return inline; - } - - case "intersection": { - if (!type.intersection) return type.repr; - const members = type.intersection.map((t) => formatType(t, indent)); - const inline = members.join(" & "); - // Break into multiple lines if too long (>80 chars) and has multiple members - if (inline.length > 80 && members.length > 1) { - const spaces = " ".repeat(indent); - return members.map((m, i) => i === 0 ? m : `${spaces}& ${m}`).join( - "\n", - ); - } - return inline; - } - - case "literal": - if (type.literal) { - if (type.literal.kind === "string") return `"${type.literal.string}"`; - if (type.literal.kind === "number") return String(type.literal.number); - if (type.literal.kind === "boolean") { - return String(type.literal.boolean); - } - } - return type.repr; - - case "tuple": - return `[${ - type.tuple?.map((t) => formatType(t, indent)).join(", ") ?? "" - }]`; - - case "fnOrConstructor": { - const fn = type.fnOrConstructor; - if (!fn) return type.repr; - const params = fn.params.map((p) => - `${p.name ?? "_"}: ${formatType(p.tsType, indent)}` - ).join(", "); - return `(${params}) => ${formatType(fn.returnType, indent)}`; +function resolveLinkTargets(project: ProjectReflection): void { + const names = new Map(); + for (const reflection of project.children ?? []) { + names.set(reflection.id, reflection.name); + for (const member of reflection.children ?? []) { + names.set(member.id, `${reflection.name}.${member.name}`); } + } - case "typeOperator": { - const op = type.typeOperator; - if (!op) return type.repr; - return `${op.operator} ${formatType(op.tsType, indent)}`; + const visit = (value: unknown): void => { + if (Array.isArray(value)) { + value.forEach(visit); + return; } - - case "typeLiteral": { - const lit = type.typeLiteral; - if (!lit) return type.repr; - const propStrings = lit.properties.map((p) => - `${p.name}${p.optional ? "?" : ""}: ${formatType(p.tsType, indent + 1)}` - ); - if (propStrings.length === 0) return "{}"; - const inline = `{ ${propStrings.join("; ")} }`; - // Break into multiple lines if too long (>80 chars) or has many properties - if (inline.length > 80 || propStrings.length > 3) { - const spaces = " ".repeat(indent); - const multiline = propStrings - .map((s) => `${spaces} ${s};`) - .join("\n"); - return `{\n${multiline}\n${spaces}}`; + if (!value || typeof value !== "object") return; + const part = value as Record; + if (part.kind === "inline-tag" && typeof part.target === "number") { + const qualifiedName = names.get(part.target); + if (qualifiedName === undefined) { + const text = String(part.text); + const isCode = part.tag === "@linkcode"; + delete part.tag; + delete part.target; + Object.assign( + part, + isCode ? { kind: "code", text: `\`${text}\`` } : { kind: "text", text }, + ); + } else { + part.target = { packageName: project.name, packagePath: "", qualifiedName }; } - return inline; + return; } + Object.values(value).forEach(visit); + }; + visit(project); +} - case "conditional": { - const cond = type.conditionalType; - if (!cond) return type.repr; +/** + * Count exports by kind + */ +export function countExports(exports: DeclarationReflection[]): ExportCounts { + const count = (kind: ExportKind) => + exports.filter((r) => exportKind(r) === kind).length; + return { + classes: count("class"), + interfaces: count("interface"), + functions: count("function"), + types: count("typeAlias"), + variables: count("variable"), + enums: count("enum"), + }; +} - const check = formatType(cond.checkType, indent); - const ext = formatType(cond.extendsType, indent); - const trueT = formatType(cond.trueType, indent); +// ============================================================================ +// Comments +// ============================================================================ - // If falseType is also conditional, format with line breaks for readability - if (cond.falseType.kind === "conditional") { - const spaces = " ".repeat(indent); - const falseT = formatType(cond.falseType, indent + 1); - return `${check} extends ${ext}\n${spaces} ? ${trueT}\n${spaces} : ${falseT}`; +/** + * Convert comment display parts to Markdown + * + * Inline `{@link}` tags are written back in JSDoc syntax; the Markdown + * renderer turns them into links to API anchors. + */ +export function partsToMarkdown(parts?: CommentDisplayPart[]): string { + if (!parts) return ""; + return parts.map((part) => { + if (part.kind === "inline-tag") { + if ( + part.tag === "@link" || part.tag === "@linkcode" || + part.tag === "@linkplain" + ) { + // A string target is a URL: link to it directly + if (typeof part.target === "string") { + const text = part.tag === "@linkcode" ? `\`${part.text}\`` : part.text; + return `[${text}](${part.target})`; + } + const tag = part.tag === "@linkcode" ? "linkcode" : "link"; + const target = linkTargetName(part.target) ?? part.text; + return target === part.text + ? `{@${tag} ${target}}` + : `{@${tag} ${target} ${part.text}}`; } - - const falseT = formatType(cond.falseType, indent); - return `${check} extends ${ext} ? ${trueT} : ${falseT}`; + return part.text; } - - case "infer": { - const inf = type.infer; - if (!inf) return type.repr; - return `infer ${inf.typeParam.name}`; - } - - default: - return type.repr || "unknown"; - } + return part.text; + }).join("").trim(); } -/** - * Format a parameter list as a readable string - */ -export function formatParams(params?: ParamDef[]): string { - if (!params) return ""; - return params.map((p) => { - const optional = p.optional ? "?" : ""; - const name = p.name ?? "_"; - const type = formatType(p.tsType); - return `${name}${optional}: ${type}`; - }).join(", "); +function linkTargetName( + target: JSONOutput.InlineTagDisplayPart["target"], +): string | undefined { + return target && typeof target === "object" + ? target.qualifiedName + : undefined; } /** - * Format type parameters (generics) + * The comment documenting a reflection + * + * TypeDoc attaches the comment of a function or method to its signature, and + * that of an accessor to its getter. */ -export function formatTypeParams(typeParams?: TsTypeParamDef[]): string { - if (!typeParams || typeParams.length === 0) return ""; - return `<${ - typeParams.map((p) => { - let result = p.name; - if (p.constraint) result += ` extends ${formatType(p.constraint)}`; - if (p.default) result += ` = ${formatType(p.default)}`; - return result; - }).join(", ") - }>`; +export function commentOf( + reflection: DeclarationReflection | SignatureReflection, +): Comment | undefined { + const declaration = reflection as DeclarationReflection; + return reflection.comment ?? + declaration.signatures?.find((s) => s.comment)?.comment ?? + declaration.getSignature?.comment; } /** - * Get the JSDoc description for a node + * Get the description of a reflection (its summary and remarks) as Markdown */ -export function getDescription(node: { jsDoc?: JsDoc }): string | undefined { - return node.jsDoc?.doc; +export function getDescription( + reflection: DeclarationReflection | SignatureReflection, +): string | undefined { + const comment = commentOf(reflection); + const paragraphs = [ + partsToMarkdown(comment?.summary), + ...blockTags(comment, "@remarks"), + ].filter(Boolean); + return paragraphs.join("\n\n") || undefined; } /** * Get just the first sentence or line of the description (for summaries) */ export function getDescriptionSummary( - node: { jsDoc?: JsDoc }, + reflection: DeclarationReflection | SignatureReflection, ): string | undefined { - const doc = node.jsDoc?.doc; + const doc = getDescription(reflection); if (!doc) return undefined; // Try to get first sentence (ending with period followed by space/newline) @@ -558,110 +363,102 @@ export function getDescriptionSummary( } /** - * Get JSDoc tags by kind + * Get the contents of a comment's block tags as Markdown + * + * A tag's name comes first when it has one, as with an `@example` whose first + * line titles it. */ -export function getTagsByKind( - node: { jsDoc?: JsDoc }, - kind: string, -): JsDocTag[] { - return node.jsDoc?.tags?.filter((t) => t.kind === kind) ?? []; +function blockTags(comment: Comment | undefined, tag: string): string[] { + return (comment?.blockTags ?? []) + .filter((t) => t.tag === tag) + .map((t) => + [t.name, partsToMarkdown(t.content)].filter(Boolean).join("\n\n") + ) + .filter(Boolean); } /** - * Get the @example tags from a node + * Get the @example blocks of a reflection as Markdown */ -export function getExamples(node: { jsDoc?: JsDoc }): string[] { - return getTagsByKind(node, "example").map((t) => t.doc ?? "").filter(Boolean); +export function getExamples( + reflection: DeclarationReflection | SignatureReflection, +): string[] { + return blockTags(commentOf(reflection), "@example"); } /** - * Get the @param tags from a node + * Get the documentation of each parameter of a signature, by name */ export function getParamDocs( - node: { jsDoc?: JsDoc }, + signature: SignatureReflection | undefined, ): Map { const result = new Map(); - for (const tag of getTagsByKind(node, "param")) { - if (tag.name && tag.doc) { - result.set(tag.name, tag.doc); - } + for (const param of signature?.parameters ?? []) { + const doc = partsToMarkdown(param.comment?.summary); + if (doc) result.set(param.name, doc); } return result; } /** - * Get the @return/@returns tag from a node + * Get the @returns documentation of a signature */ -export function getReturnDoc(node: { jsDoc?: JsDoc }): string | undefined { - const returnTag = getTagsByKind(node, "return")[0] ?? - getTagsByKind(node, "returns")[0]; - return returnTag?.doc; +export function getReturnDoc( + signature: SignatureReflection | undefined, +): string | undefined { + return blockTags(signature?.comment, "@returns")[0]; } +// ============================================================================ +// Filtering and Grouping +// ============================================================================ + /** - * Check if a node should be included in documentation (not private) + * Check if a reflection should be included in documentation (not private) */ -export function isPublic(node: DocNode): boolean { - // Skip private or internal items - if (node.name.startsWith("_")) return false; - - // Skip moduleDoc entries (they're handled separately) - if (node.kind === "moduleDoc") return false; - - // Check for @internal or @private tags - const tags = node.jsDoc?.tags ?? []; - if (tags.some((t) => t.kind === "internal" || t.kind === "private")) { - return false; - } - - return true; +export function isPublic( + reflection: DeclarationReflection | SignatureReflection, +): boolean { + if (reflection.name.startsWith("_")) return false; + if (reflection.flags.isPrivate || reflection.flags.isProtected) return false; + const modifiers = reflection.comment?.modifierTags ?? []; + return !modifiers.includes("@internal") && !modifiers.includes("@private"); } /** - * Group exports by kind for display + * Check if a top-level reflection is an export an API page lists */ -export function groupByKind( - nodes: DocNode[], -): Record { - const groups: Record = {}; - for (const node of nodes) { - const kind = node.kind; - if (!groups[kind]) groups[kind] = []; - groups[kind].push(node); - } - // Sort each group by name - for (const kind of Object.keys(groups)) { - groups[kind].sort((a, b) => a.name.localeCompare(b.name)); - } - return groups; +export function isDocumentedExport(reflection: DeclarationReflection): boolean { + return exportKind(reflection) !== undefined && isPublic(reflection); } /** - * Deduplicate nodes by name (keep first occurrence) - * This is needed because overloaded functions appear multiple times + * The members of a class, interface, or object type that the page documents: + * public, and declared on the type itself rather than inherited */ -export function deduplicateByName(nodes: DocNode[]): DocNode[] { - const seen = new Set(); - return nodes.filter((node) => { - const key = `${node.kind}:${node.name}`; - if (seen.has(key)) return false; - seen.add(key); - return true; - }); +export function ownMembers( + reflection: DeclarationReflection, +): DeclarationReflection[] { + return (reflection.children ?? []).filter((member) => + isPublic(member) && !member.inheritedFrom + ); } /** - * Group nodes by name to handle overloads - * Returns a map where key is "kind:name" and value is array of all overloads + * Group exports by kind for display */ -export function groupByName(nodes: DocNode[]): Map { - const groups = new Map(); - for (const node of nodes) { - const key = `${node.kind}:${node.name}`; - if (!groups.has(key)) { - groups.set(key, []); - } - groups.get(key)!.push(node); +export function groupByKind( + reflections: DeclarationReflection[], +): Partial> { + const groups: Partial> = {}; + for (const reflection of reflections) { + const kind = exportKind(reflection); + if (!kind) continue; + (groups[kind] ??= []).push(reflection); + } + // Sort each group by name + for (const group of Object.values(groups)) { + group.sort((a, b) => a.name.localeCompare(b.name)); } return groups; } diff --git a/app/lib/api-markdown.ts b/app/lib/api-markdown.ts index d6d2524..0909b51 100644 --- a/app/lib/api-markdown.ts +++ b/app/lib/api-markdown.ts @@ -6,25 +6,21 @@ * collected and output as a Related Links section at the end. */ import type { - ClassDef, - DocNode, - FunctionDef, - InterfaceDef, + DeclarationReflection, + ExportKind, PackageDoc, - TsTypeDef, - TsTypeParamDef, - TypeAliasDef, } from "./api-docs.ts"; import { BUILTIN_TYPE_LINKS, - deduplicateByName, - formatType, getDescription, getExamples, getParamDocs, getReturnDoc, - groupByName, - isPublic, + groupByKind, + isDocumentedExport, + ownMembers, + partsToMarkdown, + ReflectionKind, } from "./api-docs.ts"; import { formatClassSignature, @@ -33,21 +29,21 @@ import { formatInterfaceSignature, formatMethodSignature, formatTypeAliasSignature, + formatVariableSignature, } from "./signature-formatters.ts"; +import { formatType } from "./type-format.ts"; +import { TypeRefCollector } from "./type-references.ts"; /** * Get the base URL for the site from environment variable. - * Falls back to the default GitHub Pages URL. + * Falls back to the GitHub Pages URL. */ function getBaseUrl(): string { - return ( - import.meta.env?.BASE_URL_FULL ?? - "https://probitas-test.github.io/documents" - ); + return import.meta.env?.BASE_URL_FULL ?? "https://probitas-test.github.io"; } // ============================================================================ -// Type Reference Collector +// Type Links // ============================================================================ interface TypeLinkInfo { @@ -59,460 +55,260 @@ interface TypeLinkInfo { } /** - * Collects type references and resolves them to links + * Resolve collected type references to links, sorted local first, then + * cross-package, then built-in */ -class TypeReferenceCollector { - #refs = new Set(); - #localTypes: Set; - #typeToPackage: Map; - #currentPackage: string; - #baseUrl: string; - - constructor( - localTypes: Set, - typeToPackage: Map, - currentPackage: string, - baseUrl = getBaseUrl(), - ) { - this.#localTypes = localTypes; - this.#typeToPackage = typeToPackage; - this.#currentPackage = currentPackage; - this.#baseUrl = baseUrl; - } - - /** - * Add a type reference - */ - add(typeName: string): void { - this.#refs.add(typeName); - } +function resolveLinks( + refs: Set, + localTypes: Set, + typeToPackage: Map, + currentPackage: string, + baseUrl: string, +): TypeLinkInfo[] { + const links: TypeLinkInfo[] = []; + + for (const name of refs) { + if (name in BUILTIN_TYPE_LINKS) { + links.push({ + name, + href: BUILTIN_TYPE_LINKS[name], + isBuiltin: true, + isLocal: false, + isCrossPackage: false, + }); + continue; + } - /** - * Extract and add all type references from a TsTypeDef - */ - extractFrom(type: TsTypeDef | undefined): void { - if (!type) return; - - switch (type.kind) { - case "typeRef": - if (type.typeRef?.typeName) { - this.add(type.typeRef.typeName); - type.typeRef.typeParams?.forEach((t) => this.extractFrom(t)); - } - break; - case "array": - this.extractFrom(type.array); - break; - case "union": - type.union?.forEach((t) => this.extractFrom(t)); - break; - case "intersection": - type.intersection?.forEach((t) => this.extractFrom(t)); - break; - case "tuple": - type.tuple?.forEach((t) => this.extractFrom(t)); - break; - case "fnOrConstructor": - if (type.fnOrConstructor) { - type.fnOrConstructor.params.forEach((p) => - this.extractFrom(p.tsType) - ); - this.extractFrom(type.fnOrConstructor.returnType); - } - break; - case "typeOperator": - this.extractFrom(type.typeOperator?.tsType); - break; - case "typeLiteral": - if (type.typeLiteral) { - type.typeLiteral.properties.forEach((p) => - this.extractFrom(p.tsType) - ); - type.typeLiteral.methods.forEach((m) => { - m.params.forEach((p) => this.extractFrom(p.tsType)); - this.extractFrom(m.returnType); - }); - } - break; + if (localTypes.has(name)) { + links.push({ + name, + href: `${baseUrl}/api/${currentPackage}#${name}`, + isBuiltin: false, + isLocal: true, + isCrossPackage: false, + }); + continue; } - } - /** - * Extract type refs from type parameters - */ - extractFromTypeParams(typeParams: TsTypeParamDef[] | undefined): void { - if (!typeParams) return; - for (const p of typeParams) { - this.extractFrom(p.constraint); - this.extractFrom(p.default); + const pkg = typeToPackage.get(name); + if (pkg && pkg !== currentPackage) { + links.push({ + name, + href: `${baseUrl}/api/${pkg}#${name}`, + isBuiltin: false, + isLocal: false, + isCrossPackage: true, + }); } } - /** - * Get all collected links, sorted and categorized - */ - getLinks(): TypeLinkInfo[] { - const links: TypeLinkInfo[] = []; - - for (const name of this.#refs) { - // Check if built-in type - if (name in BUILTIN_TYPE_LINKS) { - links.push({ - name, - href: BUILTIN_TYPE_LINKS[name], - isBuiltin: true, - isLocal: false, - isCrossPackage: false, - }); - continue; - } - - // Check if local type - if (this.#localTypes.has(name)) { - links.push({ - name, - href: `${this.#baseUrl}/api/${this.#currentPackage}#${name}`, - isBuiltin: false, - isLocal: true, - isCrossPackage: false, - }); - continue; - } - - // Check if cross-package type - if (this.#typeToPackage.has(name)) { - const pkg = this.#typeToPackage.get(name)!; - if (pkg !== this.#currentPackage) { - links.push({ - name, - href: `${this.#baseUrl}/api/${pkg}#${name}`, - isBuiltin: false, - isLocal: false, - isCrossPackage: true, - }); - } - } + return links.sort((a, b) => { + if (a.isLocal !== b.isLocal) return a.isLocal ? -1 : 1; + if (a.isCrossPackage !== b.isCrossPackage) { + return a.isCrossPackage ? -1 : 1; } - - // Sort: local first, then cross-package, then builtin - return links.sort((a, b) => { - if (a.isLocal !== b.isLocal) return a.isLocal ? -1 : 1; - if (a.isCrossPackage !== b.isCrossPackage) { - return a.isCrossPackage ? -1 : 1; - } - return a.name.localeCompare(b.name); - }); - } + return a.name.localeCompare(b.name); + }); } // ============================================================================ // Section Generators // ============================================================================ -function generateFunctionMarkdown( - node: DocNode, - def: FunctionDef, - collector: TypeReferenceCollector, -): string { - const lines: string[] = []; - - lines.push(`### \`${node.name}\``); - lines.push(""); - lines.push("```typescript"); - lines.push(formatFunctionSignature(node.name, def)); - lines.push("```"); - lines.push(""); - - // Extract type refs - collector.extractFromTypeParams(def.typeParams); - def.params.forEach((p) => collector.extractFrom(p.tsType)); - collector.extractFrom(def.returnType); - - // Description - const description = getDescription(node); - if (description) { - lines.push(description); - lines.push(""); - } - - // Parameters - if (def.params.length > 0) { - const paramDocs = getParamDocs(node); - lines.push("**Parameters:**"); - lines.push(""); - for (const param of def.params) { - const name = param.name ?? "_"; - const optional = param.optional ? " (optional)" : ""; - const type = formatType(param.tsType); - const doc = paramDocs.get(name); - lines.push( - `- \`${name}\`: \`${type}\`${optional}${doc ? ` — ${doc}` : ""}`, - ); - } - lines.push(""); - } - - // Returns - const returnDoc = getReturnDoc(node); - if (def.returnType || returnDoc) { - lines.push("**Returns:** `" + formatType(def.returnType) + "`"); - if (returnDoc) { - lines.push(""); - lines.push(returnDoc); - } - lines.push(""); - } - - // Examples - doc field is already Markdown, output as-is - const examples = getExamples(node); - if (examples.length > 0) { - lines.push("**Example:**"); - lines.push(""); - for (const example of examples) { - lines.push(example.trim()); - lines.push(""); - } - } - - return lines.join("\n"); +function codeBlock(code: string): string[] { + return ["```typescript", code, "```", ""]; } -function generateClassMarkdown( - node: DocNode, - def: ClassDef, - collector: TypeReferenceCollector, -): string { - const lines: string[] = []; - - lines.push(`### \`${node.name}\``); - lines.push(""); - lines.push("```typescript"); - lines.push(formatClassSignature(node.name, def)); - lines.push("```"); - lines.push(""); - - // Extract type refs - collector.extractFromTypeParams(def.typeParams); - def.implements.forEach((t) => collector.extractFrom(t)); - - // Description - const description = getDescription(node); - if (description) { - lines.push(description); - lines.push(""); - } +function paragraph(text: string | undefined): string[] { + return text ? [text, ""] : []; +} - // Constructor - if (def.constructors.length > 0) { - lines.push("**Constructor:**"); - lines.push(""); - for (const ctor of def.constructors) { - lines.push("```typescript"); - lines.push(formatConstructorSignature(node.name, ctor.params)); - lines.push("```"); - lines.push(""); - ctor.params.forEach((p) => collector.extractFrom(p.tsType)); - } - } +function examples(reflection: DeclarationReflection): string[] { + const blocks = getExamples(reflection); + if (blocks.length === 0) return []; + // Examples are already Markdown, output as-is + return ["**Example:**", "", ...blocks.flatMap((e) => [e.trim(), ""])]; +} - // Properties - const publicProps = def.properties.filter( - (p) => p.accessibility !== "private" && !p.name.startsWith("_"), +/** + * A bullet list of properties: `- [readonly] \`name?\`: \`Type\` — description` + */ +function propertyList(members: DeclarationReflection[]): string[] { + const properties = members.filter((m) => + m.kind === ReflectionKind.Property || m.kind === ReflectionKind.Accessor ); - if (publicProps.length > 0) { - lines.push("**Properties:**"); - lines.push(""); - for (const prop of publicProps) { - collector.extractFrom(prop.tsType); + if (properties.length === 0) return []; + return [ + "**Properties:**", + "", + ...properties.map((prop) => { + const isAccessor = prop.kind === ReflectionKind.Accessor; const modifiers: string[] = []; - if (prop.isStatic) modifiers.push("static"); - if (prop.readonly) modifiers.push("readonly"); + if (prop.flags.isStatic) modifiers.push("static"); + if (isAccessor ? !prop.setSignature : prop.flags.isReadonly) { + modifiers.push("readonly"); + } const prefix = modifiers.length > 0 ? `[${modifiers.join(", ")}] ` : ""; - const optional = prop.optional ? "?" : ""; - const desc = getDescription(prop); - lines.push( - `- ${prefix}\`${prop.name}${optional}\`: \`${ - formatType(prop.tsType) - }\`${desc ? ` — ${desc}` : ""}`, + const optional = prop.flags.isOptional ? "?" : ""; + const type = formatType( + isAccessor ? prop.getSignature?.type : prop.type, + { multiline: false }, ); - } - lines.push(""); - } - - // Methods - const publicMethods = def.methods.filter( - (m) => m.accessibility !== "private" && !m.name.startsWith("_"), - ); - if (publicMethods.length > 0) { - lines.push("**Methods:**"); - lines.push(""); - for (const method of publicMethods) { - lines.push("```typescript"); - lines.push(formatMethodSignature(method)); - lines.push("```"); - - collector.extractFromTypeParams(method.typeParams); - method.params?.forEach((p) => collector.extractFrom(p.tsType)); - collector.extractFrom(method.returnType); - - const desc = getDescription(method); - if (desc) { - lines.push(""); - lines.push(desc); - } - lines.push(""); - } - } - - // Examples - doc field is already Markdown, output as-is - const examples = getExamples(node); - if (examples.length > 0) { - lines.push("**Example:**"); - lines.push(""); - for (const example of examples) { - lines.push(example.trim()); - lines.push(""); - } - } - - return lines.join("\n"); + const desc = getDescription(prop); + return `- ${prefix}\`${prop.name}${optional}\`: \`${type}\`${ + desc ? ` — ${desc}` : "" + }`; + }), + "", + ]; } -function generateInterfaceMarkdown( - node: DocNode, - def: InterfaceDef, - collector: TypeReferenceCollector, -): string { - const lines: string[] = []; - - lines.push(`### \`${node.name}\``); - lines.push(""); - lines.push("```typescript"); - lines.push(formatInterfaceSignature(node.name, def)); - lines.push("```"); - lines.push(""); - - // Extract type refs - collector.extractFromTypeParams(def.typeParams); - def.extends.forEach((t) => collector.extractFrom(t)); +function methodList(members: DeclarationReflection[]): string[] { + const methods = members.filter((m) => m.kind === ReflectionKind.Method); + if (methods.length === 0) return []; + return [ + "**Methods:**", + "", + ...methods.flatMap((method) => + (method.signatures ?? []).flatMap((signature) => { + const desc = getDescription(signature); + return [ + "```typescript", + formatMethodSignature(method, signature), + "```", + ...(desc ? ["", desc] : []), + "", + ]; + }) + ), + ]; +} - // Description - const description = getDescription(node); - if (description) { - lines.push(description); - lines.push(""); +function generateFunctionMarkdown(reflection: DeclarationReflection): string[] { + const signatures = reflection.signatures ?? []; + if (signatures.length > 1) { + return [ + `### \`${reflection.name}\` (${signatures.length} overloads)`, + "", + ...signatures.flatMap((signature, i) => [ + `**Overload ${i + 1}:**`, + "", + ...codeBlock(formatFunctionSignature(reflection.name, signature)), + ...paragraph(getDescription(signature)), + ]), + ...examples(reflection), + ]; } - // Properties - if (def.properties.length > 0) { - lines.push("**Properties:**"); - lines.push(""); - for (const prop of def.properties) { - collector.extractFrom(prop.tsType); - const readonly = prop.readonly ? "[readonly] " : ""; - const optional = prop.optional ? "?" : ""; - const desc = getDescription(prop); + const [signature] = signatures; + if (!signature) return []; + const lines = [ + `### \`${reflection.name}\``, + "", + ...codeBlock(formatFunctionSignature(reflection.name, signature)), + ...paragraph(getDescription(reflection)), + ]; + + const params = signature.parameters ?? []; + if (params.length > 0) { + const paramDocs = getParamDocs(signature); + lines.push("**Parameters:**", ""); + for (const param of params) { + const optional = param.flags.isOptional ? " (optional)" : ""; + const type = formatType(param.type, { multiline: false }); + const doc = paramDocs.get(param.name); lines.push( - `- ${readonly}\`${prop.name}${optional}\`: \`${ - formatType(prop.tsType) - }\`${desc ? ` — ${desc}` : ""}`, + `- \`${param.name}\`: \`${type}\`${optional}${doc ? ` — ${doc}` : ""}`, ); } lines.push(""); } - // Methods - if (def.methods.length > 0) { - lines.push("**Methods:**"); - lines.push(""); - for (const method of def.methods) { - lines.push("```typescript"); - lines.push(formatMethodSignature(method)); - lines.push("```"); - - collector.extractFromTypeParams(method.typeParams); - method.params?.forEach((p) => collector.extractFrom(p.tsType)); - collector.extractFrom(method.returnType); - - const desc = getDescription(method); - if (desc) { - lines.push(""); - lines.push(desc); - } - lines.push(""); - } - } - - // Examples - doc field is already Markdown, output as-is - const examples = getExamples(node); - if (examples.length > 0) { - lines.push("**Example:**"); - lines.push(""); - for (const example of examples) { - lines.push(example.trim()); - lines.push(""); - } - } + const returnDoc = getReturnDoc(signature); + lines.push( + `**Returns:** \`${formatType(signature.type, { multiline: false })}\``, + ); + if (returnDoc) lines.push("", returnDoc); + lines.push(""); - return lines.join("\n"); + lines.push(...examples(reflection)); + return lines; } -function generateTypeAliasMarkdown( - node: DocNode, - def: TypeAliasDef, - collector: TypeReferenceCollector, -): string { - const lines: string[] = []; - - lines.push(`### \`${node.name}\``); - lines.push(""); - lines.push("```typescript"); - lines.push(formatTypeAliasSignature(node.name, def)); - lines.push("```"); - lines.push(""); - - // Extract type refs - collector.extractFromTypeParams(def.typeParams); - collector.extractFrom(def.tsType); +function generateClassMarkdown(reflection: DeclarationReflection): string[] { + const members = ownMembers(reflection); + const constructors = members + .filter((m) => m.kind === ReflectionKind.Constructor) + .flatMap((m) => m.signatures ?? []); + return [ + `### \`${reflection.name}\``, + "", + ...codeBlock(formatClassSignature(reflection)), + ...paragraph(getDescription(reflection)), + ...(constructors.length > 0 + ? [ + "**Constructor:**", + "", + ...constructors.flatMap((signature) => + codeBlock(formatConstructorSignature(reflection.name, signature)) + ), + ] + : []), + ...propertyList(members), + ...methodList(members), + ...examples(reflection), + ]; +} - // Description - const description = getDescription(node); - if (description) { - lines.push(description); - lines.push(""); - } +function generateInterfaceMarkdown( + reflection: DeclarationReflection, +): string[] { + const members = ownMembers(reflection); + return [ + `### \`${reflection.name}\``, + "", + ...codeBlock(formatInterfaceSignature(reflection)), + ...paragraph(getDescription(reflection)), + ...propertyList(members), + ...methodList(members), + ...examples(reflection), + ]; +} - return lines.join("\n"); +function generateTypeAliasMarkdown( + reflection: DeclarationReflection, +): string[] { + return [ + `### \`${reflection.name}\``, + "", + ...codeBlock(formatTypeAliasSignature(reflection)), + ...paragraph(getDescription(reflection)), + ...examples(reflection), + ]; } function generateVariableMarkdown( - node: DocNode, - collector: TypeReferenceCollector, -): string { - const lines: string[] = []; - const def = node.variableDef; - const kind = def?.kind ?? "const"; - - lines.push(`### \`${node.name}\``); - lines.push(""); - lines.push("```typescript"); - lines.push(`${kind} ${node.name}: ${formatType(def?.tsType)}`); - lines.push("```"); - lines.push(""); - - // Extract type refs - collector.extractFrom(def?.tsType); - - // Description - const description = getDescription(node); - if (description) { - lines.push(description); - lines.push(""); - } - - return lines.join("\n"); + reflection: DeclarationReflection, +): string[] { + return [ + `### \`${reflection.name}\``, + "", + ...codeBlock(formatVariableSignature(reflection)), + ...paragraph(getDescription(reflection)), + ...examples(reflection), + ]; } +const SECTIONS: Array< + [ExportKind, string, (reflection: DeclarationReflection) => string[]] +> = [ + ["class", "Classes", generateClassMarkdown], + ["interface", "Interfaces", generateInterfaceMarkdown], + ["function", "Functions", generateFunctionMarkdown], + ["typeAlias", "Types", generateTypeAliasMarkdown], + ["variable", "Variables", generateVariableMarkdown], +]; + // ============================================================================ // Main Generator // ============================================================================ @@ -533,180 +329,63 @@ export function generateApiMarkdown( pkg: PackageDoc, options: ApiMarkdownOptions = {}, ): string { - const lines: string[] = []; const { allPackages = [], baseUrl = getBaseUrl(), updatedAt, } = options; - // Build local types set - const localTypes = new Set(); - for (const node of pkg.exports) { - if (isPublic(node)) { - localTypes.add(node.name); - } - } + const exports = pkg.exports.filter(isDocumentedExport); + const localTypes = new Set(exports.map((r) => r.name)); // Build cross-package type map const typeToPackage = new Map(); for (const p of allPackages) { - if (p.name !== pkg.name) { - for (const node of p.exports) { - if (isPublic(node)) { - typeToPackage.set(node.name, p.name); - } + if (p.name === pkg.name) continue; + for (const reflection of p.exports) { + if (isDocumentedExport(reflection)) { + typeToPackage.set(reflection.name, p.name); } } } - // Create collector - const collector = new TypeReferenceCollector( + const lines: string[] = [ + `# ${pkg.specifier}`, + "", + `> Version: ${pkg.version}`, + "", + ...paragraph(partsToMarkdown(pkg.moduleDoc?.summary)), + ]; + + const collector = new TypeRefCollector(); + const grouped = groupByKind(exports); + for (const [kind, title, generate] of SECTIONS) { + const reflections = grouped[kind] ?? []; + if (reflections.length === 0) continue; + lines.push(`## ${title}`, ""); + for (const reflection of reflections) { + collector.declaration(reflection); + lines.push(...generate(reflection), "---", ""); + } + } + + // Related Links section + const links = resolveLinks( + collector.refs, localTypes, typeToPackage, pkg.name, baseUrl, ); - - // Header - lines.push(`# @probitas/${pkg.name}`); - lines.push(""); - lines.push(`> Version: ${pkg.version}`); - lines.push(""); - - // Module documentation - if (pkg.moduleDoc) { - lines.push(pkg.moduleDoc); - lines.push(""); - } - - // Filter and deduplicate exports - const publicExports = deduplicateByName(pkg.exports.filter(isPublic)); - const overloadGroups = groupByName(pkg.exports.filter(isPublic)); - - // Group by kind - const classes = publicExports.filter((n) => n.kind === "class"); - const interfaces = publicExports.filter((n) => n.kind === "interface"); - const functions = publicExports.filter((n) => n.kind === "function"); - const types = publicExports.filter((n) => n.kind === "typeAlias"); - const variables = publicExports.filter((n) => n.kind === "variable"); - - // Classes - if (classes.length > 0) { - lines.push("## Classes"); - lines.push(""); - for (const node of classes) { - if (node.classDef) { - lines.push(generateClassMarkdown(node, node.classDef, collector)); - lines.push("---"); - lines.push(""); - } - } - } - - // Interfaces - if (interfaces.length > 0) { - lines.push("## Interfaces"); - lines.push(""); - for (const node of interfaces) { - if (node.interfaceDef) { - lines.push( - generateInterfaceMarkdown(node, node.interfaceDef, collector), - ); - lines.push("---"); - lines.push(""); - } - } - } - - // Functions - if (functions.length > 0) { - lines.push("## Functions"); - lines.push(""); - for (const node of functions) { - if (node.functionDef) { - // Check for overloads - const overloads = overloadGroups.get(`function:${node.name}`); - if (overloads && overloads.length > 1) { - lines.push(`### \`${node.name}\` (${overloads.length} overloads)`); - lines.push(""); - for (let i = 0; i < overloads.length; i++) { - const overload = overloads[i]; - if (overload.functionDef) { - lines.push(`**Overload ${i + 1}:**`); - lines.push(""); - lines.push("```typescript"); - lines.push( - formatFunctionSignature(node.name, overload.functionDef), - ); - lines.push("```"); - lines.push(""); - - collector.extractFromTypeParams(overload.functionDef.typeParams); - overload.functionDef.params.forEach((p) => - collector.extractFrom(p.tsType) - ); - collector.extractFrom(overload.functionDef.returnType); - - const desc = getDescription(overload); - if (desc) { - lines.push(desc); - lines.push(""); - } - } - } - lines.push("---"); - lines.push(""); - } else { - lines.push( - generateFunctionMarkdown(node, node.functionDef, collector), - ); - lines.push("---"); - lines.push(""); - } - } - } - } - - // Types - if (types.length > 0) { - lines.push("## Types"); - lines.push(""); - for (const node of types) { - if (node.typeAliasDef) { - lines.push( - generateTypeAliasMarkdown(node, node.typeAliasDef, collector), - ); - lines.push("---"); - lines.push(""); - } - } - } - - // Variables - if (variables.length > 0) { - lines.push("## Variables"); - lines.push(""); - for (const node of variables) { - lines.push(generateVariableMarkdown(node, collector)); - lines.push("---"); - lines.push(""); - } - } - - // Related Links section - const links = collector.getLinks(); if (links.length > 0) { - lines.push("## Related Links"); - lines.push(""); + lines.push("## Related Links", ""); const localLinks = links.filter((l) => l.isLocal); const crossPkgLinks = links.filter((l) => l.isCrossPackage); const builtinLinks = links.filter((l) => l.isBuiltin); if (localLinks.length > 0) { - lines.push("### This Package"); - lines.push(""); + lines.push("### This Package", ""); for (const link of localLinks) { lines.push(`- [\`${link.name}\`](${link.href})`); } @@ -714,18 +393,18 @@ export function generateApiMarkdown( } if (crossPkgLinks.length > 0) { - lines.push("### Other Packages"); - lines.push(""); + lines.push("### Other Packages", ""); for (const link of crossPkgLinks) { const pkgName = typeToPackage.get(link.name); - lines.push(`- [\`${link.name}\`](${link.href}) (@probitas/${pkgName})`); + lines.push( + `- [\`${link.name}\`](${link.href}) (@probitas-test/${pkgName})`, + ); } lines.push(""); } if (builtinLinks.length > 0) { - lines.push("### Built-in Types"); - lines.push(""); + lines.push("### Built-in Types", ""); for (const link of builtinLinks) { lines.push(`- [\`${link.name}\`](${link.href})`); } @@ -735,8 +414,7 @@ export function generateApiMarkdown( // Footer with last updated timestamp if (updatedAt) { - lines.push("---"); - lines.push(""); + lines.push("---", ""); lines.push(`*Last updated: ${updatedAt.toISOString().split("T")[0]}*`); } diff --git a/app/lib/llms.ts b/app/lib/llms.ts index c71dbb8..9e6e59b 100644 --- a/app/lib/llms.ts +++ b/app/lib/llms.ts @@ -5,7 +5,7 @@ */ import { basePath } from "./path.ts"; -import type { PackageDoc } from "./api-docs.ts"; +import { type PackageDoc, partsToMarkdown } from "./api-docs.ts"; /** * Documentation page metadata @@ -76,10 +76,8 @@ async function getPackageDescription( } try { const doc = await loadPackageDoc(packageName); - if (doc?.moduleDoc) { - const desc = extractDescription(doc.moduleDoc); - if (desc) return desc; - } + const desc = extractDescription(partsToMarkdown(doc?.moduleDoc?.summary)); + if (desc) return desc; } catch { // Fallback to default description } diff --git a/app/lib/markdown.ts b/app/lib/markdown.ts index 917f433..9d3eee0 100644 --- a/app/lib/markdown.ts +++ b/app/lib/markdown.ts @@ -23,7 +23,6 @@ marked.use({ heading(this: unknown, token: Tokens.Heading): string { const id = slugify(token.text); const text = this - // deno-lint-ignore no-explicit-any ? (this as any).parser.parseInline(token.tokens) : token.text; return `${text}\n`; @@ -48,7 +47,6 @@ marked.use({ const cell = token.header[j]; const align = token.align[j]; const alignAttr = align ? ` style="text-align:${align}"` : ""; - // deno-lint-ignore no-explicit-any const content = (this as any).parser.parseInline(cell.tokens); headerRow += `${content}`; } @@ -64,7 +62,6 @@ marked.use({ const cell = row[j]; const align = token.align[j]; const alignAttr = align ? ` style="text-align:${align}"` : ""; - // deno-lint-ignore no-explicit-any const content = (this as any).parser.parseInline(cell.tokens); rowHtml += `${content}`; } @@ -129,19 +126,26 @@ function processJsDocLinks( const isCode = tag === "linkcode"; const displayText = description?.trim() || name; + // A member (`Type.member`) has its anchor at `Type-member` on the page of + // the package exporting `Type` + const [typeName, ...member] = name.split("."); + const anchor = member.length > 0 + ? `${typeName}-${member.join(".")}` + : typeName; + // Determine the target URL let href: string | null = null; // Check if it's a local type in the current package - if (localTypes?.has(name) && currentPackage) { - href = `${base}api/${currentPackage}#${name.toLowerCase()}`; + if (localTypes?.has(typeName) && currentPackage) { + href = `${base}api/${currentPackage}#${anchor}`; } // Check if it's in another package - else if (typeToPackage?.has(name)) { - const targetPackage = typeToPackage.get(name)!; - href = `${base}api/${targetPackage}#${name.toLowerCase()}`; + else if (typeToPackage?.has(typeName)) { + const targetPackage = typeToPackage.get(typeName)!; + href = `${base}api/${targetPackage}#${anchor}`; } // Default: link to current package anchor (best effort) else if (currentPackage) { - href = `${base}api/${currentPackage}#${name.toLowerCase()}`; + href = `${base}api/${currentPackage}#${anchor}`; } // Format the display text diff --git a/app/lib/signature-formatters.ts b/app/lib/signature-formatters.ts index c0a1f94..7a74e4f 100644 --- a/app/lib/signature-formatters.ts +++ b/app/lib/signature-formatters.ts @@ -1,115 +1,114 @@ /** * Signature formatting utilities for API documentation * - * These formatters convert TypeScript definition objects to string - * representations for syntax highlighting and Markdown output. + * These formatters convert TypeDoc reflections to string representations for + * syntax highlighting and Markdown output. */ import type { - ClassDef, - FunctionDef, - InterfaceDef, - MethodDef, - ParamDef, - TypeAliasDef, + DeclarationReflection, + ParameterReflection, + SignatureReflection, } from "./api-docs.ts"; -import { formatParams, formatType, formatTypeParams } from "./api-docs.ts"; +import { + formatObjectType, + formatParams, + formatType, + formatTypeParams, + parameterTokens, + tokensToString, +} from "./type-format.ts"; /** Line length threshold for breaking into multiple lines */ const LINE_LENGTH_THRESHOLD = 80; /** - * Format parameters with line breaks if the list is long + * Format parameters inline, and one per line for long signatures */ function formatParamsMultiline( - params: ParamDef[] | undefined, - baseIndent: string, + params: ParameterReflection[] | undefined, ): { inline: string; multiline: string } { const inline = formatParams(params); if (!params || params.length === 0) { return { inline, multiline: inline }; } - const paramStrings = params.map((p) => { - const optional = p.optional ? "?" : ""; - const name = p.name ?? "_"; - const type = formatType(p.tsType); - return `${name}${optional}: ${type}`; - }); - - const multiline = paramStrings - .map((s) => `\n${baseIndent} ${s},`) - .join("") + `\n${baseIndent}`; + const multiline = params + .map((p) => + `\n ${tokensToString(parameterTokens(p, { multiline: true }))},` + ) + .join("") + "\n"; return { inline, multiline }; } /** - * Format a function signature as a string for syntax highlighting + * Put `head(params)tail` on one line if it fits, else one parameter per line */ -export function formatFunctionSignature( - name: string, - def: FunctionDef, +function withParams( + head: string, + params: ParameterReflection[] | undefined, + tail: string, ): string { - const asyncPrefix = def.isAsync ? "async " : ""; - const generatorPrefix = def.isGenerator ? "*" : ""; - const typeParams = formatTypeParams(def.typeParams); - const returnType = formatType(def.returnType); - const { inline, multiline } = formatParamsMultiline(def.params, ""); - - const singleLine = - `${asyncPrefix}function ${generatorPrefix}${name}${typeParams}(${inline}): ${returnType}`; - + const { inline, multiline } = formatParamsMultiline(params); + const singleLine = `${head}(${inline})${tail}`; if (singleLine.length <= LINE_LENGTH_THRESHOLD) { return singleLine; } + return `${head}(${multiline})${tail}`; +} - return `${asyncPrefix}function ${generatorPrefix}${name}${typeParams}(${multiline}): ${returnType}`; +/** + * Format a function signature as a string for syntax highlighting + */ +export function formatFunctionSignature( + name: string, + signature: SignatureReflection, +): string { + const typeParams = formatTypeParams(signature.typeParameters); + return withParams( + `function ${name}${typeParams}`, + signature.parameters, + `: ${formatType(signature.type)}`, + ); } /** * Format a method signature as a string for syntax highlighting */ -export function formatMethodSignature(method: MethodDef): string { - const staticPrefix = method.isStatic ? "static " : ""; - const abstractPrefix = method.isAbstract ? "abstract " : ""; - const typeParams = formatTypeParams(method.typeParams); - const returnType = formatType(method.returnType); - const { inline, multiline } = formatParamsMultiline(method.params, ""); - - const singleLine = - `${staticPrefix}${abstractPrefix}${method.name}${typeParams}(${inline}): ${returnType}`; - - if (singleLine.length <= LINE_LENGTH_THRESHOLD) { - return singleLine; - } - - return `${staticPrefix}${abstractPrefix}${method.name}${typeParams}(${multiline}): ${returnType}`; +export function formatMethodSignature( + method: DeclarationReflection, + signature: SignatureReflection, +): string { + const staticPrefix = method.flags.isStatic ? "static " : ""; + const abstractPrefix = method.flags.isAbstract ? "abstract " : ""; + const optional = method.flags.isOptional ? "?" : ""; + const typeParams = formatTypeParams(signature.typeParameters); + return withParams( + `${staticPrefix}${abstractPrefix}${method.name}${optional}${typeParams}`, + signature.parameters, + `: ${formatType(signature.type)}`, + ); } /** * Format a class signature as a string for syntax highlighting */ -export function formatClassSignature(name: string, def: ClassDef): string { - const abstractPrefix = def.isAbstract ? "abstract " : ""; - const typeParams = formatTypeParams(def.typeParams); - - // Extends clause with super type params - let extendsClause = ""; - if (def.extends) { - extendsClause = ` extends ${def.extends}`; - if (def.superTypeParams && def.superTypeParams.length > 0) { - extendsClause += `<${def.superTypeParams.map(formatType).join(", ")}>`; - } - } +export function formatClassSignature(reflection: DeclarationReflection): string { + const abstractPrefix = reflection.flags.isAbstract ? "abstract " : ""; + const typeParams = formatTypeParams(reflection.typeParameters); + const extendsClause = reflection.extendedTypes?.length + ? ` extends ${reflection.extendedTypes.map((t) => formatType(t)).join(", ")}` + : ""; - // Implements clause - const implementsTypes = def.implements?.map(formatType) ?? []; + const implementsTypes = (reflection.implementedTypes ?? []).map((t) => + formatType(t) + ); const implementsInline = implementsTypes.length > 0 ? ` implements ${implementsTypes.join(", ")}` : ""; - const singleLine = - `${abstractPrefix}class ${name}${typeParams}${extendsClause}${implementsInline}`; + const head = `${abstractPrefix}class ${reflection.name}${typeParams}`; + const singleLine = `${head}${extendsClause}${implementsInline}`; if ( singleLine.length <= LINE_LENGTH_THRESHOLD || implementsTypes.length <= 1 @@ -122,23 +121,25 @@ export function formatClassSignature(name: string, def: ClassDef): string { .map((t, i) => i === 0 ? ` implements ${t}` : ` ${t}`) .join(",\n"); - return `${abstractPrefix}class ${name}${typeParams}${extendsClause}\n${implementsMultiline}`; + return `${head}${extendsClause}\n${implementsMultiline}`; } /** * Format an interface signature as a string for syntax highlighting */ export function formatInterfaceSignature( - name: string, - def: InterfaceDef, + reflection: DeclarationReflection, ): string { - const typeParams = formatTypeParams(def.typeParams); - const extendsTypes = def.extends?.map(formatType) ?? []; + const typeParams = formatTypeParams(reflection.typeParameters); + const extendsTypes = (reflection.extendedTypes ?? []).map((t) => + formatType(t) + ); const extendsInline = extendsTypes.length > 0 ? ` extends ${extendsTypes.join(", ")}` : ""; - const singleLine = `interface ${name}${typeParams}${extendsInline}`; + const head = `interface ${reflection.name}${typeParams}`; + const singleLine = `${head}${extendsInline}`; if (singleLine.length <= LINE_LENGTH_THRESHOLD || extendsTypes.length <= 1) { return singleLine; @@ -149,29 +150,31 @@ export function formatInterfaceSignature( .map((t, i) => i === 0 ? ` extends ${t}` : ` ${t}`) .join(",\n"); - return `interface ${name}${typeParams}\n${extendsMultiline}`; + return `${head}\n${extendsMultiline}`; } /** * Format a type alias signature as a string for syntax highlighting */ export function formatTypeAliasSignature( - name: string, - def: TypeAliasDef, + reflection: DeclarationReflection, ): string { - const typeParams = formatTypeParams(def.typeParams); - const tsType = formatType(def.tsType); - const singleLine = `type ${name}${typeParams} = ${tsType}`; - - // If the type contains newlines (e.g., from conditional or union formatting), indent properly - if (tsType.includes("\n")) { - const indented = tsType.split("\n").map((line, i) => + const typeParams = formatTypeParams(reflection.typeParameters); + const type = reflection.type + ? formatType(reflection.type) + : formatObjectType(reflection); + const head = `type ${reflection.name}${typeParams} = `; + + // If the type spans several lines (e.g., a conditional or long union), + // indent its continuation lines under the declaration + if (type.includes("\n")) { + const indented = type.split("\n").map((line, i) => i === 0 ? line : ` ${line}` ).join("\n"); - return `type ${name}${typeParams} = ${indented}`; + return `${head}${indented}`; } - return singleLine; + return `${head}${type}`; } /** @@ -179,14 +182,17 @@ export function formatTypeAliasSignature( */ export function formatConstructorSignature( className: string, - params: ParamDef[], + signature: SignatureReflection, ): string { - const { inline, multiline } = formatParamsMultiline(params, ""); - const singleLine = `new ${className}(${inline})`; - - if (singleLine.length <= LINE_LENGTH_THRESHOLD) { - return singleLine; - } + return withParams(`new ${className}`, signature.parameters, ""); +} - return `new ${className}(${multiline})`; +/** + * Format a variable declaration as a string for syntax highlighting + */ +export function formatVariableSignature( + reflection: DeclarationReflection, +): string { + const kind = reflection.flags.isConst ? "const" : "let"; + return `${kind} ${reflection.name}: ${formatType(reflection.type)}`; } diff --git a/app/lib/type-format.ts b/app/lib/type-format.ts new file mode 100644 index 0000000..8fc9f0e --- /dev/null +++ b/app/lib/type-format.ts @@ -0,0 +1,498 @@ +/** + * Type formatting for API documentation + * + * Types are formatted to a list of tokens: plain text, and references to + * named types. Joining the tokens gives the type as a string; renderers turn + * the references into links, and the Related Types sections collect them. + */ +import type { + DeclarationReflection, + ParameterReflection, + SignatureReflection, + SomeType, + TypeParameterReflection, +} from "./api-docs.ts"; +import { ReflectionKind } from "./api-docs.ts"; + +export type TypeToken = string | { ref: string }; + +export interface FormatOptions { + /** + * Break long unions, intersections, object types, and nested conditional + * types over several lines (for code blocks) + */ + multiline?: boolean; + /** Current indentation level (used for nested multi-line types) */ + indent?: number; +} + +/** Line length above which multi-line formatting breaks a type */ +const LINE_LENGTH_THRESHOLD = 80; + +/** + * Join tokens into a string + */ +export function tokensToString(tokens: TypeToken[]): string { + return tokens.map((t) => typeof t === "string" ? t : t.ref).join(""); +} + +/** + * Format a type as a string + */ +export function formatType( + type: SomeType | undefined, + options: FormatOptions = { multiline: true }, +): string { + return tokensToString(typeTokens(type, options)); +} + +/** + * Collect the names of the types a type refers to + */ +export function typeRefs(type: SomeType | undefined): string[] { + return typeTokens(type, {}).flatMap((t) => typeof t === "string" ? [] : t.ref); +} + +/** + * Format a type as tokens + */ +export function typeTokens( + type: SomeType | undefined, + options: FormatOptions = {}, +): TypeToken[] { + if (!type) return ["unknown"]; + const indent = options.indent ?? 0; + const nested = (t: SomeType | undefined, extra = 0) => + typeTokens(t, { ...options, indent: indent + extra }); + + switch (type.type) { + case "intrinsic": + return [type.name]; + + case "unknown": + return [type.name]; + + case "reference": { + const name: TypeToken = type.refersToTypeParameter + ? type.name + : { ref: type.name }; + const args = type.typeArguments ?? []; + if (args.length === 0) return [name]; + return [name, "<", ...joinTokens(args.map((a) => nested(a)), ", "), ">"]; + } + + case "array": + return [...operand(type.elementType, Precedence.Postfix, nested), "[]"]; + + case "union": + return joinMembers( + type.types.map((t) => operand(t, Precedence.Union, nested)), + "|", + options, + ); + + case "intersection": + return joinMembers( + type.types.map((t) => operand(t, Precedence.Intersection, nested)), + "&", + options, + ); + + case "literal": + return [formatLiteral(type.value)]; + + case "tuple": + return [ + "[", + ...joinTokens((type.elements ?? []).map((t) => nested(t)), ", "), + "]", + ]; + + case "namedTupleMember": + return [ + `${type.name}${type.isOptional ? "?" : ""}: `, + ...nested(type.element), + ]; + + case "optional": + return [...operand(type.elementType, Precedence.Postfix, nested), "?"]; + + case "rest": + return ["...", ...nested(type.elementType)]; + + case "typeOperator": + return [ + `${type.operator} `, + ...operand(type.target, Precedence.Prefix, nested), + ]; + + case "indexedAccess": + return [ + ...operand(type.objectType, Precedence.Postfix, nested), + "[", + ...nested(type.indexType), + "]", + ]; + + case "query": + return ["typeof ", ...nested(type.queryType)]; + + case "predicate": + return [ + type.asserts ? "asserts " : "", + type.name, + ...(type.targetType ? [" is ", ...nested(type.targetType)] : []), + ]; + + case "inferred": + return [ + `infer ${type.name}`, + ...(type.constraint ? [" extends ", ...nested(type.constraint)] : []), + ]; + + case "conditional": { + const head = [ + ...operand(type.checkType, Precedence.Union, nested), + " extends ", + ...operand(type.extendsType, Precedence.Function, nested), + ]; + // Nested conditional types read best one branch per line + if (options.multiline && type.falseType.type === "conditional") { + const spaces = " ".repeat(indent); + return [ + ...head, + `\n${spaces} ? `, + ...nested(type.trueType), + `\n${spaces} : `, + ...nested(type.falseType, 1), + ]; + } + return [ + ...head, + " ? ", + ...nested(type.trueType), + " : ", + ...nested(type.falseType), + ]; + } + + case "mapped": { + const readonly = type.readonlyModifier === "+" + ? "readonly " + : type.readonlyModifier === "-" + ? "-readonly " + : ""; + const optional = type.optionalModifier === "+" + ? "?" + : type.optionalModifier === "-" + ? "-?" + : ""; + return [ + `{ ${readonly}[${type.parameter} in `, + ...nested(type.parameterType), + ...(type.nameType ? [" as ", ...nested(type.nameType)] : []), + `]${optional}: `, + ...nested(type.templateType), + " }", + ]; + } + + case "templateLiteral": + return [ + "`", + escapeTemplate(type.head), + ...type.tail.flatMap(([t, text]) => [ + "${", + ...nested(t), + "}", + escapeTemplate(text), + ]), + "`", + ]; + + case "reflection": + return declarationTokens(type.declaration, options); + } +} + +/** + * Format a declaration's members as an object type + * + * TypeDoc converts a type alias of an object literal into a declaration + * holding the members itself, without a `type`. + */ +export function formatObjectType(declaration: DeclarationReflection): string { + return tokensToString(declarationTokens(declaration, { multiline: true })); +} + +/** + * Format an inline object or function type + */ +function declarationTokens( + declaration: DeclarationReflection, + options: FormatOptions, +): TypeToken[] { + const indent = options.indent ?? 0; + const signatures = declaration.signatures ?? []; + const members = declaration.children ?? []; + const indexSignatures = declaration.indexSignatures ?? []; + + // A single call signature and nothing else is a function type + if ( + signatures.length === 1 && members.length === 0 && + indexSignatures.length === 0 + ) { + return signatureTypeTokens(signatures[0], options); + } + + const entries: TypeToken[][] = [ + ...signatures.map((sig) => callSignatureTokens(sig, options)), + ...indexSignatures.map((sig) => [ + sig.flags.isReadonly ? "readonly " : "", + "[", + ...joinTokens( + (sig.parameters ?? []).map((p) => parameterTokens(p, options)), + ", ", + ), + "]: ", + ...typeTokens(sig.type, { ...options, indent: indent + 1 }), + ]), + ...members.map((member) => memberTokens(member, options)), + ]; + if (entries.length === 0) return ["{}"]; + + const inline = ["{ ", ...joinTokens(entries, "; "), " }"]; + if ( + options.multiline && + (tokensToString(inline).length > LINE_LENGTH_THRESHOLD || + entries.length > 3) + ) { + const spaces = " ".repeat(indent); + return [ + "{", + ...entries.flatMap((entry) => [`\n${spaces} `, ...entry, ";"]), + `\n${spaces}}`, + ]; + } + return inline; +} + +/** + * Format a member of an object type (`name?: Type` or a method signature) + */ +function memberTokens( + member: DeclarationReflection, + options: FormatOptions, +): TypeToken[] { + const indent = options.indent ?? 0; + const inner = { ...options, indent: indent + 1 }; + const optional = member.flags.isOptional ? "?" : ""; + if (member.kind === ReflectionKind.Method) { + return joinTokens( + (member.signatures ?? []).map((sig) => [ + `${member.name}${optional}`, + ...callSignatureTokens(sig, inner), + ]), + "; ", + ); + } + const type = member.kind === ReflectionKind.Accessor + ? member.getSignature?.type + : member.type; + const readonly = member.flags.isReadonly ? "readonly " : ""; + return [ + `${readonly}${member.name}${optional}: `, + ...typeTokens(type, inner), + ]; +} + +/** + * Format a signature as a function type: `(a: A) => R` + */ +function signatureTypeTokens( + signature: SignatureReflection, + options: FormatOptions, +): TypeToken[] { + const prefix = signature.kind === ReflectionKind.ConstructorSignature + ? "new " + : ""; + return [ + prefix, + ...typeParamsTokens(signature.typeParameters, options), + "(", + ...joinTokens( + (signature.parameters ?? []).map((p) => parameterTokens(p, options)), + ", ", + ), + ") => ", + ...typeTokens(signature.type, options), + ]; +} + +/** + * Format a signature inside an object type: `(a: A): R` + */ +function callSignatureTokens( + signature: SignatureReflection, + options: FormatOptions, +): TypeToken[] { + const prefix = signature.kind === ReflectionKind.ConstructorSignature + ? "new " + : ""; + return [ + prefix, + ...typeParamsTokens(signature.typeParameters, options), + "(", + ...joinTokens( + (signature.parameters ?? []).map((p) => parameterTokens(p, options)), + ", ", + ), + "): ", + ...typeTokens(signature.type, options), + ]; +} + +/** + * Format a parameter: `name?: Type` or `...name: Type` + */ +export function parameterTokens( + param: ParameterReflection, + options: FormatOptions = {}, +): TypeToken[] { + const rest = param.flags.isRest ? "..." : ""; + const optional = param.flags.isOptional ? "?" : ""; + return [`${rest}${param.name}${optional}: `, ...typeTokens(param.type, options)]; +} + +/** + * Format type parameters (generics): `` + */ +export function typeParamsTokens( + typeParams: TypeParameterReflection[] | undefined, + options: FormatOptions = {}, +): TypeToken[] { + if (!typeParams || typeParams.length === 0) return []; + return [ + "<", + ...joinTokens( + typeParams.map((p) => [ + p.flags.isConst ? "const " : "", + p.varianceModifier ? `${p.varianceModifier} ` : "", + p.name, + ...(p.type ? [" extends ", ...typeTokens(p.type, options)] : []), + ...(p.default ? [" = ", ...typeTokens(p.default, options)] : []), + ]), + ", ", + ), + ">", + ]; +} + +/** + * Format type parameters as a string + */ +export function formatTypeParams( + typeParams: TypeParameterReflection[] | undefined, +): string { + return tokensToString(typeParamsTokens(typeParams)); +} + +/** + * Format a parameter list as a string + */ +export function formatParams(params: ParameterReflection[] | undefined): string { + return (params ?? []) + .map((p) => tokensToString(parameterTokens(p, { multiline: true }))) + .join(", "); +} + +function formatLiteral( + value: string | number | boolean | null | { value: string; negative: boolean }, +): string { + if (value === null) return "null"; + if (typeof value === "string") return JSON.stringify(value); + if (typeof value === "object") { + return `${value.negative ? "-" : ""}${value.value}n`; + } + return String(value); +} + +function escapeTemplate(text: string): string { + return text.replace(/[`\\]/g, "\\$&").replace(/\$\{/g, "\\${"); +} + +/** + * How tightly a type binds, loosest first + * + * A type in a position demanding a higher precedence than its own is + * parenthesized: `(A | B)[]`, `(A | B) & C`, `(() => A) | B`. + */ +const Precedence = { + Conditional: 0, + Function: 1, + Union: 2, + Intersection: 3, + Prefix: 4, + Postfix: 5, + Primary: 6, +} as const; + +function precedenceOf(type: SomeType): number { + switch (type.type) { + case "conditional": + return Precedence.Conditional; + case "union": + return Precedence.Union; + case "intersection": + return Precedence.Intersection; + case "typeOperator": + case "query": + case "inferred": + return Precedence.Prefix; + case "reflection": { + const { signatures = [], children = [], indexSignatures = [] } = + type.declaration; + const isFunctionType = signatures.length === 1 && children.length === 0 && + indexSignatures.length === 0; + return isFunctionType ? Precedence.Function : Precedence.Primary; + } + default: + return Precedence.Primary; + } +} + +/** + * Format a type used as an operand, parenthesized when it binds looser than + * the position requires + */ +function operand( + type: SomeType, + required: number, + format: (type: SomeType) => TypeToken[], +): TypeToken[] { + const tokens = format(type); + return precedenceOf(type) < required ? ["(", ...tokens, ")"] : tokens; +} + +function joinTokens(parts: TypeToken[][], separator: string): TypeToken[] { + return parts.flatMap((part, i) => i === 0 ? part : [separator, ...part]); +} + +/** + * Join union or intersection members, one per line when they do not fit + */ +function joinMembers( + members: TypeToken[][], + operator: "|" | "&", + options: FormatOptions, +): TypeToken[] { + const inline = joinTokens(members, ` ${operator} `); + if ( + options.multiline && members.length > 1 && + tokensToString(inline).length > LINE_LENGTH_THRESHOLD + ) { + const spaces = " ".repeat(options.indent ?? 0); + return joinTokens(members, `\n${spaces}${operator} `); + } + return inline; +} diff --git a/app/lib/type-references.ts b/app/lib/type-references.ts index d3a5835..f969a79 100644 --- a/app/lib/type-references.ts +++ b/app/lib/type-references.ts @@ -1,294 +1,69 @@ /** * Type reference extraction utilities for API documentation * - * These utilities recursively extract type names from TypeScript - * type definitions for building cross-reference links. + * These utilities collect the names of the types a reflection's declaration + * mentions, for building cross-reference links. */ import type { - ClassDef, - FunctionDef, - InterfaceDef, - MethodDef, - ParamDef, - PropertyDef, - TsTypeDef, - TsTypeParamDef, + DeclarationReflection, + SignatureReflection, + SomeType, + TypeParameterReflection, } from "./api-docs.ts"; +import { isPublic } from "./api-docs.ts"; +import { typeRefs } from "./type-format.ts"; /** - * Extract all type names referenced in a TsTypeDef (recursively) + * Collect type references from types, signatures, and members */ -export function extractTypeRefs(type: TsTypeDef | undefined): Set { - const refs = new Set(); - if (!type) return refs; +export class TypeRefCollector { + readonly refs = new Set(); - function walk(t: TsTypeDef) { - switch (t.kind) { - case "typeRef": - if (t.typeRef?.typeName) { - refs.add(t.typeRef.typeName); - t.typeRef.typeParams?.forEach(walk); - } - break; - case "array": - if (t.array) walk(t.array); - break; - case "union": - t.union?.forEach(walk); - break; - case "intersection": - t.intersection?.forEach(walk); - break; - case "tuple": - t.tuple?.forEach(walk); - break; - case "fnOrConstructor": - if (t.fnOrConstructor) { - t.fnOrConstructor.params.forEach((p) => { - if (p.tsType) walk(p.tsType); - }); - if (t.fnOrConstructor.returnType) walk(t.fnOrConstructor.returnType); - } - break; - case "typeOperator": - if (t.typeOperator?.tsType) walk(t.typeOperator.tsType); - break; - case "typeLiteral": - if (t.typeLiteral) { - t.typeLiteral.properties.forEach((p) => { - if (p.tsType) walk(p.tsType); - }); - t.typeLiteral.methods.forEach((m) => { - m.params.forEach((p) => { - if (p.tsType) walk(p.tsType); - }); - if (m.returnType) walk(m.returnType); - }); - } - break; - case "conditional": - if (t.conditionalType) { - walk(t.conditionalType.checkType); - walk(t.conditionalType.extendsType); - walk(t.conditionalType.trueType); - walk(t.conditionalType.falseType); - } - break; - // "infer" types don't reference external types, they introduce new ones - } + type(type: SomeType | undefined): this { + for (const ref of typeRefs(type)) this.refs.add(ref); + return this; } - walk(type); - return refs; -} - -/** - * Extract type refs from type parameters (constraints and defaults) - */ -export function extractTypeParamRefs( - typeParams: TsTypeParamDef[] | undefined, -): Set { - const refs = new Set(); - if (!typeParams) return refs; - - for (const p of typeParams) { - if (p.constraint) { - for (const ref of extractTypeRefs(p.constraint)) { - refs.add(ref); - } - } - if (p.default) { - for (const ref of extractTypeRefs(p.default)) { - refs.add(ref); - } + typeParams(typeParams: TypeParameterReflection[] | undefined): this { + for (const p of typeParams ?? []) { + this.type(p.type); + this.type(p.default); } + return this; } - return refs; -} -/** - * Extract type refs from an array of parameters - */ -export function extractParamRefs(params: ParamDef[] | undefined): Set { - const refs = new Set(); - if (!params) return refs; - - for (const p of params) { - if (p.tsType) { - for (const ref of extractTypeRefs(p.tsType)) { - refs.add(ref); - } - } + signature(signature: SignatureReflection | undefined): this { + if (!signature) return this; + this.typeParams(signature.typeParameters); + for (const p of signature.parameters ?? []) this.type(p.type); + return this.type(signature.type); } - return refs; -} -/** - * Extract type refs from an array of properties - */ -export function extractPropertyRefs( - properties: PropertyDef[] | undefined, -): Set { - const refs = new Set(); - if (!properties) return refs; - - for (const p of properties) { - if (p.tsType) { - for (const ref of extractTypeRefs(p.tsType)) { - refs.add(ref); - } + /** + * Collect from a declaration: its type parameters, heritage, type, + * signatures, and public members + */ + declaration(reflection: DeclarationReflection): this { + this.typeParams(reflection.typeParameters); + for (const t of reflection.extendedTypes ?? []) this.type(t); + for (const t of reflection.implementedTypes ?? []) this.type(t); + this.type(reflection.type); + for (const sig of reflection.signatures ?? []) this.signature(sig); + for (const sig of reflection.indexSignatures ?? []) this.signature(sig); + this.signature(reflection.getSignature); + this.signature(reflection.setSignature); + for (const member of reflection.children ?? []) { + if (isPublic(member) && !member.inheritedFrom) this.declaration(member); } + return this; } - return refs; } /** - * Extract type refs from an array of methods + * Extract all type names referenced by a declaration */ -export function extractMethodRefs( - methods: MethodDef[] | undefined, +export function extractDeclarationRefs( + reflection: DeclarationReflection, ): Set { - const refs = new Set(); - if (!methods) return refs; - - for (const m of methods) { - // Type parameters - for (const ref of extractTypeParamRefs(m.typeParams)) { - refs.add(ref); - } - // Parameters - for (const ref of extractParamRefs(m.params)) { - refs.add(ref); - } - // Return type - if (m.returnType) { - for (const ref of extractTypeRefs(m.returnType)) { - refs.add(ref); - } - } - } - return refs; -} - -/** - * Extract all type refs from a FunctionDef - */ -export function extractFunctionRefs(def: FunctionDef | undefined): Set { - const refs = new Set(); - if (!def) return refs; - - // Type parameters (constraints and defaults) - for (const ref of extractTypeParamRefs(def.typeParams)) { - refs.add(ref); - } - // Parameters - for (const ref of extractParamRefs(def.params)) { - refs.add(ref); - } - // Return type - if (def.returnType) { - for (const ref of extractTypeRefs(def.returnType)) { - refs.add(ref); - } - } - return refs; -} - -/** - * Extract all type refs from a ClassDef - */ -export function extractClassRefs(def: ClassDef | undefined): Set { - const refs = new Set(); - if (!def) return refs; - - // Type parameters - for (const ref of extractTypeParamRefs(def.typeParams)) { - refs.add(ref); - } - // Extends - if (def.extends) { - refs.add(def.extends); - } - // Super type params - for (const t of def.superTypeParams ?? []) { - for (const ref of extractTypeRefs(t)) { - refs.add(ref); - } - } - // Implements - for (const t of def.implements ?? []) { - for (const ref of extractTypeRefs(t)) { - refs.add(ref); - } - } - // Constructors - for (const ctor of def.constructors ?? []) { - for (const ref of extractParamRefs(ctor.params)) { - refs.add(ref); - } - } - // Properties - for (const ref of extractPropertyRefs(def.properties)) { - refs.add(ref); - } - // Methods - for (const ref of extractMethodRefs(def.methods)) { - refs.add(ref); - } - return refs; -} - -/** - * Extract all type refs from an InterfaceDef - */ -export function extractInterfaceRefs( - def: InterfaceDef | undefined, -): Set { - const refs = new Set(); - if (!def) return refs; - - // Type parameters - for (const ref of extractTypeParamRefs(def.typeParams)) { - refs.add(ref); - } - // Extends - for (const t of def.extends ?? []) { - for (const ref of extractTypeRefs(t)) { - refs.add(ref); - } - } - // Properties - for (const ref of extractPropertyRefs(def.properties)) { - refs.add(ref); - } - // Methods - for (const ref of extractMethodRefs(def.methods)) { - refs.add(ref); - } - // Call signatures - for (const sig of def.callSignatures ?? []) { - for (const ref of extractTypeParamRefs(sig.typeParams)) { - refs.add(ref); - } - for (const ref of extractParamRefs(sig.params)) { - refs.add(ref); - } - if (sig.returnType) { - for (const ref of extractTypeRefs(sig.returnType)) { - refs.add(ref); - } - } - } - // Index signatures - for (const sig of def.indexSignatures ?? []) { - for (const ref of extractParamRefs(sig.params)) { - refs.add(ref); - } - if (sig.tsType) { - for (const ref of extractTypeRefs(sig.tsType)) { - refs.add(ref); - } - } - } - return refs; + return new TypeRefCollector().declaration(reflection).refs; } diff --git a/app/server.ts b/app/server.ts index d26356a..fe7812d 100644 --- a/app/server.ts +++ b/app/server.ts @@ -10,6 +10,7 @@ import { readFile, stat } from "node:fs/promises"; import path from "node:path"; import { fileURLToPath } from "node:url"; import type { PackageDoc } from "../data/api-pages.js"; +import { type ProjectReflection, toPackageDoc } from "./lib/api-docs.js"; import { getPackageGroups, loadPackageDoc as loadPkg, @@ -45,7 +46,7 @@ async function loadPackageDoc( stat(jsonPath), ]); return { - doc: JSON.parse(content), + doc: toPackageDoc(packageName, JSON.parse(content) as ProjectReflection), mtime: fileStat.mtime, }; } @@ -124,7 +125,7 @@ app.get("/llms.txt", async (c) => { name: g.name, packages: g.packages.map((p) => ({ name: p.name, - specifier: `@probitas/${p.name}`, + specifier: p.specifier, })), })), loadPackageDoc: loadPkg, diff --git a/app/templates/api/ApiPage.tsx b/app/templates/api/ApiPage.tsx index 1d21585..b7118d7 100644 --- a/app/templates/api/ApiPage.tsx +++ b/app/templates/api/ApiPage.tsx @@ -2,10 +2,10 @@ * API Documentation Page Templates */ import { - deduplicateByName, + EXPORT_KINDS, groupByKind, - groupByName, - isPublic, + isDocumentedExport, + partsToMarkdown, } from "../../lib/api-docs.ts"; import { getPackageGroups, @@ -17,7 +17,12 @@ import { import { basePath } from "../../lib/path.ts"; import { parseApiMarkdown } from "../../lib/markdown.ts"; import { Layout } from "../Layout.tsx"; -import { ApiToc, DocNodeRenderer, PackageSidebar } from "./components.tsx"; +import { + ApiToc, + EXPORT_KIND_INFO, + ExportDoc, + PackageSidebar, +} from "./components.tsx"; // ============================================================================ // API Index Page (lists all packages) @@ -46,7 +51,7 @@ export async function ApiIndexPage() {

API Reference

- Complete API documentation for all @probitas/*{" "} + Complete API documentation for all @probitas-test/*{" "} packages. Browse {packages.length} packages with {" "} {totalExports} exports. @@ -138,37 +143,25 @@ export async function PackagePage({ packageName }: PackagePageProps) { return ; } - // Filter public exports and deduplicate overloads (for TOC) - const publicExports = doc.exports.filter(isPublic); - const uniqueExports = deduplicateByName(publicExports); - const grouped = groupByKind(uniqueExports); - - // Group all overloads together (for documentation display) - const overloadMap = groupByName(publicExports); + const exports = doc.exports.filter(isDocumentedExport); + const grouped = groupByKind(exports); + const groupsInOrder = EXPORT_KINDS.flatMap((kind) => { + const items = grouped[kind]; + return items?.length ? [[kind, items] as const] : []; + }); + const moduleDoc = partsToMarkdown(doc.moduleDoc?.summary); // Create set of local type names for linking - const localTypes = new Set(uniqueExports.map((n) => n.name)); + const localTypes = new Set(exports.map((n) => n.name)); // Get cross-package type linking map const typeLinkMap = await getTypeLinkMap(); const typeToPackage = typeLinkMap.typeToPackage; - // Order of display - const kindOrder = [ - "class", - "interface", - "function", - "typeAlias", - "variable", - "enum", - ]; - const orderedKinds = kindOrder.filter((k) => grouped[k]?.length > 0); - return ( v{doc.version} + View on npm + + - {doc.moduleDoc && ( + {moduleDoc && (

@@ -273,38 +272,6 @@ export async function PackagePage({ packageName }: PackagePageProps) { ); } -interface KindInfo { - title: string; - icon: string; -} - -const kindInfoMap: Record = { - class: { title: "Classes", icon: "ti-box", id: "category-classes" }, - interface: { - title: "Interfaces", - icon: "ti-puzzle", - id: "category-interfaces", - }, - function: { title: "Functions", icon: "ti-code", id: "category-functions" }, - typeAlias: { title: "Types", icon: "ti-tag", id: "category-types" }, - variable: { - title: "Variables", - icon: "ti-variable", - id: "category-variables", - }, - enum: { title: "Enums", icon: "ti-list", id: "category-enums" }, -}; - -function kindToTitle(kind: string) { - const info = kindInfoMap[kind]; - if (!info) return kind; - return ( - <> - {info.title} - - ); -} - // ============================================================================ // 404 Page // ============================================================================ @@ -326,7 +293,7 @@ function NotFoundPage({ packageName }: NotFoundPageProps) {

Package Not Found

- The package @probitas/{packageName} was not found. + The package @probitas-test/{packageName} was not found.

← Back to API Reference diff --git a/app/templates/api/components.tsx b/app/templates/api/components.tsx index 6bc301e..7fcbd78 100644 --- a/app/templates/api/components.tsx +++ b/app/templates/api/components.tsx @@ -3,29 +3,24 @@ */ import type { Child } from "hono/jsx"; import type { - ClassDef, - DocNode, - FunctionDef, - InterfaceDef, - MethodDef, - ParamDef, - TsTypeDef, - TsTypeParamDef, - TypeAliasDef, + DeclarationReflection, + ParameterReflection, + SignatureReflection, + SomeType, } from "../../lib/api-docs.ts"; import { - formatType, - formatTypeParams, + exportKind, + type ExportKind, getDescription, getDescriptionSummary, getExamples, getParamDocs, getReturnDoc, + isPublic, + ownMembers, + ReflectionKind, } from "../../lib/api-docs.ts"; -import { - type ApiMarkdownOptions, - parseApiMarkdown, -} from "../../lib/markdown.ts"; +import { parseApiMarkdown } from "../../lib/markdown.ts"; import { formatClassSignature, formatConstructorSignature, @@ -33,13 +28,12 @@ import { formatInterfaceSignature, formatMethodSignature, formatTypeAliasSignature, + formatVariableSignature, } from "../../lib/signature-formatters.ts"; +import { typeTokens } from "../../lib/type-format.ts"; import { - extractClassRefs, - extractFunctionRefs, - extractInterfaceRefs, - extractTypeParamRefs, - extractTypeRefs, + extractDeclarationRefs, + TypeRefCollector, } from "../../lib/type-references.ts"; import { basePath } from "../../lib/path.ts"; @@ -56,158 +50,26 @@ interface TypeLinkContext { currentPackage?: string; } -interface TypeDisplayProps extends TypeLinkContext { - type?: TsTypeDef; -} - -export function TypeDisplay( - { type, localTypes, typeToPackage, currentPackage }: TypeDisplayProps, -) { - if (!type) return unknown; - const ctx: TypeLinkContext = { localTypes, typeToPackage, currentPackage }; - return {renderType(type, ctx)}; -} - /** - * Render a type definition as JSX with links + * The URL of an export's anchor on its package page */ -function renderType(type: TsTypeDef | undefined, ctx: TypeLinkContext): Child { - if (!type) return "unknown"; - - switch (type.kind) { - case "keyword": - return renderTypeName(type.keyword ?? type.repr, ctx); - - case "typeRef": { - if (!type.typeRef) return type.repr; - const typeName = type.typeRef.typeName; - const params = type.typeRef.typeParams; - - if (params && params.length > 0) { - return ( - <> - {renderTypeName(typeName, ctx)} - {"<"} - {params.map((p, i) => ( - <> - {i > 0 && ", "} - {renderType(p, ctx)} - - ))} - {">"} - - ); - } - return renderTypeName(typeName, ctx); - } - - case "array": - return ( - <> - {renderType(type.array!, ctx)} - {"[]"} - - ); - - case "union": - return ( - <> - {type.union?.map((t, i) => ( - <> - {i > 0 && " | "} - {renderType(t, ctx)} - - ))} - - ); - - case "intersection": - return ( - <> - {type.intersection?.map((t, i) => ( - <> - {i > 0 && " & "} - {renderType(t, ctx)} - - ))} - - ); - - case "literal": - if (type.literal) { - if (type.literal.kind === "string") return `"${type.literal.string}"`; - if (type.literal.kind === "number") return String(type.literal.number); - if (type.literal.kind === "boolean") { - return String(type.literal.boolean); - } - } - return type.repr; - - case "tuple": - return ( - <> - {"["} - {type.tuple?.map((t, i) => ( - <> - {i > 0 && ", "} - {renderType(t, ctx)} - - ))} - {"]"} - - ); - - case "fnOrConstructor": { - const fn = type.fnOrConstructor; - if (!fn) return type.repr; - return ( - <> - {"("} - {fn.params.map((p, i) => ( - <> - {i > 0 && ", "} - {p.name ?? "_"}: {renderType(p.tsType, ctx)} - - ))} - {") => "} - {renderType(fn.returnType, ctx)} - - ); - } - - case "typeOperator": { - const op = type.typeOperator; - if (!op) return type.repr; - return ( - <> - {op.operator} {renderType(op.tsType, ctx)} - - ); - } +function apiHref(packageName: string, name: string): string { + return basePath(`/api/${packageName}#${name}`); +} - case "typeLiteral": { - const lit = type.typeLiteral; - if (!lit) return type.repr; - return ( - <> - {"{ "} - {lit.properties.map((p, i) => ( - <> - {i > 0 && "; "} - {p.name} - {p.optional && "?"} - {": "} - {renderType(p.tsType, ctx)} - - ))} - {" }"} - - ); - } +interface TypeDisplayProps extends TypeLinkContext { + type?: SomeType; +} - default: - return type.repr || "unknown"; - } +export function TypeDisplay({ type, ...ctx }: TypeDisplayProps) { + if (!type) return unknown; + return ( + + {typeTokens(type).map((token) => + typeof token === "string" ? token : renderTypeName(token.ref, ctx) + )} + + ); } /** @@ -231,19 +93,16 @@ function renderTypeName(name: string, ctx: TypeLinkContext): Child { } // Check for cross-package type - if (typeToPackage?.has(name)) { - const targetPackage = typeToPackage.get(name)!; - // Don't link to self (already handled by localTypes) - if (targetPackage !== currentPackage) { - return ( - - {name} - - ); - } + const targetPackage = typeToPackage?.get(name); + if (targetPackage && targetPackage !== currentPackage) { + return ( + + {name} + + ); } // Built-in types and unknown types - no link @@ -254,44 +113,34 @@ function renderTypeName(name: string, ctx: TypeLinkContext): Child { // Type Reference Linking // ============================================================================ -/** - * Filter type refs to only linkable ones (local or cross-package) - */ interface LinkableType { name: string; href: string; isCrossPackage: boolean; } +/** + * Filter type refs to only linkable ones (local or cross-package) + */ function getLinkableTypes( refs: Set, - localTypes: Set | undefined, - typeToPackage: Map | undefined, - currentPackage: string | undefined, + { localTypes, typeToPackage, currentPackage }: TypeLinkContext, ): LinkableType[] { const result: LinkableType[] = []; for (const name of refs) { - // Local type if (localTypes?.has(name)) { - result.push({ - name, - href: `#${name}`, - isCrossPackage: false, - }); + result.push({ name, href: `#${name}`, isCrossPackage: false }); continue; } - // Cross-package type - if (typeToPackage?.has(name)) { - const targetPackage = typeToPackage.get(name)!; - if (targetPackage !== currentPackage) { - result.push({ - name, - href: basePath(`/api/${targetPackage}/#${name}`), - isCrossPackage: true, - }); - } + const targetPackage = typeToPackage?.get(name); + if (targetPackage && targetPackage !== currentPackage) { + result.push({ + name, + href: apiHref(targetPackage, name), + isCrossPackage: true, + }); } } @@ -299,23 +148,16 @@ function getLinkableTypes( return result.sort((a, b) => a.name.localeCompare(b.name)); } -/** - * Related Types section component - */ interface RelatedTypesProps extends TypeLinkContext { - /** All type refs extracted from the signature */ + /** All type refs extracted from the declaration */ typeRefs: Set; } -function RelatedTypes( - { typeRefs, localTypes, typeToPackage, currentPackage }: RelatedTypesProps, -) { - const linkable = getLinkableTypes( - typeRefs, - localTypes, - typeToPackage, - currentPackage, - ); +/** + * Related Types section component + */ +function RelatedTypes({ typeRefs, ...ctx }: RelatedTypesProps) { + const linkable = getLinkableTypes(typeRefs, ctx); if (linkable.length === 0) return null; @@ -337,7 +179,7 @@ function RelatedTypes( {t.isCrossPackage && ( - {typeToPackage?.get(t.name)} + {ctx.typeToPackage?.get(t.name)} )} @@ -347,37 +189,22 @@ function RelatedTypes( ); } -interface TypeParamsDisplayProps { - typeParams: TsTypeParamDef[]; -} - -export function TypeParamsDisplay({ typeParams }: TypeParamsDisplayProps) { - if (typeParams.length === 0) return null; - return {formatTypeParams(typeParams)}; -} - // ============================================================================ // Member Summary Table (for interface/type overview) // ============================================================================ -interface MemberSummaryItem { - name: string; - description?: string; - isMethod?: boolean; -} - interface MemberSummaryTableProps { /** Parent type name (used for generating anchor IDs) */ parentName: string; - items: MemberSummaryItem[]; + members: DeclarationReflection[]; } /** * Summary table for properties/methods overview * Each name links to the detailed section below */ -function MemberSummaryTable({ parentName, items }: MemberSummaryTableProps) { - if (items.length === 0) return null; +function MemberSummaryTable({ parentName, members }: MemberSummaryTableProps) { + if (members.length === 0) return null; return (

@@ -389,16 +216,20 @@ function MemberSummaryTable({ parentName, items }: MemberSummaryTableProps) { - {items.map((item) => ( - + {members.map((member) => ( + - - {item.name} - {item.isMethod && ()} + + {member.name} + {isMethod(member) && ( + () + )} - {item.description || —} + {getDescriptionSummary(member) || ( + — + )} ))} @@ -409,1077 +240,585 @@ function MemberSummaryTable({ parentName, items }: MemberSummaryTableProps) { } // ============================================================================ -// Parameter Display +// Markdown Display // ============================================================================ -interface ParamListProps extends TypeLinkContext { - params: ParamDef[]; - paramDocs?: Map; +interface MarkdownBlockProps extends TypeLinkContext { + text?: string; + class: string; } -export function ParamList( - { params, paramDocs, localTypes, typeToPackage, currentPackage }: - ParamListProps, -) { - if (params.length === 0) return null; - +/** + * Render documentation Markdown with JSDoc link support + */ +function MarkdownBlock({ text, class: className, ...ctx }: MarkdownBlockProps) { + if (!text) return null; return ( -
-
Parameters
-
    - {params.map((param) => { - const name = param.name ?? "_"; - const doc = paramDocs?.get(name); - return ( -
  • -
    - - {name} - {param.optional && ?} - - - - -
    - {doc && ( -
    - )} -
  • - ); - })} -
-
+
); } -// ============================================================================ -// JSDoc Display -// ============================================================================ - interface DescriptionProps extends TypeLinkContext { text?: string; } -export function Description( - { text, localTypes, typeToPackage, currentPackage }: DescriptionProps, -) { - if (!text) return null; - // Parse as Markdown for rich formatting with JSDoc link support - const html = parseApiMarkdown(text, { - localTypes, - typeToPackage, - currentPackage, - }); - return ( -
- ); +export function Description({ text, ...ctx }: DescriptionProps) { + return ; } interface ExamplesProps extends TypeLinkContext { examples: string[]; } -export function Examples( - { examples, localTypes, typeToPackage, currentPackage }: ExamplesProps, -) { +export function Examples({ examples, ...ctx }: ExamplesProps) { if (examples.length === 0) return null; - const mdOptions: ApiMarkdownOptions = { - localTypes, - typeToPackage, - currentPackage, - }; - return (
Examples
- {examples.map((example, i) => { - const trimmed = example.trim(); - // Always parse as markdown - examples may contain description text - // followed by code blocks (e.g., "Basic usage\n```ts\n...") - const html = parseApiMarkdown(trimmed, mdOptions); - return ( -
- ); - })} + {examples.map((example, i) => ( + // Examples may hold a title or description followed by code blocks +
+ ))}
); } // ============================================================================ -// Function Documentation +// Signature Display // ============================================================================ -interface FunctionDocProps extends TypeLinkContext { - node: DocNode; - def: FunctionDef; - /** All overloads of this function (including the main one) */ - overloads?: DocNode[]; -} - -export function FunctionDoc( - { node, def, overloads, localTypes, typeToPackage, currentPackage }: - FunctionDocProps, +function SignatureBlock( + { code, class: className = "api-signature" }: { + code: string; + class?: string; + }, ) { - const description = getDescription(node); - const examples = getExamples(node); - const paramDocs = getParamDocs(node); - const returnDoc = getReturnDoc(node); - - const hasOverloads = overloads && overloads.length > 1; - - // Collect type refs from all overloads (or just this function if no overloads) - const typeRefs = new Set(); - if (hasOverloads) { - for (const overloadNode of overloads) { - for (const ref of extractFunctionRefs(overloadNode.functionDef)) { - typeRefs.add(ref); - } - } - } else { - for (const ref of extractFunctionRefs(def)) { - typeRefs.add(ref); - } - } - return ( -
-
- function -

- # - {node.name} - {hasOverloads && ( - ({overloads.length} overloads) - )} -

-
- -
-
-          
-            {formatFunctionSignature(node.name, def)}
-          
-        
-
- - - - - - {returnDoc && ( -
-
Returns
-

- {" "} - — {returnDoc} -

-
- )} +
+
+        {code}
+      
+
+ ); +} - +interface ParamListProps extends TypeLinkContext { + params: ParameterReflection[]; + paramDocs?: Map; +} - +export function ParamList({ params, paramDocs, ...ctx }: ParamListProps) { + if (params.length === 0) return null; - {/* Additional overloads */} - {hasOverloads && ( -
- - - Show all {overloads.length} overloads - -
- {overloads.map((overloadNode, index) => { - const overloadDef = overloadNode.functionDef; - if (!overloadDef) return null; - return ( - - ); - })} -
-
- )} + return ( +
+
Parameters
+
    + {params.map((param) => ( +
  • +
    + + {param.flags.isRest && "..."} + {param.name} + {param.flags.isOptional && ( + ? + )} + + + + +
    + +
  • + ))} +
); } -interface FunctionOverloadItemProps extends TypeLinkContext { - index: number; - node: DocNode; - def: FunctionDef; +interface ReturnsProps extends TypeLinkContext { + signature: SignatureReflection; } -function FunctionOverloadItem( - { index, node, def, localTypes, typeToPackage, currentPackage }: - FunctionOverloadItemProps, -) { - const description = getDescription(node); - const paramDocs = getParamDocs(node); - const returnDoc = getReturnDoc(node); - +function Returns({ signature, ...ctx }: ReturnsProps) { + const returnDoc = getReturnDoc(signature); + if (!returnDoc) return null; return ( -
-
- #{index} -
-
-
-          
-            {formatFunctionSignature(node.name, def)}
-          
-        
-
- {description && ( - - )} - - {returnDoc && ( -
-
Returns
-

- {" "} - — {returnDoc} -

-
- )} +
+
Returns
+

+ +

+
); } // ============================================================================ -// Class Documentation +// Item Layout // ============================================================================ -interface ClassDocProps extends TypeLinkContext { - node: DocNode; - def: ClassDef; +interface ItemHeaderProps { + kind: string; + name: string; + children?: Child; } -export function ClassDoc( - { node, def, localTypes, typeToPackage, currentPackage }: ClassDocProps, -) { - const description = getDescription(node); - const examples = getExamples(node); - - // Filter public members - const publicMethods = def.methods.filter((m) => - m.accessibility !== "private" && !m.name.startsWith("_") - ); - const publicProps = def.properties.filter((p) => - p.accessibility !== "private" && !p.name.startsWith("_") +function ItemHeader({ kind, name, children }: ItemHeaderProps) { + return ( +
+ {kind} +

+ # + {name} + {children} +

+
); +} - // Collect all type refs from the class definition - const typeRefs = extractClassRefs(def); - - // Build summary items for the overview table - const summaryItems: MemberSummaryItem[] = [ - ...publicProps.map((prop) => ({ - name: prop.name, - description: getDescriptionSummary(prop), - isMethod: false, - })), - ...publicMethods.map((method) => ({ - name: method.name, - description: getDescriptionSummary(method), - isMethod: true, - })), - ]; - - const hasMembers = publicProps.length > 0 || publicMethods.length > 0; +// ============================================================================ +// Members (properties and methods) +// ============================================================================ - return ( -
-
- class -

- # - {node.name} -

-
+function isMethod(member: DeclarationReflection): boolean { + return member.kind === ReflectionKind.Method; +} -
-
-          
-            {formatClassSignature(node.name, def)}
-          
-        
-
+function isProperty(member: DeclarationReflection): boolean { + return member.kind === ReflectionKind.Property || + member.kind === ReflectionKind.Accessor; +} - {/* Hierarchy info (extends/implements) */} - {(def.extends || (def.implements && def.implements.length > 0)) && ( -
- {def.extends && ( -
- Extends - - - -
- )} - {def.implements && def.implements.length > 0 && ( -
- Implements - - {def.implements.map((impl, i) => ( - <> - {i > 0 && ", "} - - - ))} - -
- )} -
- )} +interface MembersProps extends TypeLinkContext { + /** Parent type name (used for generating anchor IDs) */ + parentName: string; + members: DeclarationReflection[]; +} - - + - - {/* Summary table */} - {hasMembers && ( - - )} - - {/* Constructor */} - {def.constructors.length > 0 && ( -
-
Constructor
- {def.constructors.map((ctor, i) => ( -
-
-                
-                  {formatConstructorSignature(node.name, ctor.params)}
-                
-              
- {ctor.jsDoc?.doc && ( -
- )} -
- ))} -
- )} - - {/* Properties */} - {publicProps.length > 0 && ( + {properties.length > 0 && (
Properties
    - {publicProps.map((prop) => { - const desc = getDescription(prop); - return ( -
  • -
    - {prop.isStatic && ( - static - )} - {prop.readonly && ( - readonly - )} - - {prop.name} - {prop.optional && ?} - - - - -
    - {desc && ( -
    - )} -
  • - ); - })} + {properties.map((property) => ( + + ))}
)} - - {/* Methods */} - {publicMethods.length > 0 && ( + {methods.length > 0 && (
Methods
- {publicMethods.map((method) => ( - ( + ))}
)} - - -
+ ); } -interface MethodDisplayProps extends TypeLinkContext { - /** Parent type name (used for generating anchor IDs) */ - parentName?: string; - method: MethodDef; +interface PropertyItemProps extends TypeLinkContext { + parentName: string; + property: DeclarationReflection; } -function MethodDisplay( - { parentName, method, localTypes, typeToPackage, currentPackage }: - MethodDisplayProps, -) { - const paramDocs = method.jsDoc?.tags - ?.filter((t) => t.kind === "param") - .reduce((acc, t) => { - if (t.name && t.doc) acc.set(t.name, t.doc); - return acc; - }, new Map()); +function PropertyItem({ parentName, property, ...ctx }: PropertyItemProps) { + // An accessor reads as a property; without a setter it is read-only + const isAccessor = property.kind === ReflectionKind.Accessor; + const type = isAccessor ? property.getSignature?.type : property.type; + const readonly = isAccessor + ? !property.setSignature + : property.flags.isReadonly; + return ( +
  • +
    + {property.flags.isStatic && ( + static + )} + {readonly && readonly} + + {property.name} + {property.flags.isOptional && ?} + + + + +
    + +
  • + ); +} - const methodId = parentName ? `${parentName}-${method.name}` : undefined; +interface MethodItemProps extends TypeLinkContext { + parentName: string; + method: DeclarationReflection; +} +function MethodItem({ parentName, method, ...ctx }: MethodItemProps) { return ( -
    -
    -
    -          
    -            {formatMethodSignature(method)}
    -          
    -        
    -
    - {method.jsDoc?.doc && ( -
    - )} - {method.params && method.params.length > 0 && ( - - )} +
    + {(method.signatures ?? []).map((signature, i) => ( +
    + + + +
    + ))}
    ); } // ============================================================================ -// Interface Documentation +// Function Documentation // ============================================================================ -interface InterfaceDocProps extends TypeLinkContext { - node: DocNode; - def: InterfaceDef; +interface ReflectionDocProps extends TypeLinkContext { + reflection: DeclarationReflection; } -export function InterfaceDoc( - { node, def, localTypes, typeToPackage, currentPackage }: InterfaceDocProps, -) { - const description = getDescription(node); - const examples = getExamples(node); - - // Collect all type refs from the interface definition - const typeRefs = extractInterfaceRefs(def); - - // Build summary items for the overview table - const summaryItems: MemberSummaryItem[] = [ - ...def.properties.map((prop) => ({ - name: prop.name, - description: getDescriptionSummary(prop), - isMethod: false, - })), - ...def.methods.map((method) => ({ - name: method.name, - description: getDescriptionSummary(method), - isMethod: true, - })), - ]; - - const hasMembers = def.properties.length > 0 || def.methods.length > 0; +export function FunctionDoc({ reflection, ...ctx }: ReflectionDocProps) { + const signatures = reflection.signatures ?? []; + const [main] = signatures; + if (!main) return null; + const hasOverloads = signatures.length > 1; + // TypeDoc keeps a function's documentation on the signature it was written + // for; the first documented one describes the function as a whole + const documented = signatures.find((s) => s.comment) ?? main; return ( -
    -
    - interface -

    - # - {node.name} -

    -
    - -
    -
    -          
    -            {formatInterfaceSignature(node.name, def)}
    -          
    -        
    -
    - - - + + {hasOverloads && ( + ({signatures.length} overloads) + )} + + + + + + + + - {/* Summary table */} - {hasMembers && ( - - )} - - {/* Properties */} - {def.properties.length > 0 && ( -
    -
    Properties
    -
      - {def.properties.map((prop) => { - const desc = getDescription(prop); - return ( -
    • -
      - {prop.readonly && ( - readonly - )} - - {prop.name} - {prop.optional && ?} - - - - -
      - {desc && ( -
      - )} -
    • - ); - })} -
    -
    - )} - - {/* Methods */} - {def.methods.length > 0 && ( -
    -
    Methods
    - {def.methods.map((method) => ( - - ))} -
    + {hasOverloads && ( +
    + + + Show all {signatures.length} overloads + +
    + {signatures.map((signature, index) => ( +
    +
    + #{index + 1} +
    + + + + +
    + ))} +
    +
    )} - -
    ); } // ============================================================================ -// Type Alias Documentation +// Class Documentation // ============================================================================ -interface TypeAliasDocProps extends TypeLinkContext { - node: DocNode; - def: TypeAliasDef; -} - -export function TypeAliasDoc( - { node, def, localTypes, typeToPackage, currentPackage }: TypeAliasDocProps, -) { - const description = getDescription(node); - - // Collect all type refs from the type alias - const typeRefs = new Set(); - for (const ref of extractTypeRefs(def.tsType)) { - typeRefs.add(ref); - } - for (const ref of extractTypeParamRefs(def.typeParams)) { - typeRefs.add(ref); - } - - // Check if this is a type literal (struct-like type) - const typeLiteral = def.tsType?.typeLiteral; - const hasMembers = typeLiteral && - (typeLiteral.properties.length > 0 || typeLiteral.methods.length > 0); - - // Build summary items for struct-like types - const summaryItems: MemberSummaryItem[] = typeLiteral - ? [ - ...typeLiteral.properties.map((prop) => ({ - name: prop.name, - description: getDescriptionSummary(prop), - isMethod: false, - })), - ...typeLiteral.methods.map((method) => ({ - name: method.name, - description: getDescriptionSummary(method), - isMethod: true, - })), - ] - : []; +export function ClassDoc({ reflection, ...ctx }: ReflectionDocProps) { + const members = ownMembers(reflection); + const constructors = members + .filter((m) => m.kind === ReflectionKind.Constructor) + .flatMap((m) => m.signatures ?? []); + const extendedTypes = reflection.extendedTypes ?? []; + const implementedTypes = reflection.implementedTypes ?? []; return ( -
    -
    - type -

    - # - {node.name} -

    -
    - -
    -
    -          
    -            {formatTypeAliasSignature(node.name, def)}
    -          
    -        
    -
    +
    + + - - - {/* Summary table for struct-like types */} - {hasMembers && ( - - )} - - {/* Properties for struct-like types */} - {typeLiteral && typeLiteral.properties.length > 0 && ( -
    -
    Properties
    -
      - {typeLiteral.properties.map((prop) => { - const desc = getDescription(prop); - return ( -
    • -
      - {prop.readonly && ( - readonly - )} - - {prop.name} - {prop.optional && ?} - - - - -
      - {desc && ( -
      - )} -
    • - ); - })} -
    + {/* Hierarchy info (extends/implements) */} + {(extendedTypes.length > 0 || implementedTypes.length > 0) && ( +
    + +
    )} - {/* Methods for struct-like types */} - {typeLiteral && typeLiteral.methods.length > 0 && ( -
    -
    Methods
    - {typeLiteral.methods.map((method) => ( - + + + + {constructors.length > 0 && ( +
    +
    Constructor
    + {constructors.map((signature, i) => ( +
    +
    +                
    +                  {formatConstructorSignature(reflection.name, signature)}
    +                
    +              
    + +
    ))}
    )} - + + +
    + ); +} + +interface HierarchyItemProps extends TypeLinkContext { + label: string; + types: SomeType[]; +} + +function HierarchyItem({ label, types, ...ctx }: HierarchyItemProps) { + if (types.length === 0) return null; + return ( +
    + {label} + + {types.map((type, i) => ( + <> + {i > 0 && ", "} + + + ))} +
    ); } // ============================================================================ -// Variable Documentation +// Interface Documentation // ============================================================================ -interface VariableDocProps extends TypeLinkContext { - node: DocNode; +export function InterfaceDoc({ reflection, ...ctx }: ReflectionDocProps) { + return ( +
    + + + + + + +
    + ); } -export function VariableDoc( - { node, localTypes, typeToPackage, currentPackage }: VariableDocProps, -) { - const description = getDescription(node); - const def = node.variableDef; - const kind = def?.kind ?? "const"; +// ============================================================================ +// Type Alias Documentation +// ============================================================================ - // Collect type refs from the variable type - const typeRefs = extractTypeRefs(def?.tsType); +export function TypeAliasDoc({ reflection, ...ctx }: ReflectionDocProps) { + // An object type reads like an interface: list its members. TypeDoc puts + // the members of an object literal alias on the alias itself. + const declaration = reflection.type?.type === "reflection" + ? reflection.type.declaration + : reflection; + const members = (declaration.children ?? []).filter(isPublic); return ( -
    -
    - {kind} -

    - # - {node.name} -

    -
    +
    + + + + + + +
    + ); +} -
    -
    -          
    -            {`${kind} ${node.name}: ${formatType(def?.tsType)}`}
    -          
    -        
    -
    +// ============================================================================ +// Variable Documentation +// ============================================================================ - + - + + +
    ); } // ============================================================================ -// Generic Doc Node Renderer +// Generic Export Renderer // ============================================================================ -interface DocNodeRendererProps extends TypeLinkContext { - node: DocNode; - /** All overloads for this node (used for functions) */ - overloads?: DocNode[]; -} - -export function DocNodeRenderer( - { node, overloads, localTypes, typeToPackage, currentPackage }: - DocNodeRendererProps, -) { - const ctx = { localTypes, typeToPackage, currentPackage }; - - switch (node.kind) { +export function ExportDoc({ reflection, ...ctx }: ReflectionDocProps) { + switch (exportKind(reflection)) { case "function": - if (node.functionDef) { - return ( - - ); - } - break; + return ; case "class": - if (node.classDef) { - return ; - } - break; + return ; case "interface": - if (node.interfaceDef) { - return ; - } - break; + return ; case "typeAlias": - if (node.typeAliasDef) { - return ; - } - break; + return ; case "variable": - return ; + return ; default: - // Skip unsupported types + // Skip unsupported kinds return null; } - return null; } // ============================================================================ // TOC for API items // ============================================================================ +/** Display title, icon, and anchor of each export kind */ +export const EXPORT_KIND_INFO: Record< + ExportKind, + { title: string; icon: string; id: string } +> = { + class: { title: "Classes", icon: "ti-box", id: "category-classes" }, + interface: { + title: "Interfaces", + icon: "ti-puzzle", + id: "category-interfaces", + }, + function: { title: "Functions", icon: "ti-code", id: "category-functions" }, + typeAlias: { title: "Types", icon: "ti-tag", id: "category-types" }, + variable: { + title: "Variables", + icon: "ti-variable", + id: "category-variables", + }, + enum: { title: "Enums", icon: "ti-list", id: "category-enums" }, +}; + interface ApiTocProps { - nodes: DocNode[]; + /** Exports grouped by kind, in display order */ + groups: ReadonlyArray; } -export function ApiToc({ nodes }: ApiTocProps) { - // Group by kind (same order as content display) - const classes = nodes.filter((n) => n.kind === "class"); - const interfaces = nodes.filter((n) => n.kind === "interface"); - const functions = nodes.filter((n) => n.kind === "function"); - const types = nodes.filter((n) => n.kind === "typeAlias"); - const variables = nodes.filter((n) => n.kind === "variable"); - const enums = nodes.filter((n) => n.kind === "enum"); - +export function ApiToc({ groups }: ApiTocProps) { return ( ); } -interface TocGroupProps { - title: string; - icon: string; - items: DocNode[]; -} - -function TocGroup({ title, icon, items }: TocGroupProps) { - // Sort items alphabetically to match content order - const sortedItems = [...items].sort((a, b) => a.name.localeCompare(b.name)); - // Create anchor ID from title (e.g., "Classes" -> "category-classes") - const anchorId = `category-${title.toLowerCase()}`; - - return ( -
    -

    - - {title} - -

    -
      - {sortedItems.map((item) => ( -
    • - {item.name} -
    • - ))} -
    -
    - ); -} - // ============================================================================ // Package Sidebar // ============================================================================ interface PackageSidebarProps { - groups: Array<{ name: string; packages: Array<{ name: string }> }>; + groups: Array<{ + name: string; + packages: Array<{ name: string; specifier: string }>; + }>; currentPackage?: string; } @@ -1507,7 +846,7 @@ export function PackageSidebar( value={pkg.name} selected={pkg.name === currentPackage} > - @probitas/{pkg.name} + {pkg.specifier} ))} diff --git a/data/api-pages.ts b/data/api-pages.ts index 5a92391..6c77c10 100644 --- a/data/api-pages.ts +++ b/data/api-pages.ts @@ -9,9 +9,11 @@ import path from "node:path"; import { fileURLToPath } from "node:url"; import { type ApiDocsIndex, - isPublic, + isDocumentedExport, type PackageDoc, type PackageInfo, + type ProjectReflection, + toPackageDoc, } from "../app/lib/api-docs.js"; // Re-export for convenience @@ -47,7 +49,7 @@ export async function loadPackageDoc(name: string): Promise { try { const filePath = path.join(API_DATA_DIR, `${name}.json`); const content = await readFile(filePath, "utf-8"); - const doc = JSON.parse(content) as PackageDoc; + const doc = toPackageDoc(name, JSON.parse(content) as ProjectReflection); packageCache.set(name, doc); return doc; } catch { @@ -125,7 +127,7 @@ export async function getTypeLinkMap(): Promise { if (!doc) continue; for (const node of doc.exports) { - if (!isPublic(node)) continue; + if (!isDocumentedExport(node)) continue; // Only add if not already mapped (first package wins) if (!typeToPackage.has(node.name)) { diff --git a/data/api/builder.json b/data/api/builder.json index 5eec29a..71f8ae2 100644 --- a/data/api/builder.json +++ b/data/api/builder.json @@ -1,772 +1,1130 @@ { - "name": "builder", - "specifier": "@probitas/builder", - "version": "0.5.3", - "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/probitas-test/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/core](https://jsr.io/@probitas/core) | 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.5.3/scenario_builder.ts", - "line": 640, - "col": 0, - "byteIndex": 20464 + "schemaVersion": "2.0", + "id": 0, + "name": "@probitas-test/builder", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Builder module for creating scenario definitions with a fluent, type-safe API.\n\nThis package provides the " }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new scenario builder with a fluent API.\n\nThis is the primary entry point for defining scenarios. It returns a builder\nthat provides a type-safe, chainable API for constructing test scenarios.\n", - "tags": [ - { - "kind": "param", - "name": "name", - "doc": "- Human-readable scenario name (shown in test reports)" - }, - { - "kind": "param", - "name": "options", - "doc": "- Optional configuration for tags, timeouts, and retry behavior" - }, - { - "kind": "return", - "doc": "New {@linkcode ScenarioBuilderInit} instance ready for chaining\n" - }, - { - "kind": "unsupported", - "value": "@remarks\nThe builder pattern enables:\n- **Type-safe chaining**: Return values flow through steps with full type inference\n- **Resource management**: Automatic lifecycle handling with Disposable support\n- **Flexible configuration**: Override defaults at scenario or step level\n" - }, - { - "kind": "example", - "doc": "Basic scenario with type-safe step chaining\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock user service for example\nconst createUser = (_data: { email: string }) =>\n Promise.resolve({ id: \"user-123\" });\nconst verifyEmail = (_userId: string) => Promise.resolve();\n\nexport default scenario(\"User Registration\")\n .step(\"Create user\", async () => {\n const user = await createUser({ email: \"test@example.com\" });\n return { userId: user.id };\n })\n .step(\"Verify email\", async (ctx) => {\n // ctx.previous is typed as { userId: string }\n await verifyEmail(ctx.previous.userId);\n })\n .build();\n```\n" - }, - { - "kind": "example", - "doc": "Scenario with tags for filtering\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Payment Integration\", {\n tags: [\"integration\", \"payment\", \"slow\"],\n stepOptions: { timeout: 60000 } // 1 minute timeout for all steps\n})\n .step(\"Process payment\", async () => {\n return { success: true };\n })\n .build();\n\n// Run with: probitas run -s \"tag:payment\"\n```\n" - }, - { - "kind": "example", - "doc": "Scenario with resources and setup\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock Database for example\nconst Database = {\n connect: () =>\n Promise.resolve({\n rollback: () => {},\n insert: (_data: { id: number }) => {},\n query: (_sql: string) => [{ id: 1 }],\n }),\n};\n\nscenario(\"Database Test\")\n .resource(\"db\", async () => await Database.connect())\n .setup((ctx) => {\n // Run migrations\n return () => ctx.resources.db.rollback();\n })\n .step(\"Insert data\", (ctx) => ctx.resources.db.insert({ id: 1 }))\n .step(\"Query data\", (ctx) => ctx.resources.db.query(\"SELECT * FROM users\"))\n .build();\n```\n" - }, - { - "kind": "see", - "doc": "{@linkcode ScenarioBuilderInit} for available builder methods" - }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "scenario", + "target": 24 + }, + { + "kind": "text", + "text": " 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/probitas-test/probitas)\n- [@probitas-test/probitas](https://www.npmjs.com/package/@probitas-test/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas-test/core](https://www.npmjs.com/package/@probitas-test/core) | Core type definitions used by this builder |\n| [@probitas-test/runner](https://www.npmjs.com/package/@probitas-test/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- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "scenario", + "target": 24 + }, + { + "kind": "text", + "text": " - Factory function to create a new scenario builder\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "StepContext" + }, + { + "kind": "text", + "text": " - Type representing the context passed to step functions\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "StepFunction" + }, + { + "kind": "text", + "text": " - Type signature for step functions\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "SetupFunction" + }, + { + "kind": "text", + "text": " - Type signature for setup functions\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ResourceFunction" + }, + { + "kind": "text", + "text": " - Type signature for resource fn functions\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "BuilderScenarioOptions" + }, + { + "kind": "text", + "text": " - Partial options for scenario configuration\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "BuilderStepOptions" + }, + { + "kind": "text", + "text": " - Partial options for step configuration\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "DEFAULT_SCENARIO_OPTIONS" + }, + { + "kind": "text", + "text": " - Default values for scenario options\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "DEFAULT_STEP_OPTIONS" + }, + { + "kind": "text", + "text": " - Default values for step options" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Basic scenario building", + "content": [ { - "kind": "see", - "doc": "{@linkcode BuilderScenarioOptions} for configuration options" + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nexport default scenario(\"My Scenario\")\n .step(\"First step\", () => {\n return { value: 42 };\n })\n .step(\"Second step\", (ctx) => {\n console.log(ctx.previous.value); // 42 - fully typed!\n })\n .build();\n```" } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + { + "tag": "@example", + "name": "With resources and setup", + "content": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ScenarioOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioOptions" - } - } + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock database connection for example\nconst connectDatabase = () =>\n Promise.resolve({\n query: (_sql: string) => Promise.resolve(),\n async [Symbol.asyncDispose]() {},\n });\n\nexport default scenario(\"Database Test\")\n .resource(\"db\", async () => {\n const conn = await connectDatabase();\n return conn; // Automatically disposed if it has [Symbol.asyncDispose]\n })\n .setup(async (ctx) => {\n await ctx.resources.db.query(\"DELETE FROM test_table\");\n return () => ctx.resources.db.query(\"DROP TABLE test_table\");\n })\n .step(\"Insert data\", async (ctx) => {\n await ctx.resources.db.query(\"INSERT INTO test_table VALUES (1)\");\n })\n .build();\n```" } - ], - "returnType": { - "repr": "ScenarioBuilderInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioBuilderInit" + ] + }, + { + "tag": "@example", + "name": "Custom step options", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nexport default scenario(\"Retry Test\", {\n stepOptions: { timeout: 30000 } // Default timeout for all steps\n})\n .step(\"Flaky operation\", async () => {\n // This step will retry up to 3 times with exponential backoff\n }, { retry: { maxAttempts: 3, backoff: \"exponential\" } })\n .build();\n```" } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] + ] } - }, + ] + }, + "children": [ { + "id": 1, "name": "BuilderStepContext", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/builder/0.5.3/types.ts", - "line": 44, - "col": 0, - "byteIndex": 1347 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Execution context provided to steps, resources, and setup hooks.\n\nThe context provides access to:\n- Previous step results with full type inference\n- All accumulated results as a typed tuple\n- Named resources registered with `.resource()`\n- Shared storage for cross-step communication\n- Abort signal for timeout and cancellation handling\n", - "tags": [ + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "template", - "name": "P", - "doc": "- Type of the previous step's return value" + "kind": "text", + "text": "Execution context provided to steps, resources, and setup hooks.\n\nThe context provides access to:\n- Previous step results with full type inference\n- All accumulated results as a typed tuple\n- Named resources registered with " }, { - "kind": "template", - "name": "A", - "doc": "- Tuple type of all accumulated results from previous steps" + "kind": "code", + "text": "`.resource()`" }, { - "kind": "template", - "name": "R", - "doc": "- Record type mapping resource names to their types\n" - }, + "kind": "text", + "text": "\n- Shared storage for cross-step communication\n- Abort signal for timeout and cancellation handling" + } + ], + "blockTags": [ { - "kind": "example", - "doc": "Accessing previous result\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Chained Steps\")\n .step(\"First\", () => ({ id: 123 }))\n .step(\"Second\", (ctx) => {\n console.log(ctx.previous.id); // 123 (typed as number)\n })\n .build();\n```\n" + "tag": "@example", + "name": "Accessing previous result", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Chained Steps\")\n .step(\"First\", () => ({ id: 123 }))\n .step(\"Second\", (ctx) => {\n console.log(ctx.previous.id); // 123 (typed as number)\n })\n .build();\n```" + } + ] }, { - "kind": "example", - "doc": "Using shared store\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Store Example\")\n .setup((ctx) => {\n ctx.store.set(\"startTime\", Date.now());\n })\n .step(\"Check duration\", (ctx) => {\n const start = ctx.store.get(\"startTime\") as number;\n console.log(`Elapsed: ${Date.now() - start}ms`);\n })\n .build();\n```" + "tag": "@example", + "name": "Using shared store", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Store Example\")\n .setup((ctx) => {\n ctx.store.set(\"startTime\", Date.now());\n })\n .step(\"Check duration\", (ctx) => {\n const start = ctx.store.get(\"startTime\") as number;\n console.log(`Elapsed: ${Date.now() - start}ms`);\n })\n .build();\n```" + } + ] } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "intersection", - "intersection": [ - { - "repr": "StepContext", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepContext" - } - }, - { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "previous", - "jsDoc": { - "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.5.3/types.ts", - "line": 55, - "col": 2, - "byteIndex": 1688 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "P", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "P" - } - }, - "typeParams": [] - }, - { - "name": "results", - "jsDoc": { - "doc": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n- `ctx.results[0]` - First step's result\n- `ctx.results[1]` - Second step's result" - }, - "location": { - "filename": "https://jsr.io/@probitas/builder/0.5.3/types.ts", - "line": 64, - "col": 2, - "byteIndex": 1922 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "A", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "A" - } - }, - "typeParams": [] - }, - { - "name": "resources", - "jsDoc": { - "doc": "Named resources registered with `.resource()`.\n\nResources are typed based on their registration:\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock database connection for example\nconst createDbConnection = () => ({ query: (_sql: string) => [{ id: 1 }] });\n\nscenario(\"test\")\n .resource(\"db\", () => createDbConnection())\n .step((ctx) => ctx.resources.db.query(\"SELECT 1\"))\n .build();\n```" - }, - "location": { - "filename": "https://jsr.io/@probitas/builder/0.5.3/types.ts", - "line": 82, - "col": 2, - "byteIndex": 2430 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] + "typeParameters": [ + { + "id": 6, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Type of the previous step's return value" } - } - ] - }, - "typeParams": [ - { - "name": "P", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + ] }, - { - "name": "A", - "constraint": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } + "default": { + "type": "intrinsic", + "name": "unknown" + } + }, + { + "id": 7, + "name": "A", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Tuple type of all accumulated results from previous steps" } - }, - "default": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } }, - { - "name": "R", - "constraint": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" + "default": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } } - ] - } - }, - { - "name": "BuilderStepFunction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/builder/0.5.3/types.ts", - "line": 117, - "col": 0, - "byteIndex": 3453 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Function signature for step execution.\n\nA step function receives the execution context and returns a value\n(sync or async) that becomes available to subsequent steps.\n", - "tags": [ - { - "kind": "template", - "name": "T", - "doc": "- Type of this step's return value" - }, - { - "kind": "template", - "name": "P", - "doc": "- Type of the previous step's result (from `ctx.previous`)" - }, - { - "kind": "template", - "name": "A", - "doc": "- Tuple type of all accumulated results" + }, + { + "id": 8, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Record type mapping resource names to their types" + } + ] }, - { - "kind": "template", - "name": "R", - "doc": "- Record of available resources\n" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" }, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "type": { + "type": "intersection", + "types": [ { - "kind": "example", - "doc": "Sync step returning data\n```ts\nimport type { BuilderStepFunction } from \"@probitas-test/builder\";\n\nconst step: BuilderStepFunction<{ name: string }> = (_ctx) => {\n return { name: \"Alice\" };\n};\n```\n" + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepContext" + }, + "name": "StepContext", + "package": "@probitas-test/core" }, { - "kind": "example", - "doc": "Async step with API call\n```ts\nimport type { BuilderStepFunction } from \"@probitas-test/builder\";\n\ntype User = { id: string; name: string };\n\nconst step: BuilderStepFunction = async (ctx) => {\n const response = await fetch(\"/api/user\", { signal: ctx.signal });\n return response.json();\n};\n```" - } - ] - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "type": "reflection", + "declaration": { + "id": 2, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 3, + "name": "previous", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result from the previous step.\n\nFully typed based on what the previous step returned.\nFor the first step, this is " + }, + { + "kind": "code", + "text": "`unknown`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "reference", + "target": 6, + "name": "P", + "package": "@probitas-test/builder", + "refersToTypeParameter": true } }, { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 5, + "name": "resources", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Named resources registered with " + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "code", + "text": "`.resource()`" + }, + { + "kind": "text", + "text": ".\n\nResources are typed based on their registration:\n" + }, + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock database connection for example\nconst createDbConnection = () => ({ query: (_sql: string) => [{ id: 1 }] });\n\nscenario(\"test\")\n .resource(\"db\", () => createDbConnection())\n .step((ctx) => ctx.resources.db.query(\"SELECT 1\"))\n .build();\n```" } - ], - "typeName": "Promise" + ] + }, + "type": { + "type": "reference", + "target": 8, + "name": "R", + "package": "@probitas-test/builder", + "refersToTypeParameter": true } - } - ] - }, - "params": [ - { - "kind": "identifier", - "name": "ctx", - "optional": false, - "tsType": { - "repr": "BuilderStepContext", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 4, + "name": "results", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n- " + }, { - "repr": "P", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "P" - } + "kind": "code", + "text": "`ctx.results[0]`" }, { - "repr": "A", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "A" - } + "kind": "text", + "text": " - First step's result\n- " }, { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } + "kind": "code", + "text": "`ctx.results[1]`" + }, + { + "kind": "text", + "text": " - Second step's result" } - ], - "typeName": "BuilderStepContext" + ] + }, + "type": { + "type": "reference", + "target": 7, + "name": "A", + "package": "@probitas-test/builder", + "refersToTypeParameter": true } } + ] + } + } + ] + } + }, + { + "id": 17, + "name": "BuilderStepDefinition", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Immutable definition of a scenario step.\n\nContains all information needed to execute a single step:\nthe step function, its options, and debugging metadata." + } + ], + "blockTags": [ + { + "tag": "@remarks", + "content": [ + { + "kind": "text", + "text": "Step definitions are created by the builder and consumed by the runner.\nThey are immutable and should not be modified after creation." } - ], - "typeParams": [] + ] + } + ] + }, + "typeParameters": [ + { + "id": 20, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Type of this step's return value" + } + ] + }, + "default": { + "type": "intrinsic", + "name": "unknown" } }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + { + "id": 21, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Type of the previous step's result" + } + ] + }, + "default": { + "type": "intrinsic", + "name": "unknown" + } + }, + { + "id": 22, + "name": "A", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Tuple type of accumulated results" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } } }, - { - "name": "P", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "default": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } } + } + }, + { + "id": 23, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Record of available resources" + } + ] }, - { - "name": "A", - "constraint": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } + ], + "name": "Record", + "package": "typescript" + }, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "default": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } - } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepDefinition" + }, + "name": "StepDefinition", + "package": "@probitas-test/core" }, { - "name": "R", - "constraint": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "reflection", + "declaration": { + "id": 18, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 19, + "name": "fn", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Step function to execute" + } + ] }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": { + "type": "reference", + "target": 9, + "typeArguments": [ + { + "type": "reference", + "target": 20, + "name": "T", + "package": "@probitas-test/builder", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 21, + "name": "P", + "package": "@probitas-test/builder", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 22, + "name": "A", + "package": "@probitas-test/builder", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 23, + "name": "R", + "package": "@probitas-test/builder", + "refersToTypeParameter": true + } + ], + "name": "BuilderStepFunction", + "package": "@probitas-test/builder" } - ], - "typeName": "Record" - } + } + ] } } ] } }, { - "name": "BuilderStepDefinition", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/builder/0.5.3/types.ts", - "line": 139, - "col": 0, - "byteIndex": 4228 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Immutable definition of a scenario step.\n\nContains all information needed to execute a single step:\nthe step function, its options, and debugging metadata.\n", - "tags": [ - { - "kind": "template", - "name": "T", - "doc": "- Type of this step's return value" - }, - { - "kind": "template", - "name": "P", - "doc": "- Type of the previous step's result" - }, + "id": 9, + "name": "BuilderStepFunction", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "template", - "name": "A", - "doc": "- Tuple type of accumulated results" - }, + "kind": "text", + "text": "Function signature for step execution.\n\nA step function receives the execution context and returns a value\n(sync or async) that becomes available to subsequent steps." + } + ], + "blockTags": [ { - "kind": "template", - "name": "R", - "doc": "- Record of available resources\n" + "tag": "@example", + "name": "Sync step returning data", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { BuilderStepFunction } from \"@probitas-test/builder\";\n\nconst step: BuilderStepFunction<{ name: string }> = (_ctx) => {\n return { name: \"Alice\" };\n};\n```" + } + ] }, { - "kind": "unsupported", - "value": "@remarks\nStep definitions are created by the builder and consumed by the runner.\nThey are immutable and should not be modified after creation." + "tag": "@example", + "name": "Async step with API call", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { BuilderStepFunction } from \"@probitas-test/builder\";\n\ntype User = { id: string; name: string };\n\nconst step: BuilderStepFunction = async (ctx) => {\n const response = await fetch(\"/api/user\", { signal: ctx.signal });\n return response.json();\n};\n```" + } + ] } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "intersection", - "intersection": [ - { - "repr": "StepDefinition", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepDefinition" + "typeParameters": [ + { + "id": 13, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Type of this step's return value" } - }, - { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "fn", - "jsDoc": { - "doc": "Step function to execute" - }, - "location": { - "filename": "https://jsr.io/@probitas/builder/0.5.3/types.ts", - "line": 146, - "col": 2, - "byteIndex": 4468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "BuilderStepFunction", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "P", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "P" - } - }, - { - "repr": "A", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "A" - } - }, - { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - ], - "typeName": "BuilderStepFunction" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "default": { + "type": "intrinsic", + "name": "unknown" + } + }, + { + "id": 14, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Type of the previous step's result (from " + }, + { + "kind": "code", + "text": "`ctx.previous`" + }, + { + "kind": "text", + "text": ")" } - } - ] + ] + }, + "default": { + "type": "intrinsic", + "name": "unknown" + } }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + { + "id": 15, + "name": "A", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Tuple type of all accumulated results" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } } }, - { - "name": "P", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "default": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } } + } + }, + { + "id": 16, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Record of available resources" + } + ] }, - { - "name": "A", - "constraint": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } + ], + "name": "Record", + "package": "typescript" + }, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "default": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 10, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12, + "name": "ctx", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1, + "typeArguments": [ + { + "type": "reference", + "target": 14, + "name": "P", + "package": "@probitas-test/builder", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 15, + "name": "A", + "package": "@probitas-test/builder", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 16, + "name": "R", + "package": "@probitas-test/builder", + "refersToTypeParameter": true + } + ], + "name": "BuilderStepContext", + "package": "@probitas-test/builder" } } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 13, + "name": "T", + "package": "@probitas-test/builder", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 13, + "name": "T", + "package": "@probitas-test/builder", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + ] } } - }, - { - "name": "R", - "constraint": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + } + } + }, + { + "id": 24, + "name": "scenario", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 25, + "name": "scenario", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new scenario builder with a fluent API.\n\nThis is the primary entry point for defining scenarios. It returns a builder\nthat provides a type-safe, chainable API for constructing test scenarios." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "New " }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioBuilderInit", + "target": { + "packageName": "@probitas-test/builder", + "packagePath": "scenario_builder.ts", + "qualifiedName": "ScenarioBuilderInit" + } + }, + { + "kind": "text", + "text": " instance ready for chaining" } - ], - "typeName": "Record" - } - }, - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "tag": "@remarks", + "content": [ + { + "kind": "text", + "text": "The builder pattern enables:\n- **Type-safe chaining**: Return values flow through steps with full type inference\n- **Resource management**: Automatic lifecycle handling with Disposable support\n- **Flexible configuration**: Override defaults at scenario or step level" + } + ] + }, + { + "tag": "@example", + "name": "Basic scenario with type-safe step chaining", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock user service for example\nconst createUser = (_data: { email: string }) =>\n Promise.resolve({ id: \"user-123\" });\nconst verifyEmail = (_userId: string) => Promise.resolve();\n\nexport default scenario(\"User Registration\")\n .step(\"Create user\", async () => {\n const user = await createUser({ email: \"test@example.com\" });\n return { userId: user.id };\n })\n .step(\"Verify email\", async (ctx) => {\n // ctx.previous is typed as { userId: string }\n await verifyEmail(ctx.previous.userId);\n })\n .build();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Scenario with tags for filtering", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Payment Integration\", {\n tags: [\"integration\", \"payment\", \"slow\"],\n stepOptions: { timeout: 60000 } // 1 minute timeout for all steps\n})\n .step(\"Process payment\", async () => {\n return { success: true };\n })\n .build();\n\n// Run with: probitas run -s \"tag:payment\"\n```" + } + ] + }, + { + "tag": "@example", + "name": "Scenario with resources and setup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock Database for example\nconst Database = {\n connect: () =>\n Promise.resolve({\n rollback: () => {},\n insert: (_data: { id: number }) => {},\n query: (_sql: string) => [{ id: 1 }],\n }),\n};\n\nscenario(\"Database Test\")\n .resource(\"db\", async () => await Database.connect())\n .setup((ctx) => {\n // Run migrations\n return () => ctx.resources.db.rollback();\n })\n .step(\"Insert data\", (ctx) => ctx.resources.db.insert({ id: 1 }))\n .step(\"Query data\", (ctx) => ctx.resources.db.query(\"SELECT * FROM users\"))\n .build();\n```" + } + ] + }, + { + "tag": "@see", + "content": [ + { + "kind": "text", + "text": " - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioBuilderInit", + "target": { + "packageName": "@probitas-test/builder", + "packagePath": "scenario_builder.ts", + "qualifiedName": "ScenarioBuilderInit" + } + }, + { + "kind": "text", + "text": " for available builder methods" + }, + { + "kind": "text", + "text": "\n" + }, + { + "kind": "text", + "text": " - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "BuilderScenarioOptions" + }, { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": " for configuration options" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "kind": "text", + "text": "\n" } - ], - "typeName": "Record" + ] + } + ] + }, + "parameters": [ + { + "id": 26, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Human-readable scenario name (shown in test reports)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 27, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional configuration for tags, timeouts, and retry behavior" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioOptions" + }, + "name": "ScenarioOptions", + "package": "@probitas-test/core" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/builder", + "packagePath": "scenario_builder.ts", + "qualifiedName": "ScenarioBuilderInit" + }, + "name": "ScenarioBuilderInit", + "package": "@probitas-test/builder" } - ] - } + } + ] } - ] + ], + "packageName": "@probitas-test/builder", + "packageVersion": "0.5.4" } diff --git a/data/api/client-connectrpc.json b/data/api/client-connectrpc.json index bb49014..5508506 100644 --- a/data/api/client-connectrpc.json +++ b/data/api/client-connectrpc.json @@ -1,5420 +1,5426 @@ { - "name": "client-connectrpc", - "specifier": "@probitas/client-connectrpc", - "version": "0.7.1", - "moduleDoc": "ConnectRPC client for [Probitas](https://github.com/probitas-test/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-test/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\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({ url: \"http://localhost:50051\" });\n\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.statusCode); // INVALID_ARGUMENT = 3\n}\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [ConnectRPC](https://connectrpc.com/)\n", - "exports": [ - { - "name": "ConnectRpcResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 232, - "col": 0, - "byteIndex": 6908 + "schemaVersion": "2.0", + "id": 89, + "name": "@probitas-test/client-connectrpc", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC client for [Probitas](https://github.com/probitas-test/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 " }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC response union type.\n\nUse `processed` to distinguish between server responses and failures:\n- `processed === true`: Server responded (Success or Error)\n- `processed === false`: Request failed (Failure)\n\nUse `ok` to check for success:\n- `ok === true`: Success (statusCode === 0)\n- `ok === false`: Error or Failure" + { + "kind": "code", + "text": "`AsyncDisposable`" }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ConnectRpcResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseSuccess" - } - }, - { - "repr": "ConnectRpcResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseError" - } - }, - { - "repr": "ConnectRpcResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseFailure" - } - } - ] - }, - "typeParams": [ + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-connectrpc\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/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```" + }, + { + "kind": "text", + "text": "\n\n## Testing Error Responses\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({ url: \"http://localhost:50051\" });\n\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.statusCode); // INVALID_ARGUMENT = 3\n}\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\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```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client) | Core utilities and types |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-grpc`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-grpc) | gRPC client (wrapper with " + }, + { + "kind": "code", + "text": "`protocol: \"grpc\"`" + }, + { + "kind": "text", + "text": ") |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [ConnectRPC](https://connectrpc.com/)" + } + ] + }, + "children": [ + { + "id": 182, + "name": "ConnectRpcError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error class for ConnectRPC/gRPC errors.\n\nUse " + }, { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "code", + "text": "`statusCode`" + }, + { + "kind": "text", + "text": " to distinguish between different gRPC error codes." } ] - } - }, - { - "name": "ConnectRpcResponseError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 164, - "col": 0, - "byteIndex": 4941 }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC response with gRPC error (statusCode !== 0).\n\nThe server processed the request but returned an error status." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ConnectRpcResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "children": [ + { + "id": 183, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 184, + "name": "ConnectRpcError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 185, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 186, + "name": "statusCode", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 164, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 187, + "name": "statusMessage", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 188, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 179, + "name": "ConnectRpcErrorOptions", + "package": "@probitas-test/client-connectrpc" } } ], - "typeName": "ConnectRpcResponseBase" + "type": { + "type": "reference", + "target": 182, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 166, - "col": 2, - "byteIndex": 5031 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 167, - "col": 2, - "byteIndex": 5059 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + }, + { + "id": 194, + "name": "details", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 168, - "col": 2, - "byteIndex": 5081 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 176, + "name": "ErrorDetail", + "package": "@probitas-test/client-connectrpc" } - }, - "typeParams": [] + } + } + }, + { + "id": 190, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "statusCode", - "jsDoc": { - "doc": "gRPC status code (1-16)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 171, - "col": 2, - "byteIndex": 5151 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "connectrpc" }, - { - "name": "statusMessage", - "jsDoc": { - "doc": "Status message describing the error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 174, - "col": 2, - "byteIndex": 5243 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 193, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 177, - "col": 2, - "byteIndex": 5305 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] + } + }, + { + "id": 189, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "trailers", - "jsDoc": { - "doc": "Response trailers (sent at end of RPC)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 180, - "col": 2, - "byteIndex": 5384 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw ConnectError." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 183, - "col": 2, - "byteIndex": 5442 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectError" - } - }, - "typeParams": [] + "defaultValue": "\"ConnectRpcError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + }, + { + "id": 191, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "data", - "jsDoc": { - "doc": "No data for error responses." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 186, - "col": 2, - "byteIndex": 5511 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 164, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 192, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] }, { - "name": "ConnectRpcResponseFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 195, - "col": 0, - "byteIndex": 5781 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Failed ConnectRPC request (network error, connection refused, etc.).\n\nThe request did not reach gRPC processing." + "id": 169, + "name": "ConnectRpcNetworkError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a network-level failure occurs.\n\nThis error indicates that the request could not be processed by the server\ndue to network issues (connection refused, DNS resolution failure, timeout, etc.).\nUnlike ConnectRpcError, this error means the server was never reached." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ConnectRpcResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "children": [ + { + "id": 170, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 171, + "name": "ConnectRpcNetworkError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 172, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 173, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" } } ], - "typeName": "ConnectRpcResponseBase" + "type": { + "type": "reference", + "target": 169, + "name": "ConnectRpcNetworkError", + "package": "@probitas-test/client-connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 197, - "col": 2, - "byteIndex": 5873 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + }, + { + "id": 175, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 198, - "col": 2, - "byteIndex": 5902 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "connectrpc" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 199, - "col": 2, - "byteIndex": 5924 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcFailureError" - } - }, - "typeParams": [] + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 174, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "statusCode", - "jsDoc": { - "doc": "Status code (null for network failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 202, - "col": 2, - "byteIndex": 6017 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" }, - { - "name": "statusMessage", - "jsDoc": { - "doc": "Status message (null for network failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 205, - "col": 2, - "byteIndex": 6100 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "defaultValue": "\"ConnectRpcNetworkError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers (null for failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 208, - "col": 2, - "byteIndex": 6180 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "name": "ClientError", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 280, + "name": "ConnectRpcClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC client interface.\n\n## Field Name Conventions\n\nThis client automatically handles field name conversion between protobuf and JavaScript:\n\n- **Request fields**: Accept both " }, { - "name": "trailers", - "jsDoc": { - "doc": "Response trailers (null for failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 211, - "col": 2, - "byteIndex": 6255 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "kind": "code", + "text": "`snake_case`" }, { - "name": "raw", - "jsDoc": { - "doc": "No raw response (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 214, - "col": 2, - "byteIndex": 6339 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "kind": "text", + "text": " (protobuf style) and " }, { - "name": "data", - "jsDoc": { - "doc": "No data (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 217, - "col": 2, - "byteIndex": 6410 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ + "kind": "code", + "text": "`camelCase`" + }, { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "ConnectRpcResponseSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 133, - "col": 0, - "byteIndex": 4053 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful ConnectRPC response (statusCode === 0)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "kind": "text", + "text": " (JavaScript style)\n- **Response fields**: Converted to JavaScript conventions based on response type:\n - " + }, { - "repr": "ConnectRpcResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ + "kind": "code", + "text": "`response.data`" + }, { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 135, - "col": 2, - "byteIndex": 4145 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + "kind": "text", + "text": ": Plain JSON object with " }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 136, - "col": 2, - "byteIndex": 4173 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + "kind": "code", + "text": "`camelCase`" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 137, - "col": 2, - "byteIndex": 4194 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "kind": "text", + "text": " field names (no " }, { - "name": "statusCode", - "jsDoc": { - "doc": "gRPC status code (always 0 for success)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 140, - "col": 2, - "byteIndex": 4269 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 - } - }, - "typeParams": [] + "kind": "code", + "text": "`$typeName`" }, { - "name": "statusMessage", - "jsDoc": { - "doc": "Status message (null for successful responses)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 143, - "col": 2, - "byteIndex": 4353 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "kind": "text", + "text": ")\n - " }, { - "name": "headers", - "jsDoc": { - "doc": "Response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 146, - "col": 2, - "byteIndex": 4413 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] + "kind": "code", + "text": "`response.raw`" }, { - "name": "trailers", - "jsDoc": { - "doc": "Response trailers (sent at end of RPC)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 149, - "col": 2, - "byteIndex": 4492 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] + "kind": "text", + "text": ": Original protobuf Message object with all metadata (includes " }, { - "name": "raw", - "jsDoc": { - "doc": "Raw protobuf Message object." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 152, - "col": 2, - "byteIndex": 4561 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] + "kind": "code", + "text": "`$typeName`" }, { - "name": "data", - "jsDoc": { - "doc": "Response data as plain JavaScript object (JSON representation)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 155, - "col": 2, - "byteIndex": 4660 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "kind": "text", + "text": ")" } ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ + "blockTags": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst client = createConnectRpcClient({ url: \"http://localhost:50051\" });\n\n// Request: Both formats work\nawait client.call(\"echo.Echo\", \"echoWithDelay\", {\n message: \"hello\",\n delayMs: 100, // camelCase (recommended)\n // delay_ms: 100, // snake_case also works\n});\n\n// Response: data is JSON, raw is protobuf Message\nconst response = await client.call(\"echo.Echo\", \"echo\", { message: \"test\" });\nconsole.log(response.data); // { message: \"test\", metadata: {...} }\nconsole.log(response.raw); // { $typeName: \"echo.EchoResponse\", message: \"test\", ... }\n```" + } + ] } ] - } - }, - { - "name": "FileDescriptorSet", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 31, - "col": 0, - "byteIndex": 713 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "FileDescriptorSet message type from @bufbuild/protobuf.\nThis is the decoded protobuf message containing file descriptors." }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "MessageShape", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "FileDescriptorSetSchema", - "kind": "typeQuery", - "typeQuery": "FileDescriptorSetSchema" + "children": [ + { + "id": 281, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration" } - ], - "typeName": "MessageShape" + ] + }, + "type": { + "type": "reference", + "target": 105, + "name": "ConnectRpcClientConfig", + "package": "@probitas-test/client-connectrpc" } }, - "typeParams": [] - } - }, - { - "name": "ConnectProtocol", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 36, - "col": 0, - "byteIndex": 845 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Protocol to use for ConnectRPC transport." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "connect", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connect" - } - }, - { - "repr": "grpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "grpc" - } - }, - { - "repr": "grpc-web", - "kind": "literal", - "literal": { - "kind": "string", - "string": "grpc-web" - } - } - ] - }, - "typeParams": [] - } - }, - { - "name": "HttpVersion", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 41, - "col": 0, - "byteIndex": 948 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP version for transport." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "1.1", - "kind": "literal", - "literal": { - "kind": "string", - "string": "1.1" - } - }, - { - "repr": "2", - "kind": "literal", - "literal": { - "kind": "string", - "string": "2" - } - } - ] - }, - "typeParams": [] - } - }, - { - "name": "TlsConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 46, - "col": 0, - "byteIndex": 1045 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "TLS configuration for ConnectRPC connections." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "rootCerts", - "jsDoc": { - "doc": "Root CA certificate (PEM format)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 48, - "col": 2, - "byteIndex": 1119 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - "typeParams": [] - }, - { - "name": "clientCert", - "jsDoc": { - "doc": "Client certificate (PEM format)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 50, - "col": 2, - "byteIndex": 1196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - "typeParams": [] + { + "id": 282, + "name": "reflection", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "clientKey", - "jsDoc": { - "doc": "Client private key (PEM format)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 52, - "col": 2, - "byteIndex": 1274 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Reflection API (only available when schema: \"reflection\")" } - }, - "typeParams": [] + ] }, - { - "name": "insecure", - "jsDoc": { - "doc": "Skip server certificate verification (use only for testing)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 54, - "col": 2, - "byteIndex": 1379 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 62, - "col": 0, - "byteIndex": 1530 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC connection configuration.\n\nExtends CommonConnectionConfig with ConnectRPC-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" - } + "type": { + "type": "reference", + "target": 267, + "name": "ReflectionApi", + "package": "@probitas-test/client-connectrpc" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "protocol", - "jsDoc": { - "doc": "Protocol to use.", - "tags": [ + }, + { + "id": 304, + "name": "bidiStream", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 305, + "name": "bidiStream", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a bidirectional streaming RPC call." + } + ] + }, + "typeParameters": [ { - "kind": "unsupported", - "value": "@default \"http\"" + "id": 306, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 67, - "col": 2, - "byteIndex": 1664 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "parameters": [ + { + "id": 307, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" + "id": 308, + "name": "methodName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "https", - "kind": "literal", - "literal": { - "kind": "string", - "string": "https" + "id": 309, + "name": "requests", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async iterable of request messages" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 306, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "AsyncIterable", + "package": "typescript" } - } - ] - }, - "typeParams": [] - }, - { - "name": "path", - "jsDoc": { - "doc": "Service path prefix.", - "tags": [ + }, { - "kind": "unsupported", - "value": "@default \"\"" + "id": 310, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 117, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 73, - "col": 2, - "byteIndex": 1760 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 79, - "col": 0, - "byteIndex": 1846 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration for creating a ConnectRPC client." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 313, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "AsyncIterable", + "package": "typescript" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "Server URL for ConnectRPC connections.\n\nCan be a URL string or a connection configuration object.\n", - "tags": [ + ] + }, + { + "id": 283, + "name": "call", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 284, + "name": "call", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a unary RPC call." + } + ] + }, + "typeParameters": [ + { + "id": 285, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "kind": "example", - "doc": "String URL\n```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = { url: \"http://localhost:50051\" };\n```\n" + "id": 286, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name (e.g., \"echo.EchoService\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "Connection config object\n```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = {\n url: { host: \"grpc.example.com\", port: 443, protocol: \"https\" },\n};\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 99, - "col": 2, - "byteIndex": 2525 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "id": 287, + "name": "methodName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name (e.g., \"echo\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 288, + "name": "request", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request message" + } + ] + }, + "type": { + "type": "reference", + "target": 285, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } }, { - "repr": "ConnectRpcConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcConnectionConfig" + "id": 289, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 117, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" } } - ] - }, - "typeParams": [] - }, - { - "name": "protocol", - "jsDoc": { - "doc": "Protocol to use.", - "tags": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 313, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 297, + "name": "clientStream", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 298, + "name": "clientStream", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a client streaming RPC call." + } + ] + }, + "typeParameters": [ { - "kind": "unsupported", - "value": "@default \"grpc\"" + "id": 299, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 105, - "col": 2, - "byteIndex": 2634 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "ConnectProtocol", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectProtocol" - } - }, - "typeParams": [] - }, - { - "name": "httpVersion", - "jsDoc": { - "doc": "HTTP version to use.", - "tags": [ + ], + "parameters": [ + { + "id": 300, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 301, + "name": "methodName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 302, + "name": "requests", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async iterable of request messages" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 299, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "AsyncIterable", + "package": "typescript" + } + }, { - "kind": "unsupported", - "value": "@default \"2\"" + "id": 303, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 117, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 111, - "col": 2, - "byteIndex": 2730 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HttpVersion", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpVersion" - } - }, - "typeParams": [] - }, - { - "name": "tls", - "jsDoc": { - "doc": "TLS configuration. If not provided, uses insecure credentials." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 114, - "col": 2, - "byteIndex": 2841 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "TlsConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TlsConfig" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 313, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "metadata", - "jsDoc": { - "doc": "Default metadata to send with every request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 117, - "col": 2, - "byteIndex": 2924 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" + } + ] + }, + { + "id": 311, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 312, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the client connection." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "schema", - "jsDoc": { - "doc": "Schema resolution configuration.\n- \"reflection\": Use Server Reflection to discover services dynamically (default)\n- string: Path to FileDescriptorSet binary file (from `buf build --output set.binpb`)\n- Uint8Array: FileDescriptorSet binary data\n- FileDescriptorSet: Pre-parsed FileDescriptorSet message object", - "tags": [ + } + ] + }, + { + "id": 290, + "name": "serverStream", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 291, + "name": "serverStream", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a server streaming RPC call." + } + ] + }, + "typeParameters": [ { - "kind": "unsupported", - "value": "@default \"reflection\"" + "id": 292, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 127, - "col": 2, - "byteIndex": 3333 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "parameters": [ { - "repr": "reflection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "reflection" + "id": 293, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 294, + "name": "methodName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + "id": 295, + "name": "request", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request message" + } + ] + }, + "type": { + "type": "reference", + "target": 292, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true } }, { - "repr": "FileDescriptorSet", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "FileDescriptorSet" + "id": 296, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 117, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" } } - ] - }, - "typeParams": [] - }, - { - "name": "useBinaryFormat", - "jsDoc": { - "doc": "Whether to use binary format for messages.", - "tags": [ - { - "kind": "unsupported", - "value": "@default true" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 133, - "col": 2, - "byteIndex": 3489 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 313, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "AsyncIterable", + "package": "typescript" + } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nCan be overridden per-request via ConnectRpcOptions.throwOnError.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 140, - "col": 2, - "byteIndex": 3715 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "ConnectRpcOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 146, - "col": 0, - "byteIndex": 3803 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual ConnectRPC calls." + "id": 105, + "name": "ConnectRpcClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Configuration for creating a ConnectRPC client." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "children": [ + { + "id": 108, + "name": "httpVersion", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP version to use." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"2\"\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 92, + "name": "HttpVersion", + "package": "@probitas-test/client-connectrpc" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "metadata", - "jsDoc": { - "doc": "Metadata to send with the request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 148, - "col": 2, - "byteIndex": 3908 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" + }, + { + "id": 110, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default metadata to send with every request." } - }, - "typeParams": [] + ] }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nOverrides ConnectRpcClientConfig.throwOnError.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 155, - "col": 2, - "byteIndex": 4160 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" + }, + "name": "HeadersInit", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 107, + "name": "protocol", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Protocol to use." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"grpc\"\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 91, + "name": "ConnectProtocol", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 116, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 111, + "name": "schema", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Schema resolution configuration.\n- \"reflection\": Use Server Reflection to discover services dynamically (default)\n- string: Path to FileDescriptorSet binary file (from " + }, + { + "kind": "code", + "text": "`buf build --output set.binpb`" + }, + { + "kind": "text", + "text": ")\n- Uint8Array: FileDescriptorSet binary data\n- FileDescriptorSet: Pre-parsed FileDescriptorSet message object" + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"reflection\"\n```" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/wkt/google/protobuf/descriptor_pb.d.ts", + "qualifiedName": "FileDescriptorSet" + }, + "name": "FileDescriptorSet", + "package": "@bufbuild/protobuf" + } + ] + } + }, + { + "id": 115, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 113, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nCan be overridden per-request via ConnectRpcOptions.throwOnError." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 114, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + }, + { + "id": 109, + "name": "tls", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "TLS configuration. If not provided, uses insecure credentials." + } + ] + }, + "type": { + "type": "reference", + "target": 93, + "name": "TlsConfig", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 106, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server URL for ConnectRPC connections.\n\nCan be a URL string or a connection configuration object." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "String URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = { url: \"http://localhost:50051\" };\n```" + } + ] + }, + { + "tag": "@example", + "name": "Connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = {\n url: { host: \"grpc.example.com\", port: 443, protocol: \"https\" },\n};\n```" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 98, + "name": "ConnectRpcConnectionConfig", + "package": "@probitas-test/client-connectrpc" + } + ] + } + }, + { + "id": 112, + "name": "useBinaryFormat", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to use binary format for messages." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\ntrue\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "ServiceInfo", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 161, - "col": 0, - "byteIndex": 4244 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Service information from reflection." + "id": 98, + "name": "ConnectRpcConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC connection configuration.\n\nExtends CommonConnectionConfig with ConnectRPC-specific options." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "name", - "jsDoc": { - "doc": "Fully qualified service name (e.g., \"echo.EchoService\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 163, - "col": 2, - "byteIndex": 4342 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "children": [ + { + "id": 101, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "file", - "jsDoc": { - "doc": "Proto file name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 165, - "col": 2, - "byteIndex": 4392 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Hostname or IP address." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 104, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 100, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service path prefix." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"\"\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 102, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 99, + "name": "protocol", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Protocol to use." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"http\"\n```" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "http" + }, + { + "type": "literal", + "value": "https" + } + ] + } + }, + { + "id": 103, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] }, { - "name": "MethodInfo", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 171, - "col": 0, - "byteIndex": 4465 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Method information from reflection." + "id": 179, + "name": "ConnectRpcErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for ConnectRpcError construction." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "name", - "jsDoc": { - "doc": "Method name (e.g., \"Echo\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 173, - "col": 2, - "byteIndex": 4533 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "children": [ + { + "id": 181, + "name": "details", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "localName", - "jsDoc": { - "doc": "Local name (camelCase)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 175, - "col": 2, - "byteIndex": 4590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rich error details from google.rpc.Status." + } + ] }, - { - "name": "kind", - "jsDoc": { - "doc": "Method kind" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 177, - "col": 2, - "byteIndex": 4641 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "unary", - "kind": "literal", - "literal": { - "kind": "string", - "string": "unary" - } - }, - { - "repr": "server_streaming", - "kind": "literal", - "literal": { - "kind": "string", - "string": "server_streaming" - } - }, - { - "repr": "client_streaming", - "kind": "literal", - "literal": { - "kind": "string", - "string": "client_streaming" + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 176, + "name": "ErrorDetail", + "package": "@probitas-test/client-connectrpc" } + } + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 180, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Headers/metadata from the ConnectRPC response." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" }, - { - "repr": "bidi_streaming", - "kind": "literal", - "literal": { - "kind": "string", - "string": "bidi_streaming" + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ] + }, + { + "id": 117, + "name": "ConnectRpcOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for individual ConnectRPC calls." + } + ] + }, + "children": [ + { + "id": 118, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Metadata to send with the request." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" + }, + "name": "HeadersInit", + "package": "typescript" + } + }, + { + "id": 122, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 121, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 119, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nOverrides ConnectRpcClientConfig.throwOnError." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" } - } - ] - }, - "typeParams": [] + ] + } + ] }, - { - "name": "inputType", - "jsDoc": { - "doc": "Input message type name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 183, - "col": 2, - "byteIndex": 4779 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 120, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "outputType", - "jsDoc": { - "doc": "Output message type name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 185, - "col": 2, - "byteIndex": 4843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] }, - { - "name": "idempotent", - "jsDoc": { - "doc": "Whether the method is idempotent" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 187, - "col": 2, - "byteIndex": 4916 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 315, + "name": "ConnectRpcResponseError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC response with gRPC error (statusCode !== 0).\n\nThe server processed the request but returned an error status." + } + ] + }, + "children": [ + { + "id": 325, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No data for error responses." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.data", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 327, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 340, + "name": "ConnectRpcResponseBase.duration", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 319, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- ConnectRpcError for gRPC errors\n- ConnectRpcNetworkError/AbortError/TimeoutError for failures" + } + ] + }, + "type": { + "type": "reference", + "target": 182, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.error", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 322, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 326, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " + }, + { + "kind": "code", + "text": "`\"connectrpc\"`" + }, + { + "kind": "text", + "text": " for ConnectRPC responses. Use this in switch statements\nfor type-safe narrowing of union types." + } + ] + }, + "type": { + "type": "literal", + "value": "connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": 339, + "name": "ConnectRpcResponseBase.kind", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 318, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": statusCode === 0 (OK)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": gRPC error or request failure" + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.ok", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 317, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or gRPC error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, connection refused)" + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.processed", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 324, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw ConnectError." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@connectrpc/connect", + "packagePath": "dist/esm/connect-error.d.ts", + "qualifiedName": "ConnectError" + }, + "name": "ConnectError", + "package": "@connectrpc/connect" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.raw", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 320, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "gRPC status code (1-16)." + } + ] + }, + "type": { + "type": "reference", + "target": 164, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 321, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Status message describing the error." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 323, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response trailers (sent at end of RPC)." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + } + ], + "typeParameters": [ + { + "id": 316, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "response.ts", + "qualifiedName": "ConnectRpcResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 316, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseError.T", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseBase", + "package": "@probitas-test/client-connectrpc" + } + ] + }, + { + "id": 204, + "name": "ConnectRpcResponseErrorParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating an error ConnectRpcResponse." + } + ] + }, + "children": [ + { + "id": 209, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 205, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "@connectrpc/connect", + "packagePath": "dist/esm/connect-error.d.ts", + "qualifiedName": "ConnectError" + }, + "name": "ConnectError", + "package": "@connectrpc/connect" + } + }, + { + "id": 207, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 206, + "name": "rpcError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 182, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 208, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + } + ] }, { - "name": "ServiceDetail", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 193, - "col": 0, - "byteIndex": 4990 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Detailed service information." + "id": 328, + "name": "ConnectRpcResponseFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Failed ConnectRPC request (network error, connection refused, etc.).\n\nThe request did not reach gRPC processing." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "name", - "jsDoc": { - "doc": "Service name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 195, - "col": 2, - "byteIndex": 5047 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "children": [ + { + "id": 338, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "fullName", - "jsDoc": { - "doc": "Fully qualified service name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 197, - "col": 2, - "byteIndex": 5110 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "No data (request didn't reach server)." + } + ] }, - { - "name": "packageName", - "jsDoc": { - "doc": "Package name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 199, - "col": 2, - "byteIndex": 5161 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "protoFile", - "jsDoc": { - "doc": "Proto file name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 201, - "col": 2, - "byteIndex": 5218 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.data", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 340, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "methods", - "jsDoc": { - "doc": "All methods" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 203, - "col": 2, - "byteIndex": 5269 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "MethodInfo", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MethodInfo" - } - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.duration" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcStatus", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 13, - "col": 13, - "byteIndex": 317 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC/gRPC status codes.\nThese codes are used by both gRPC and ConnectRPC protocols." - }, - "kind": "variable", - "variableDef": { - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "OK", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 14, - "col": 2, - "byteIndex": 340 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + }, + { + "id": 332, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "CANCELLED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 15, - "col": 2, - "byteIndex": 349 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- ConnectRpcError for gRPC errors\n- ConnectRpcNetworkError/AbortError/TimeoutError for failures" + } + ] + }, + "type": { + "type": "reference", + "target": 195, + "name": "ConnectRpcFailureError", + "package": "@probitas-test/client-connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.error", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 335, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "UNKNOWN", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 16, - "col": 2, - "byteIndex": 365 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "kind": "text", + "text": "Response headers (null for failures)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 339, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "name": "INVALID_ARGUMENT", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 17, - "col": 2, - "byteIndex": 379 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " }, { - "name": "DEADLINE_EXCEEDED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 18, - "col": 2, - "byteIndex": 402 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`\"connectrpc\"`" }, { - "name": "NOT_FOUND", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 19, - "col": 2, - "byteIndex": 426 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "kind": "text", + "text": " for ConnectRPC responses. Use this in switch statements\nfor type-safe narrowing of union types." + } + ] + }, + "type": { + "type": "literal", + "value": "connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.kind" + } + }, + { + "id": 331, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "ALREADY_EXISTS", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 20, - "col": 2, - "byteIndex": 442 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Whether the request was successful.\n\n- " }, { - "name": "PERMISSION_DENIED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 21, - "col": 2, - "byteIndex": 463 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`true`" }, { - "name": "RESOURCE_EXHAUSTED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 22, - "col": 2, - "byteIndex": 487 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": ": statusCode === 0 (OK)\n- " }, { - "name": "FAILED_PRECONDITION", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 23, - "col": 2, - "byteIndex": 512 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`false`" }, { - "name": "ABORTED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 24, - "col": 2, - "byteIndex": 538 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "kind": "text", + "text": ": gRPC error or request failure" + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.ok", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 330, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "OUT_OF_RANGE", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 25, - "col": 2, - "byteIndex": 553 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " }, { - "name": "UNIMPLEMENTED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 26, - "col": 2, - "byteIndex": 573 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`true`" }, { - "name": "INTERNAL", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 27, - "col": 2, - "byteIndex": 594 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": ": Server responded (success or gRPC error)\n- " }, { - "name": "UNAVAILABLE", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 28, - "col": 2, - "byteIndex": 610 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`false`" }, { - "name": "DATA_LOSS", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 29, - "col": 2, - "byteIndex": 629 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "kind": "text", + "text": ": Request failed before processing (network error, connection refused)" + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.processed", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 337, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "UNAUTHENTICATED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 30, - "col": 2, - "byteIndex": 646 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "No raw response (request didn't reach server)." } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.raw", + "package": "@probitas-test/client-connectrpc" } }, - "kind": "const" - } - }, - { - "name": "ConnectRpcStatusCode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 37, - "col": 0, - "byteIndex": 766 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC/gRPC status code type.\nDerived from ConnectRpcStatus values." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "indexedAccess", - "indexedAccess": { - "readonly": false, - "objType": { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "ConnectRpcStatus", - "kind": "typeQuery", - "typeQuery": "ConnectRpcStatus" + { + "id": 333, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Status code (null for network failures)." } - }, - "indexType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "keyof", - "tsType": { - "repr": "ConnectRpcStatus", - "kind": "typeQuery", - "typeQuery": "ConnectRpcStatus" - } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 334, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Status message (null for network failures)." } - } + ] + }, + "type": { + "type": "literal", + "value": null } }, - "typeParams": [] - } + { + "id": 336, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response trailers (null for failures)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "typeParameters": [ + { + "id": 329, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "response.ts", + "qualifiedName": "ConnectRpcResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 329, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseFailure.T", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseBase", + "package": "@probitas-test/client-connectrpc" + } + ] }, { - "name": "getStatusName", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 58, - "col": 0, - "byteIndex": 1349 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Get the name of a ConnectRPC/gRPC status code.\n", - "tags": [ - { - "kind": "example", - "doc": "```typescript\ngetStatusName(0); // \"OK\"\ngetStatusName(5); // \"NOT_FOUND\"\ngetStatusName(16); // \"UNAUTHENTICATED\"\n```" + "id": 210, + "name": "ConnectRpcResponseFailureParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating a failure ConnectRpcResponse." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "code", - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - } + "children": [ + { + "id": 212, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "returnType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + { + "id": 211, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 195, + "name": "ConnectRpcFailureError", + "package": "@probitas-test/client-connectrpc" + } + } + ] }, { - "name": "isConnectRpcStatusCode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 72, - "col": 0, - "byteIndex": 1677 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if a number is a valid ConnectRPC/gRPC status code.\n", - "tags": [ - { - "kind": "example", - "doc": "```typescript\nisConnectRpcStatusCode(0); // true\nisConnectRpcStatusCode(16); // true\nisConnectRpcStatusCode(99); // false\n```" + "id": 341, + "name": "ConnectRpcResponseSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful ConnectRPC response (statusCode === 0)." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "code", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "returnType": { - "repr": "code is ConnectRpcStatusCode", - "kind": "typePredicate", - "typePredicate": { - "asserts": false, - "param": { - "type": "identifier", - "name": "code" - }, - "type": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + "children": [ + { + "id": 351, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response data as plain JavaScript object (JSON representation)." } - } - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "ConnectRpcNetworkError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 22, - "col": 0, - "byteIndex": 599 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a network-level failure occurs.\n\nThis error indicates that the request could not be processed by the server\ndue to network issues (connection refused, DNS resolution failure, timeout, etc.).\nUnlike ConnectRpcError, this error means the server was never reached." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 342, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseSuccess.T", + "refersToTypeParameter": true }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 26, - "col": 2, - "byteIndex": 771 - } + ] + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.data", + "package": "@probitas-test/client-connectrpc" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 23, - "col": 2, - "byteIndex": 659 - } + }, + { + "id": 353, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 24, - "col": 2, - "byteIndex": 720 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "ErrorDetail", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 37, - "col": 0, - "byteIndex": 1091 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Rich error detail from google.rpc.Status.\n\nConnectRPC errors can include structured details encoded in error responses.\nThese details follow the google.protobuf.Any format with a type URL and value." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "typeUrl", - "jsDoc": { - "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.7.1/errors.ts", - "line": 46, - "col": 2, - "byteIndex": 1416 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + ] }, - { - "name": "value", - "jsDoc": { - "doc": "Decoded error detail value.\nThe structure depends on the typeUrl." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 52, - "col": 2, - "byteIndex": 1533 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 58, - "col": 0, - "byteIndex": 1614 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for ConnectRpcError construction." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.duration" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "metadata", - "jsDoc": { - "doc": "Headers/metadata from the ConnectRPC response." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 62, - "col": 2, - "byteIndex": 1743 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + }, + { + "id": 345, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- ConnectRpcError for gRPC errors\n- ConnectRpcNetworkError/AbortError/TimeoutError for failures" + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.error", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 348, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "details", - "jsDoc": { - "doc": "Rich error details from google.rpc.Status." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 67, - "col": 2, - "byteIndex": 1842 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ErrorDetail", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorDetail" - } - } - } - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 75, - "col": 0, - "byteIndex": 2020 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error class for ConnectRPC/gRPC errors.\n\nUse `statusCode` to distinguish between different gRPC error codes." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + }, + { + "id": 352, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "statusCode", - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - } + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " }, { - "kind": "identifier", - "name": "statusMessage", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`\"connectrpc\"`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcErrorOptions" - } - } + "kind": "text", + "text": " for ConnectRPC responses. Use this in switch statements\nfor type-safe narrowing of union types." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 83, - "col": 2, - "byteIndex": 2338 - } + ] + }, + "type": { + "type": "literal", + "value": "connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.kind" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 2073 - } + }, + { + "id": 344, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": statusCode === 0 (OK)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": gRPC error or request failure" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 77, - "col": 2, - "byteIndex": 2127 - } + ] }, - { - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.ok", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 343, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or gRPC error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, connection refused)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusCode", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 78, - "col": 2, - "byteIndex": 2177 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusMessage", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 79, - "col": 2, - "byteIndex": 2222 - } + "type": { + "type": "literal", + "value": true }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "metadata", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 80, - "col": 2, - "byteIndex": 2256 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.processed", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 350, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ErrorDetail", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorDetail" - } - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw protobuf Message object." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "details", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 81, - "col": 2, - "byteIndex": 2293 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "fromConnectError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 104, - "col": 0, - "byteIndex": 2943 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Convert ConnectRPC's ConnectError to ConnectRpcError.\n", - "tags": [ - { - "kind": "param", - "name": "error", - "doc": "- The ConnectError from @connectrpc/connect" + ] }, - { - "kind": "param", - "name": "metadata", - "doc": "- Optional metadata from the response" + "type": { + "type": "intrinsic", + "name": "unknown" }, - { - "kind": "return", - "doc": "ConnectRpcError with statusCode for discrimination" + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.raw", + "package": "@probitas-test/client-connectrpc" } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "ConnectError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectError" - } - } + }, + { + "id": 346, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "identifier", - "name": "metadata", - "optional": true, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "comment": { + "summary": [ + { + "kind": "text", + "text": "gRPC status code (always 0 for success)." } - } - } - ], - "returnType": { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" + ] + }, + "type": { + "type": "literal", + "value": 0 } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "ConnectRpcFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 134, - "col": 0, - "byteIndex": 3938 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ConnectRpcNetworkError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcNetworkError" + { + "id": 347, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Status message (null for successful responses)." } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 349, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response trailers (sent at end of RPC)." } - }, + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + } + ], + "typeParameters": [ + { + "id": 342, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "response.ts", + "qualifiedName": "ConnectRpcResponseBase" + }, + "typeArguments": [ { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" - } + "type": "reference", + "target": 342, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseSuccess.T", + "refersToTypeParameter": true } - ] - }, - "typeParams": [] - } + ], + "name": "ConnectRpcResponseBase", + "package": "@probitas-test/client-connectrpc" + } + ] }, { - "name": "ConnectRpcErrorType", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 28, - "col": 0, - "byteIndex": 807 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC error type union.\n\nContains either:\n- ConnectRpcError: gRPC error returned by the server\n- ConnectRpcNetworkError: Network-level failure before reaching the server" + "id": 197, + "name": "ConnectRpcResponseSuccessParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating a successful ConnectRpcResponse." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" + "children": [ + { + "id": 203, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 201, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 199, + "name": "response", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 198, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseSuccessParams.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null } - }, - { - "repr": "ConnectRpcNetworkError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcNetworkError" + ] + } + }, + { + "id": 200, + "name": "schema", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/descriptors.d.ts", + "qualifiedName": "DescMessage" + }, + "name": "DescMessage", + "package": "@bufbuild/protobuf" + }, + { + "type": "literal", + "value": null } - } - ] + ] + } }, - "typeParams": [] - } + { + "id": 202, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + } + ], + "typeParameters": [ + { + "id": 198, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ] }, { - "name": "ConnectRpcResponseSuccessParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 241, - "col": 0, - "byteIndex": 7234 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a successful ConnectRpcResponse." + "id": 176, + "name": "ErrorDetail", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rich error detail from google.rpc.Status.\n\nConnectRPC errors can include structured details encoded in error responses.\nThese details follow the google.protobuf.Any format with a type URL and value." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "response", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 242, - "col": 2, - "byteIndex": 7296 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "schema", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 243, - "col": 2, - "byteIndex": 7327 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "DescMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DescMessage" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "children": [ + { + "id": 177, + "name": "typeUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 244, - "col": 2, - "byteIndex": 7366 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "comment": { + "summary": [ + { + "kind": "text", + "text": "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\"" } - }, - "typeParams": [] + ] }, - { - "name": "trailers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 245, - "col": 2, - "byteIndex": 7395 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 178, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Decoded error detail value.\nThe structure depends on the typeUrl." } - }, - "typeParams": [] + ] }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 246, - "col": 2, - "byteIndex": 7425 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "type": { + "type": "intrinsic", + "name": "unknown" } - ] - } + } + ] }, { - "name": "ConnectRpcResponseErrorParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 252, - "col": 0, - "byteIndex": 7519 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating an error ConnectRpcResponse." + "id": 126, + "name": "MethodInfo", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method information from reflection." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 253, - "col": 2, - "byteIndex": 7570 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectError" + "children": [ + { + "id": 132, + "name": "idempotent", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the method is idempotent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 130, + "name": "inputType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Input message type name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 129, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method kind" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "unary" + }, + { + "type": "literal", + "value": "server_streaming" + }, + { + "type": "literal", + "value": "client_streaming" + }, + { + "type": "literal", + "value": "bidi_streaming" } - }, - "typeParams": [] + ] + } + }, + { + "id": 128, + "name": "localName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "rpcError", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 254, - "col": 2, - "byteIndex": 7602 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Local name (camelCase)" } - }, - "typeParams": [] + ] }, - { - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 255, - "col": 2, - "byteIndex": 7640 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 127, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "trailers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 256, - "col": 2, - "byteIndex": 7669 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name (e.g., \"Echo\")" } - }, - "typeParams": [] + ] }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 257, - "col": 2, - "byteIndex": 7699 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcResponseFailureParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 263, - "col": 0, - "byteIndex": 7794 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a failure ConnectRpcResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 264, - "col": 2, - "byteIndex": 7847 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcFailureError" + }, + { + "id": 131, + "name": "outputType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Output message type name" } - }, - "typeParams": [] + ] }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 265, - "col": 2, - "byteIndex": 7889 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "ConnectRpcResponseSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 272, - "col": 0, - "byteIndex": 7988 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of ConnectRpcResponseSuccess.", - "tags": [ - { - "kind": "internal" + "id": 267, + "name": "ReflectionApi", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Reflection API for ConnectRPC client.\nOnly available when client is created with schema: \"reflection\"." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "ConnectRpcResponseSuccessParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "children": [ + { + "id": 268, + "name": "enabled", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if reflection is enabled." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 271, + "name": "getServiceInfo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 272, + "name": "getServiceInfo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get detailed information about a specific service." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Error if reflection is not enabled" } - ], - "typeName": "ConnectRpcResponseSuccessParams" + ] + } + ] + }, + "parameters": [ + { + "id": 273, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name (e.g., \"echo.EchoService\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 133, + "name": "ServiceDetail", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 286, - "col": 2, - "byteIndex": 8432 } - } - ], - "properties": [ - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" + ] + }, + { + "id": 277, + "name": "hasService", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 278, + "name": "hasService", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if a service exists." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" + } + ] + } + ] + }, + "parameters": [ + { + "id": 279, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 274, - "col": 2, - "byteIndex": 8080 } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 274, + "name": "listMethods", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 275, + "name": "listMethods", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get methods for a specific service." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" + } + ] + } + ] + }, + "parameters": [ + { + "id": 276, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "target": 126, + "name": "MethodInfo", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 275, - "col": 2, - "byteIndex": 8121 } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 269, + "name": "listServices", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 270, + "name": "listServices", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "List all available services on the server." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "target": 123, + "name": "ServiceInfo", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 276, - "col": 2, - "byteIndex": 8159 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 277, - "col": 2, - "byteIndex": 8190 } + ] + } + ] + }, + { + "id": 133, + "name": "ServiceDetail", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Detailed service information." + } + ] + }, + "children": [ + { + "id": 135, + "name": "fullName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusCode", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 278, - "col": 2, - "byteIndex": 8215 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusMessage", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 279, - "col": 2, - "byteIndex": 8251 - } + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 138, + "name": "methods", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "comment": { + "summary": [ + { + "kind": "text", + "text": "All methods" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 280, - "col": 2, - "byteIndex": 8284 - } + ] }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 126, + "name": "MethodInfo", + "package": "@probitas-test/client-connectrpc" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "trailers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 281, - "col": 2, - "byteIndex": 8313 - } - }, - { - "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-connectrpc/0.7.1/response.ts", - "line": 282, - "col": 2, - "byteIndex": 8343 } + } + }, + { + "id": 134, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 283, - "col": 2, - "byteIndex": 8372 - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 284, - "col": 2, - "byteIndex": 8399 - } + "type": { + "type": "intrinsic", + "name": "string" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "ConnectRpcResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseSuccess" - } + }, + { + "id": 136, + "name": "packageName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Package name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeParams": [ - { - "name": "T" + }, + { + "id": 137, + "name": "protoFile", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Proto file name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "superTypeParams": [] - } + } + ] }, { - "name": "ConnectRpcResponseErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 318, - "col": 0, - "byteIndex": 9451 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of ConnectRpcResponseError.", - "tags": [ - { - "kind": "internal" + "id": 123, + "name": "ServiceInfo", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service information from reflection." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "ConnectRpcResponseErrorParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponseErrorParams" - } - } + "children": [ + { + "id": 125, + "name": "file", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Proto file name" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 332, - "col": 2, - "byteIndex": 9907 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [ - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" + }, + { + "id": 124, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name (e.g., \"echo.EchoService\")" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 320, - "col": 2, - "byteIndex": 9539 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 93, + "name": "TlsConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "TLS configuration for ConnectRPC connections." + } + ] + }, + "children": [ + { + "id": 95, + "name": "clientCert", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client certificate (PEM format)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 321, - "col": 2, - "byteIndex": 9580 - } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + } + }, + { + "id": 96, + "name": "clientKey", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client private key (PEM format)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 322, - "col": 2, - "byteIndex": 9618 - } + ] }, - { - "tsType": { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 323, - "col": 2, - "byteIndex": 9650 - } + ], + "name": "Uint8Array", + "package": "typescript" + } + }, + { + "id": 97, + "name": "insecure", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Skip server certificate verification (use only for testing)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusCode", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 324, - "col": 2, - "byteIndex": 9685 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusMessage", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 325, - "col": 2, - "byteIndex": 9730 - } + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 94, + "name": "rootCerts", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Root CA certificate (PEM format)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 326, - "col": 2, - "byteIndex": 9764 - } + ] }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "trailers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 327, - "col": 2, - "byteIndex": 9793 - } - }, + ], + "name": "Uint8Array", + "package": "typescript" + } + } + ] + }, + { + "id": 91, + "name": "ConnectProtocol", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Protocol to use for ConnectRPC transport." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "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-connectrpc/0.7.1/response.ts", - "line": 328, - "col": 2, - "byteIndex": 9823 - } + "type": "literal", + "value": "connect" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 329, - "col": 2, - "byteIndex": 9852 - } + "type": "literal", + "value": "grpc" }, { - "tsType": { - "repr": "ConnectError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 330, - "col": 2, - "byteIndex": 9876 - } + "type": "literal", + "value": "grpc-web" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "ConnectRpcResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseError" - } + ] + } + }, + { + "id": 196, + "name": "ConnectRpcErrorType", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC error type union.\n\nContains either:\n- ConnectRpcError: gRPC error returned by the server\n- ConnectRpcNetworkError: Network-level failure before reaching the server" } - ], - "typeParams": [ + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 182, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" + }, { - "name": "T" + "type": "reference", + "target": 169, + "name": "ConnectRpcNetworkError", + "package": "@probitas-test/client-connectrpc" } - ], - "superTypeParams": [] + ] } }, { - "name": "ConnectRpcResponseFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 347, - "col": 0, - "byteIndex": 10314 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of ConnectRpcResponseFailure.", - "tags": [ - { - "kind": "internal" + "id": 195, + "name": "ConnectRpcFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the server." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "ConnectRpcResponseFailureParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponseFailureParams" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 361, - "col": 2, - "byteIndex": 10755 - } - } - ], - "properties": [ + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 169, + "name": "ConnectRpcNetworkError", + "package": "@probitas-test/client-connectrpc" + }, { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" - } + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 349, - "col": 2, - "byteIndex": 10406 - } + "name": "AbortError", + "package": "@probitas-test/client" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 350, - "col": 2, - "byteIndex": 10447 - } + "name": "TimeoutError", + "package": "@probitas-test/client" + } + ] + } + }, + { + "id": 313, + "name": "ConnectRpcResponse", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC response union type.\n\nUse " }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 351, - "col": 2, - "byteIndex": 10486 - } + "kind": "code", + "text": "`processed`" }, { - "tsType": { - "repr": "ConnectRpcFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 352, - "col": 2, - "byteIndex": 10518 - } + "kind": "text", + "text": " to distinguish between server responses and failures:\n- " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusCode", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 353, - "col": 2, - "byteIndex": 10560 - } + "kind": "code", + "text": "`processed === true`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusMessage", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 354, - "col": 2, - "byteIndex": 10590 - } + "kind": "text", + "text": ": Server responded (Success or Error)\n- " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 355, - "col": 2, - "byteIndex": 10623 - } + "kind": "code", + "text": "`processed === false`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "trailers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 356, - "col": 2, - "byteIndex": 10650 - } + "kind": "text", + "text": ": Request failed (Failure)\n\nUse " }, { - "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-connectrpc/0.7.1/response.ts", - "line": 357, - "col": 2, - "byteIndex": 10678 - } + "kind": "code", + "text": "`ok`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 358, - "col": 2, - "byteIndex": 10707 - } + "kind": "text", + "text": " to check for success:\n- " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 359, - "col": 2, - "byteIndex": 10731 - } + "kind": "code", + "text": "`ok === true`" + }, + { + "kind": "text", + "text": ": Success (statusCode === 0)\n- " + }, + { + "kind": "code", + "text": "`ok === false`" + }, + { + "kind": "text", + "text": ": Error or Failure" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + ] + }, + "typeParameters": [ + { + "id": 314, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 341, + "typeArguments": [ + { + "type": "reference", + "target": 314, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseSuccess", + "package": "@probitas-test/client-connectrpc" + }, { - "repr": "ConnectRpcResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseFailure" + "type": "reference", + "target": 315, + "typeArguments": [ + { + "type": "reference", + "target": 314, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseError", + "package": "@probitas-test/client-connectrpc" + }, + { + "type": "reference", + "target": 328, + "typeArguments": [ + { + "type": "reference", + "target": 314, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseFailure", + "package": "@probitas-test/client-connectrpc" + } + ] + } + }, + { + "id": 164, + "name": "ConnectRpcStatusCode", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC/gRPC status code type.\nDerived from ConnectRpcStatus values." + } + ] + }, + "type": { + "type": "indexedAccess", + "indexType": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "query", + "queryType": { + "type": "reference", + "target": 145, + "name": "ConnectRpcStatus", + "package": "@probitas-test/client-connectrpc" } } - ], - "typeParams": [ - { - "name": "T" + }, + "objectType": { + "type": "query", + "queryType": { + "type": "reference", + "target": 145, + "name": "ConnectRpcStatus", + "package": "@probitas-test/client-connectrpc" } - ], - "superTypeParams": [] + } } }, { - "name": "ReflectionApi", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 78, - "col": 0, - "byteIndex": 2014 + "id": 90, + "name": "FileDescriptorSet", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "FileDescriptorSet message type from @bufbuild/protobuf.\nThis is the decoded protobuf message containing file descriptors." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Reflection API for ConnectRPC client.\nOnly available when client is created with schema: \"reflection\"." + "type": { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/types.d.ts", + "qualifiedName": "MessageShape" + }, + "typeArguments": [ + { + "type": "query", + "queryType": { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/wkt/google/protobuf/descriptor_pb.d.ts", + "qualifiedName": "FileDescriptorSetSchema" + }, + "name": "FileDescriptorSetSchema", + "package": "@bufbuild/protobuf", + "preferValues": true + } + } + ], + "name": "MessageShape", + "package": "@bufbuild/protobuf" + } + }, + { + "id": 92, + "name": "HttpVersion", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP version for transport." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ + "type": { + "type": "union", + "types": [ { - "name": "listServices", - "jsDoc": { - "doc": "List all available services on the server.", - "tags": [ - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 88, - "col": 2, - "byteIndex": 2236 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "array", - "array": { - "repr": "ServiceInfo", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ServiceInfo" - } - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "type": "literal", + "value": "1.1" }, { - "name": "getServiceInfo", - "jsDoc": { - "doc": "Get detailed information about a specific service.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Fully qualified service name (e.g., \"echo.EchoService\")" - }, - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] + "type": "literal", + "value": "2" + } + ] + } + }, + { + "id": 145, + "name": "ConnectRpcStatus", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC/gRPC status codes.\nThese codes are used by both gRPC and ConnectRPC protocols." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 146, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 157, + "name": "ABORTED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 10 + }, + "defaultValue": "10" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 95, - "col": 2, - "byteIndex": 2477 + { + "id": 153, + "name": "ALREADY_EXISTS", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 6 + }, + "defaultValue": "6" }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ServiceDetail", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ServiceDetail" - } - } - ], - "typeName": "Promise" - } + { + "id": 148, + "name": "CANCELLED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 1 + }, + "defaultValue": "1" }, - "typeParams": [] - }, - { - "name": "listMethods", - "jsDoc": { - "doc": "Get methods for a specific service.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Fully qualified service name" - }, - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] + { + "id": 162, + "name": "DATA_LOSS", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 15 + }, + "defaultValue": "15" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 102, - "col": 2, - "byteIndex": 2697 + { + "id": 151, + "name": "DEADLINE_EXCEEDED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 4 + }, + "defaultValue": "4" }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "array", - "array": { - "repr": "MethodInfo", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MethodInfo" - } - } - } - ], - "typeName": "Promise" - } + { + "id": 156, + "name": "FAILED_PRECONDITION", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 9 + }, + "defaultValue": "9" }, - "typeParams": [] - }, - { - "name": "hasService", - "jsDoc": { - "doc": "Check if a service exists.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Fully qualified service name" - }, - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] + { + "id": 160, + "name": "INTERNAL", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 13 + }, + "defaultValue": "13" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 109, - "col": 2, - "byteIndex": 2904 + { + "id": 150, + "name": "INVALID_ARGUMENT", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 3 + }, + "defaultValue": "3" }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - } - ], - "typeName": "Promise" - } + { + "id": 152, + "name": "NOT_FOUND", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 5 + }, + "defaultValue": "5" }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "enabled", - "jsDoc": { - "doc": "Check if reflection is enabled." + { + "id": 147, + "name": "OK", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 0 + }, + "defaultValue": "0" }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 82, - "col": 2, - "byteIndex": 2098 + { + "id": 158, + "name": "OUT_OF_RANGE", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 11 + }, + "defaultValue": "11" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" + { + "id": 154, + "name": "PERMISSION_DENIED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 7 + }, + "defaultValue": "7" }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 141, - "col": 0, - "byteIndex": 4134 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC client interface.\n\n## Field Name Conventions\n\nThis client automatically handles field name conversion between protobuf and JavaScript:\n\n- **Request fields**: Accept both `snake_case` (protobuf style) and `camelCase` (JavaScript style)\n- **Response fields**: Converted to JavaScript conventions based on response type:\n - `response.data`: Plain JSON object with `camelCase` field names (no `$typeName`)\n - `response.raw`: Original protobuf Message object with all metadata (includes `$typeName`)\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nconst client = createConnectRpcClient({ url: \"http://localhost:50051\" });\n\n// Request: Both formats work\nawait client.call(\"echo.Echo\", \"echoWithDelay\", {\n message: \"hello\",\n delayMs: 100, // camelCase (recommended)\n // delay_ms: 100, // snake_case also works\n});\n\n// Response: data is JSON, raw is protobuf Message\nconst response = await client.call(\"echo.Echo\", \"echo\", { message: \"test\" });\nconsole.log(response.data); // { message: \"test\", metadata: {...} }\nconsole.log(response.raw); // { $typeName: \"echo.EchoResponse\", message: \"test\", ... }\n```" - } - ] - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } - } - ], - "constructors": [], - "methods": [ - { - "name": "call", - "jsDoc": { - "doc": "Make a unary RPC call.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Service name (e.g., \"echo.EchoService\")" - }, - { - "kind": "param", - "name": "methodName", - "doc": "- Method name (e.g., \"echo\")" - }, - { - "kind": "param", - "name": "request", - "doc": "- Request message" - }, - { - "kind": "param", - "name": "options", - "doc": "- Call options" - } - ] + { + "id": 155, + "name": "RESOURCE_EXHAUSTED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 8 + }, + "defaultValue": "8" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 155, - "col": 2, - "byteIndex": 4607 + { + "id": 163, + "name": "UNAUTHENTICATED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 16 + }, + "defaultValue": "16" }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + { + "id": 161, + "name": "UNAVAILABLE", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "literal", + "value": 14 }, - { - "kind": "identifier", - "name": "request", - "optional": false, - "tsType": { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" - } - } + "defaultValue": "14" + }, + { + "id": 159, + "name": "UNIMPLEMENTED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, + "type": { + "type": "literal", + "value": 12 + }, + "defaultValue": "12" + }, + { + "id": 149, + "name": "UNKNOWN", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 2 + }, + "defaultValue": "2" + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 264, + "name": "createConnectRpcClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 265, + "name": "createConnectRpcClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" - } - } + "kind": "text", + "text": "Create a new ConnectRPC client instance.\n\nThe client supports multiple protocols (Connect, gRPC, gRPC-Web) and provides\nServer Reflection for runtime service discovery without compile-time code generation." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ + { + "tag": "@returns", + "content": [ { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } + "kind": "text", + "text": "A new ConnectRPC client instance" } - ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "TRequest" - } - ] - }, - { - "name": "serverStream", - "jsDoc": { - "doc": "Make a server streaming RPC call.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Service name" - }, - { - "kind": "param", - "name": "methodName", - "doc": "- Method name" - }, - { - "kind": "param", - "name": "request", - "doc": "- Request message" - }, - { - "kind": "param", - "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 169, - "col": 2, - "byteIndex": 4965 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "tag": "@example", + "name": "Basic usage with reflection", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\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```" + } + ] }, { - "kind": "identifier", - "name": "request", - "optional": false, - "tsType": { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" + "tag": "@example", + "name": "Service discovery with reflection", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\n url: \"http://localhost:50051\",\n});\n\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\nawait client.close();\n```" } - } + ] }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" + "tag": "@example", + "name": "Using different protocols", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\n// Connect protocol (HTTP/1.1 or HTTP/2)\nconst connectClient = createConnectRpcClient({\n url: \"http://localhost:8080\",\n protocol: \"connect\",\n});\n\n// gRPC protocol (HTTP/2 with binary protobuf)\nconst grpcClient = createConnectRpcClient({\n url: \"http://localhost:50051\",\n protocol: \"grpc\",\n});\n\n// gRPC-Web protocol (for browser compatibility)\nconst grpcWebClient = createConnectRpcClient({\n url: \"http://localhost:8080\",\n protocol: \"grpc-web\",\n});\n\nawait connectClient.close();\nawait grpcClient.close();\nawait grpcWebClient.close();\n```" } - } - } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "tag": "@example", + "name": "Using connection config object", + "content": [ { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\n url: {\n host: \"grpc.example.com\",\n port: 443,\n protocol: \"https\",\n },\n});\n\nawait client.close();\n```" } - ], - "typeName": "AsyncIterable" - } - }, - "typeParams": [ + ] + }, { - "name": "TRequest" + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nawait using client = createConnectRpcClient({\n url: \"http://localhost:50051\",\n});\n\nconst res = await client.call(\"echo.EchoService\", \"echo\", { message: \"test\" });\n// Client automatically closed when scope exits\n```" + } + ] } ] }, - { - "name": "clientStream", - "jsDoc": { - "doc": "Make a client streaming RPC call.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Service name" - }, - { - "kind": "param", - "name": "methodName", - "doc": "- Method name" - }, - { - "kind": "param", - "name": "requests", - "doc": "- Async iterable of request messages" - }, - { - "kind": "param", - "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 183, - "col": 2, - "byteIndex": 5357 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "requests", - "optional": false, - "tsType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" - } - } - ], - "typeName": "AsyncIterable" + "parameters": [ + { + "id": 266, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration including server URL and protocol options" } - } + ] }, + "type": { + "type": "reference", + "target": 105, + "name": "ConnectRpcClientConfig", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "type": { + "type": "reference", + "target": 280, + "name": "ConnectRpcClient", + "package": "@probitas-test/client-connectrpc" + } + } + ] + }, + { + "id": 165, + "name": "fromConnectError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 166, + "name": "fromConnectError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" - } - } + "kind": "text", + "text": "Convert ConnectRPC's ConnectError to ConnectRpcError." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ + { + "tag": "@returns", + "content": [ { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } + "kind": "text", + "text": "ConnectRpcError with statusCode for discrimination" } - ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "TRequest" + ] } ] }, - { - "name": "bidiStream", - "jsDoc": { - "doc": "Make a bidirectional streaming RPC call.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Service name" - }, - { - "kind": "param", - "name": "methodName", - "doc": "- Method name" - }, - { - "kind": "param", - "name": "requests", - "doc": "- Async iterable of request messages" + "parameters": [ + { + "id": 167, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The ConnectError from @connectrpc/connect" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@connectrpc/connect", + "packagePath": "dist/esm/connect-error.d.ts", + "qualifiedName": "ConnectError" }, - { - "kind": "param", - "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 197, - "col": 2, - "byteIndex": 5766 + "name": "ConnectError", + "package": "@connectrpc/connect" + } }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + { + "id": 168, + "name": "metadata", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true }, - { - "kind": "identifier", - "name": "requests", - "optional": false, - "tsType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" - } - } - ], - "typeName": "AsyncIterable" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional metadata from the response" } - } + ] }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": 182, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" + } + } + ] + }, + { + "id": 139, + "name": "getStatusName", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 140, + "name": "getStatusName", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" - } - } + "kind": "text", + "text": "Get the name of a ConnectRPC/gRPC status code." } ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } - } - ], - "typeName": "AsyncIterable" - } - }, - "typeParams": [ + "blockTags": [ { - "name": "TRequest" - } - ] - }, - { - "name": "close", - "jsDoc": { - "doc": "Close the client connection." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 207, - "col": 2, - "byteIndex": 5998 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "tag": "@example", + "content": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "kind": "code", + "text": "```typescript\ngetStatusName(0); // \"OK\"\ngetStatusName(5); // \"NOT_FOUND\"\ngetStatusName(16); // \"UNAUTHENTICATED\"\n```" } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "Client configuration" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 143, - "col": 2, - "byteIndex": 4226 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClientConfig" + ] } - }, - "typeParams": [] + ] }, - { - "name": "reflection", - "jsDoc": { - "doc": "Reflection API (only available when schema: \"reflection\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 146, - "col": 2, - "byteIndex": 4337 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ReflectionApi", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ReflectionApi" + "parameters": [ + { + "id": 141, + "name": "code", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 164, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" } - }, - "typeParams": [] + } + ], + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "createConnectRpcClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 404, - "col": 0, - "byteIndex": 11349 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new ConnectRPC client instance.\n\nThe client supports multiple protocols (Connect, gRPC, gRPC-Web) and provides\nServer Reflection for runtime service discovery without compile-time code generation.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- Client configuration including server URL and protocol options" - }, - { - "kind": "return", - "doc": "A new ConnectRPC client instance\n" - }, - { - "kind": "example", - "doc": "Basic usage with reflection\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\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" - }, - { - "kind": "example", - "doc": "Service discovery with reflection\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\n url: \"http://localhost:50051\",\n});\n\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\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using different protocols\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\n// Connect protocol (HTTP/1.1 or HTTP/2)\nconst connectClient = createConnectRpcClient({\n url: \"http://localhost:8080\",\n protocol: \"connect\",\n});\n\n// gRPC protocol (HTTP/2 with binary protobuf)\nconst grpcClient = createConnectRpcClient({\n url: \"http://localhost:50051\",\n protocol: \"grpc\",\n});\n\n// gRPC-Web protocol (for browser compatibility)\nconst grpcWebClient = createConnectRpcClient({\n url: \"http://localhost:8080\",\n protocol: \"grpc-web\",\n});\n\nawait connectClient.close();\nawait grpcClient.close();\nawait grpcWebClient.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using connection config object\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\n url: {\n host: \"grpc.example.com\",\n port: 443,\n protocol: \"https\",\n },\n});\n\nawait client.close();\n```\n" + "id": 142, + "name": "isConnectRpcStatusCode", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 143, + "name": "isConnectRpcStatusCode", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if a number is a valid ConnectRPC/gRPC status code." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```typescript\nisConnectRpcStatusCode(0); // true\nisConnectRpcStatusCode(16); // true\nisConnectRpcStatusCode(99); // false\n```" + } + ] + } + ] }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nawait using client = createConnectRpcClient({\n url: \"http://localhost:50051\",\n});\n\nconst res = await client.call(\"echo.EchoService\", \"echo\", { message: \"test\" });\n// Client automatically closed when scope exits\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "ConnectRpcClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClientConfig" + "parameters": [ + { + "id": 144, + "name": "code", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "predicate", + "name": "code", + "asserts": false, + "targetType": { + "type": "reference", + "target": 164, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } } - ], - "returnType": { - "repr": "ConnectRpcClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClient" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-connectrpc", + "packageVersion": "0.7.2" } diff --git a/data/api/client-graphql.json b/data/api/client-graphql.json index 5f1375d..4ec5046 100644 --- a/data/api/client-graphql.json +++ b/data/api/client-graphql.json @@ -1,3906 +1,3837 @@ { - "name": "client-graphql", - "specifier": "@probitas/client-graphql", - "version": "0.7.0", - "moduleDoc": "GraphQL client for [Probitas](https://github.com/probitas-test/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-test/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\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n", - "exports": [ - { - "name": "GraphqlErrorItem", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 17, - "col": 0, - "byteIndex": 375 + "schemaVersion": "2.0", + "id": 354, + "name": "@probitas-test/client-graphql", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "GraphQL client for [Probitas](https://github.com/probitas-test/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 " }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL error item as per GraphQL specification.", - "tags": [ - { - "kind": "see", - "doc": "https://spec.graphql.org/October2021/#sec-Errors.Error-Result-Format" + { + "kind": "code", + "text": "`AsyncDisposable`" + }, + { + "kind": "text", + "text": " for proper cleanup\n- **Template Literals**: Re-exports " + }, + { + "kind": "code", + "text": "`outdent`" + }, + { + "kind": "text", + "text": " for clean multi-line queries\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-graphql\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createGraphqlClient, outdent } from \"@probitas-test/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```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\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```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client) | Core utilities and types |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-http`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-http) | HTTP client |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)" + } + ] + }, + "children": [ + { + "id": 418, + "name": "GraphqlExecutionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown for GraphQL execution errors.\n\nThis error is returned when the GraphQL server processes the request\nbut returns errors in the response (validation errors, resolver errors, etc.)." } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "message", - "jsDoc": { - "doc": "Error message" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 19, - "col": 2, - "byteIndex": 436 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "locations", - "jsDoc": { - "doc": "Location(s) in the GraphQL document where the error occurred" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 22, - "col": 2, - "byteIndex": 535 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "children": [ + { + "id": 419, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 420, + "name": "GraphqlExecutionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "repr": "", - "kind": "typeOperator", - "typeOperator": { + "id": 421, + "name": "errors", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "line", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 22, - "col": 33, - "byteIndex": 566 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "column", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 22, - "col": 47, - "byteIndex": 580 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 355, + "name": "GraphqlErrorItem", + "package": "@probitas-test/client-graphql" } } } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 422, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } } - ] - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 418, + "name": "GraphqlExecutionError", + "package": "@probitas-test/client-graphql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 425, + "name": "errors", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "GraphQL errors from response" + } + ] }, - { - "name": "path", - "jsDoc": { - "doc": "Path to the field that caused the error" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 25, - "col": 2, - "byteIndex": 659 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 355, + "name": "GraphqlErrorItem", + "package": "@probitas-test/client-graphql" + } + } + } + }, + { + "id": 424, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "graphql" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 423, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "GraphqlExecutionError" + }, + "defaultValue": "\"GraphqlExecutionError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 426, + "name": "GraphqlNetworkError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown for network-level failures.\n\nThis error indicates that the request could not reach or be processed\nby the GraphQL server (connection refused, HTTP errors, etc.)." + } + ] + }, + "children": [ + { + "id": 427, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 428, + "name": "GraphqlNetworkError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - ] - } - } - } + "id": 429, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 430, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } } - ] - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 426, + "name": "GraphqlNetworkError", + "package": "@probitas-test/client-graphql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 432, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "network" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 431, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "GraphqlNetworkError" + }, + "defaultValue": "\"GraphqlNetworkError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 386, + "name": "GraphqlClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "GraphQL client interface." + } + ] + }, + "children": [ + { + "id": 387, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration" + } + ] }, - { - "name": "extensions", - "jsDoc": { - "doc": "Additional error metadata" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 28, - "col": 2, - "byteIndex": 749 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "type": { + "type": "reference", + "target": 377, + "name": "GraphqlClientConfig", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 416, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 417, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the client and release resources" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 402, + "name": "execute", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 403, + "name": "execute", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a GraphQL document (query or mutation)" + } + ] + }, + "typeParameters": [ { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 404, + "name": "TData", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 405, + "name": "TVariables", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 406, + "name": "document", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 407, + "name": "variables", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 405, + "name": "TVariables", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 408, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 363, + "name": "GraphqlOptions", + "package": "@probitas-test/client-graphql" + } } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GraphqlResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 166, - "col": 0, - "byteIndex": 4669 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL response union type.\n\nUse `processed` to distinguish between server responses and failures:\n- `processed === true`: Server responded (Success or Error)\n- `processed === false`: Request failed (Failure)\n\nUse `ok` to check for success:\n- `ok === true`: Success (no errors)\n- `ok === false`: Error or Failure" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "GraphqlResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 509, + "typeArguments": [ + { + "type": "reference", + "target": 404, + "name": "TData", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" } ], - "typeName": "GraphqlResponseSuccess" + "name": "Promise", + "package": "typescript" } - }, + } + ] + }, + { + "id": 395, + "name": "mutation", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "GraphqlResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 396, + "name": "mutation", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Execute a GraphQL mutation" } - ], - "typeName": "GraphqlResponseError" - } - }, - { - "repr": "GraphqlResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "typeParameters": [ + { + "id": 397, + "name": "TData", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 398, + "name": "TVariables", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 399, + "name": "mutation", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 400, + "name": "variables", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 398, + "name": "TVariables", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + }, + { + "id": 401, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 363, + "name": "GraphqlOptions", + "package": "@probitas-test/client-graphql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 509, + "typeArguments": [ + { + "type": "reference", + "target": 397, + "name": "TData", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" } ], - "typeName": "GraphqlResponseFailure" + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "GraphqlResponseError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 105, - "col": 0, - "byteIndex": 2838 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL response with execution errors.\n\nNote: GraphQL allows partial success where both data and errors are present.\nUse data() to access any partial data." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "GraphqlResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + { + "id": 388, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 389, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a GraphQL query" + } + ] + }, + "typeParameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 390, + "name": "TData", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - } - ], - "typeName": "GraphqlResponseBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 106, - "col": 2, - "byteIndex": 2920 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 107, - "col": 2, - "byteIndex": 2948 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 108, - "col": 2, - "byteIndex": 2970 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "GraphqlExecutionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlExecutionError" - } - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 111, - "col": 2, - "byteIndex": 3039 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "HTTP response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 114, - "col": 2, - "byteIndex": 3099 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] - }, - { - "name": "extensions", - "jsDoc": { - "doc": "Response extensions." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 117, - "col": 2, - "byteIndex": 3159 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + }, { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 391, + "name": "TVariables", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] - }, - "typeParams": [] - }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw Web standard Response." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 120, - "col": 2, - "byteIndex": 3251 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - }, - "typeParams": [] - }, - { - "name": "data", - "jsDoc": { - "doc": "Response data (null if no data, may be partial data with errors)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 123, - "col": 2, - "byteIndex": 3364 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 392, + "name": "query", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "GraphqlResponseFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 132, - "col": 0, - "byteIndex": 3630 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Failed GraphQL request (network error, HTTP error, etc.).\n\nThe request did not reach GraphQL processing." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "GraphqlResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 393, + "name": "variables", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 391, + "name": "TVariables", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 394, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 363, + "name": "GraphqlOptions", + "package": "@probitas-test/client-graphql" } } ], - "typeName": "GraphqlResponseBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 134, - "col": 2, - "byteIndex": 3716 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 135, - "col": 2, - "byteIndex": 3745 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 136, - "col": 2, - "byteIndex": 3767 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "GraphqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlFailureError" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 509, + "typeArguments": [ + { + "type": "reference", + "target": 390, + "name": "TData", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "extensions", - "jsDoc": { - "doc": "Response extensions (always null for failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 139, - "col": 2, - "byteIndex": 3864 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code (null for network failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 142, - "col": 2, - "byteIndex": 3949 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "HTTP response headers (null for failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 145, - "col": 2, - "byteIndex": 4027 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "raw", - "jsDoc": { - "doc": "No raw response (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 148, - "col": 2, - "byteIndex": 4110 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "data", - "jsDoc": { - "doc": "No data (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 151, - "col": 2, - "byteIndex": 4181 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - } - ] - } - }, - { - "name": "GraphqlResponseSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 76, - "col": 0, - "byteIndex": 2038 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful GraphQL response (no errors)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "GraphqlResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 409, + "name": "subscribe", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 410, + "name": "subscribe", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Subscribe to a GraphQL subscription via WebSocket" + } + ] + }, + "typeParameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 411, + "name": "TData", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - } - ], - "typeName": "GraphqlResponseBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 78, - "col": 2, - "byteIndex": 2124 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 79, - "col": 2, - "byteIndex": 2152 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 80, - "col": 2, - "byteIndex": 2173 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 83, - "col": 2, - "byteIndex": 2225 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "HTTP response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 86, - "col": 2, - "byteIndex": 2285 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] - }, - { - "name": "extensions", - "jsDoc": { - "doc": "Response extensions." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 89, - "col": 2, - "byteIndex": 2345 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + }, { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 412, + "name": "TVariables", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] - }, - "typeParams": [] - }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw Web standard Response." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 92, - "col": 2, - "byteIndex": 2437 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - }, - "typeParams": [] - }, - { - "name": "data", - "jsDoc": { - "doc": "Response data (null if no data)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 95, - "col": 2, - "byteIndex": 2517 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 413, + "name": "document", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "GraphqlOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 41, - "col": 0, - "byteIndex": 970 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual GraphQL requests." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "headers", - "jsDoc": { - "doc": "Additional request headers" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 43, - "col": 2, - "byteIndex": 1064 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" - } - }, - "typeParams": [] - }, - { - "name": "operationName", - "jsDoc": { - "doc": "Operation name (for documents with multiple operations)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 46, - "col": 2, - "byteIndex": 1164 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw GraphqlError when response contains errors or request fails.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 52, - "col": 2, - "byteIndex": 1363 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GraphqlConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 60, - "col": 0, - "byteIndex": 1512 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL connection configuration.\n\nExtends CommonConnectionConfig with GraphQL-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "protocol", - "jsDoc": { - "doc": "Protocol to use.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"http\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 65, - "col": 2, - "byteIndex": 1643 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" + "id": 414, + "name": "variables", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 412, + "name": "TVariables", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true } }, { - "repr": "https", - "kind": "literal", - "literal": { - "kind": "string", - "string": "https" + "id": 415, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 363, + "name": "GraphqlOptions", + "package": "@probitas-test/client-graphql" } } - ] - }, - "typeParams": [] - }, - { - "name": "path", - "jsDoc": { - "doc": "GraphQL endpoint path.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"/graphql\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 71, - "col": 2, - "byteIndex": 1749 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 509, + "typeArguments": [ + { + "type": "reference", + "target": 411, + "name": "TData", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" + } + ], + "name": "AsyncIterable", + "package": "typescript" + } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { + "id": 377, "name": "GraphqlClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 77, - "col": 0, - "byteIndex": 1817 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL client configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "GraphQL client configuration." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "GraphQL endpoint URL.\n\nCan be a URL string or a connection configuration object.\n", - "tags": [ - { - "kind": "example", - "doc": "String URL\n```ts\nimport type { GraphqlClientConfig } from \"@probitas-test/client-graphql\";\nconst config: GraphqlClientConfig = { url: \"http://localhost:4000/graphql\" };\n```\n" - }, - { - "kind": "example", - "doc": "Connection config object\n```ts\nimport type { GraphqlClientConfig } from \"@probitas-test/client-graphql\";\nconst config: GraphqlClientConfig = {\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n};\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 97, - "col": 2, - "byteIndex": 2464 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "GraphqlConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlConnectionConfig" - } - } - ] - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 381, + "name": "fetch", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Custom fetch implementation (for testing/mocking)" + } + ] }, - { - "name": "headers", - "jsDoc": { - "doc": "Default headers for all requests" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 100, - "col": 2, - "byteIndex": 2557 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "Fetch" }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" + "name": "Fetch", + "package": "@probitas-test/client" + } + }, + { + "id": 379, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default headers for all requests" } - }, - "typeParams": [] + ] }, - { - "name": "wsEndpoint", - "jsDoc": { - "doc": "WebSocket endpoint URL (for subscriptions)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 103, - "col": 2, - "byteIndex": 2644 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" }, - "typeParams": [] + "name": "HeadersInit", + "package": "typescript" + } + }, + { + "id": 385, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] }, - { - "name": "fetch", - "jsDoc": { - "doc": "Custom fetch implementation (for testing/mocking)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 106, - "col": 2, - "byteIndex": 2736 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Fetch", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Fetch" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 384, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "typeParams": [] + ] }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw GraphqlError when response contains errors or request fails.\nCan be overridden per-request via GraphqlOptions.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 113, - "col": 2, - "byteIndex": 2933 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GraphqlClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 119, - "col": 0, - "byteIndex": 3006 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL client interface." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a GraphQL query" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 125, - "col": 2, - "byteIndex": 3288 - }, - "params": [ - { - "kind": "identifier", - "name": "query", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "variables", - "optional": true, - "tsType": { - "repr": "TVariables", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TVariables" - } - } - }, + }, + { + "id": 382, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "GraphqlOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlOptions" - } - } + "kind": "text", + "text": "Whether to throw GraphqlError when response contains errors or request fails.\nCan be overridden per-request via GraphqlOptions." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "TData", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TData" - } - } - ], - "typeName": "GraphqlResponse" - } + "kind": "code", + "text": "```ts\nfalse\n```" } - ], - "typeName": "Promise" + ] } - }, - "typeParams": [ + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 383, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "name": "TData", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + }, + { + "id": 378, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "GraphQL endpoint URL.\n\nCan be a URL string or a connection configuration object." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "String URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { GraphqlClientConfig } from \"@probitas-test/client-graphql\";\nconst config: GraphqlClientConfig = { url: \"http://localhost:4000/graphql\" };\n```" + } + ] }, { - "name": "TVariables", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" + "tag": "@example", + "name": "Connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { GraphqlClientConfig } from \"@probitas-test/client-graphql\";\nconst config: GraphqlClientConfig = {\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n};\n```" } - } + ] } ] }, - { - "name": "mutation", - "jsDoc": { - "doc": "Execute a GraphQL mutation" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 133, - "col": 2, - "byteIndex": 3615 - }, - "params": [ - { - "kind": "identifier", - "name": "mutation", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "variables", - "optional": true, - "tsType": { - "repr": "TVariables", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TVariables" - } - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "GraphqlOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlOptions" - } - } + "type": "reference", + "target": 370, + "name": "GraphqlConnectionConfig", + "package": "@probitas-test/client-graphql" + } + ] + } + }, + { + "id": 380, + "name": "wsEndpoint", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "WebSocket endpoint URL (for subscriptions)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 370, + "name": "GraphqlConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "GraphQL connection configuration.\n\nExtends CommonConnectionConfig with GraphQL-specific options." + } + ] + }, + "children": [ + { + "id": 373, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Hostname or IP address." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "TData", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TData" - } - } - ], - "typeName": "GraphqlResponse" - } + "kind": "code", + "text": "```ts\n\"localhost\"\n```" } - ], - "typeName": "Promise" + ] } - }, - "typeParams": [ + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" + } + }, + { + "id": 376, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "name": "TData", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - }, + "kind": "text", + "text": "Password for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 372, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "TVariables", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" + "kind": "text", + "text": "GraphQL endpoint path." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"/graphql\"\n```" } - } + ] } ] }, - { - "name": "execute", - "jsDoc": { - "doc": "Execute a GraphQL document (query or mutation)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 141, - "col": 2, - "byteIndex": 3968 - }, - "params": [ - { - "kind": "identifier", - "name": "document", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 374, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "variables", - "optional": true, - "tsType": { - "repr": "TVariables", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TVariables" - } - } - }, + "kind": "text", + "text": "Port number. Each service has its own default." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 371, + "name": "protocol", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "GraphqlOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlOptions" - } - } + "kind": "text", + "text": "Protocol to use." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "TData", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TData" - } - } - ], - "typeName": "GraphqlResponse" - } + "kind": "code", + "text": "```ts\n\"http\"\n```" } - ], - "typeName": "Promise" + ] } - }, - "typeParams": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "TData", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "type": "literal", + "value": "http" }, { - "name": "TVariables", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "type": "literal", + "value": "https" } ] + } + }, + { + "id": 375, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 355, + "name": "GraphqlErrorItem", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "GraphQL error item as per GraphQL specification." + } + ], + "blockTags": [ { - "name": "subscribe", - "jsDoc": { - "doc": "Subscribe to a GraphQL subscription via WebSocket" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 149, - "col": 2, - "byteIndex": 4323 - }, - "params": [ - { - "kind": "identifier", - "name": "document", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "tag": "@see", + "content": [ { - "kind": "identifier", - "name": "variables", - "optional": true, - "tsType": { - "repr": "TVariables", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TVariables" + "kind": "text", + "text": "https://spec.graphql.org/October2021/#sec-Errors.Error-Result-Format" + } + ] + } + ] + }, + "children": [ + { + "id": 362, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional error metadata" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } - } + ], + "name": "Record", + "package": "typescript" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "GraphqlOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlOptions" - } - } + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + } + }, + { + "id": 357, + "name": "locations", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Location(s) in the GraphQL document where the error occurred" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 358, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 360, + "name": "column", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "repr": "TData", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TData" + "id": 359, + "name": "line", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } } - ], - "typeName": "GraphqlResponse" + ] } } - ], - "typeName": "AsyncIterable" - } - }, - "typeParams": [ - { - "name": "TData", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } }, { - "name": "TVariables", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "type": "literal", + "value": null } ] - }, - { - "name": "close", - "jsDoc": { - "doc": "Close the client and release resources" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 156, - "col": 2, - "byteIndex": 4556 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "Client configuration" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 121, - "col": 2, - "byteIndex": 3095 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "GraphqlClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlClientConfig" + }, + { + "id": 356, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error message" } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GraphqlExecutionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 15, - "col": 0, - "byteIndex": 403 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown for GraphQL execution errors.\n\nThis error is returned when the GraphQL server processes the request\nbut returns errors in the response (validation errors, resolver errors, etc.)." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "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" - } + }, + { + "id": 361, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Path to the field that caused the error" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" } - } + ] } } }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 22, - "col": 2, - "byteIndex": 649 - } + ] } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 363, + "name": "GraphqlOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for individual GraphQL requests." + } + ] + }, + "children": [ + { + "id": 364, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional request headers" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 16, - "col": 2, - "byteIndex": 462 - } + "name": "HeadersInit", + "package": "typescript" + } + }, + { + "id": 365, + "name": "operationName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation name (for documents with multiple operations)" + } + ] }, - { - "tsType": { - "repr": "graphql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "graphql" + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 369, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 17, - "col": 2, - "byteIndex": 514 - } + ] }, - { - "jsDoc": { - "doc": "GraphQL errors from response" + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "GraphqlErrorItem", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlErrorItem" - } - } - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 368, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "errors", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 20, - "col": 2, - "byteIndex": 600 - } + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "GraphqlNetworkError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 38, - "col": 0, - "byteIndex": 1053 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown for network-level failures.\n\nThis error indicates that the request could not reach or be processed\nby the GraphQL server (connection refused, HTTP errors, etc.)." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + }, + { + "id": 366, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } + "kind": "text", + "text": "Whether to throw GraphqlError when response contains errors or request fails." } ], - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 42, - "col": 2, - "byteIndex": 1208 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 39, - "col": 2, - "byteIndex": 1110 - } + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" + } + ] + } + ] }, - { - "tsType": { - "repr": "network", - "kind": "literal", - "literal": { - "kind": "string", - "string": "network" + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 367, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 40, - "col": 2, - "byteIndex": 1160 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "GraphqlFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 66, - "col": 0, - "byteIndex": 1807 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the GraphQL server." + "id": 511, + "name": "GraphqlResponseError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "GraphQL response with execution errors.\n\nNote: GraphQL allows partial success where both data and errors are present.\nUse data() to access any partial data." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "GraphqlNetworkError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlNetworkError" + "children": [ + { + "id": 520, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response data (null if no data, may be partial data with errors)." } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 512, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseError.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + ] + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.data", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 522, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 535, + "name": "GraphqlResponseBase.duration", + "package": "@probitas-test/client-graphql" + } }, - "typeParams": [] - } - }, - { - "name": "GraphqlResponseSuccessParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 174, - "col": 0, - "byteIndex": 4863 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a successful GraphqlResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 175, - "col": 2, - "byteIndex": 4916 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + { + "id": 515, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- GraphqlExecutionError for GraphQL errors\n- GraphqlNetworkError/AbortError/TimeoutError for failures" + } + ] }, - { - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 176, - "col": 2, - "byteIndex": 4940 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 418, + "name": "GraphqlExecutionError", + "package": "@probitas-test/client-graphql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.error", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 518, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response extensions." + } + ] }, - { - "name": "extensions", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 177, - "col": 2, - "byteIndex": 4967 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 178, - "col": 2, - "byteIndex": 5022 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] }, - { - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 179, - "col": 2, - "byteIndex": 5051 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.extensions", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 517, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response headers." + } + ] }, - { - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 180, - "col": 2, - "byteIndex": 5078 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 521, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " + }, + { + "kind": "code", + "text": "`\"graphql\"`" + }, + { + "kind": "text", + "text": " for GraphQL responses. Use this in switch statements\nfor type-safe narrowing of union types." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": "graphql" + }, + "inheritedFrom": { + "type": "reference", + "target": 534, + "name": "GraphqlResponseBase.kind", + "package": "@probitas-test/client-graphql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" + }, + { + "id": 514, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": No errors, data available\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": GraphQL errors or request failure" + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.ok", + "package": "@probitas-test/client-graphql" } - ] - } - }, - { - "name": "GraphqlResponseErrorParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 186, - "col": 0, - "byteIndex": 5177 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating an error GraphqlResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 187, - "col": 2, - "byteIndex": 5228 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 513, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or GraphQL error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, HTTP error)" + } + ] }, - { - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 188, - "col": 2, - "byteIndex": 5252 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 189, - "col": 2, - "byteIndex": 5279 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "GraphqlExecutionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlExecutionError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.processed", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 519, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw Web standard Response." } - }, - "typeParams": [] + ] }, - { - "name": "extensions", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 190, - "col": 2, - "byteIndex": 5320 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.raw", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 516, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code." + } + ] }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 191, - "col": 2, - "byteIndex": 5375 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 523, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." + } + ] }, - { - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 192, - "col": 2, - "byteIndex": 5404 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" }, - { - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 193, - "col": 2, - "byteIndex": 5431 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 536, + "name": "GraphqlResponseBase.url", + "package": "@probitas-test/client-graphql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" + } + ], + "typeParameters": [ + { + "id": 512, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-graphql", + "packagePath": "response.ts", + "qualifiedName": "GraphqlResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 512, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseError.T", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseBase", + "package": "@probitas-test/client-graphql" + } + ] }, { - "name": "GraphqlResponseFailureParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 199, - "col": 0, - "byteIndex": 5531 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a failure GraphqlResponse." + "id": 442, + "name": "GraphqlResponseErrorParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating an error GraphqlResponse." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 200, - "col": 2, - "byteIndex": 5581 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 201, - "col": 2, - "byteIndex": 5605 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "GraphqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlFailureError" + "children": [ + { + "id": 445, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 443, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseErrorParams.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 202, - "col": 2, - "byteIndex": 5644 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ] } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 448, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 446, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 418, + "name": "GraphqlExecutionError", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 447, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 450, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + } + }, + { + "id": 449, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 444, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "typeParameters": [ + { + "id": 443, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ] }, { - "name": "GraphqlResponseSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 209, - "col": 0, - "byteIndex": 5740 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of GraphqlResponseSuccess.", - "tags": [ - { - "kind": "internal" + "id": 524, + "name": "GraphqlResponseFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Failed GraphQL request (network error, HTTP error, etc.).\n\nThe request did not reach GraphQL processing." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "GraphqlResponseSuccessParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "GraphqlResponseSuccessParams" - } - } + "children": [ + { + "id": 533, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No data (request didn't reach server)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 224, - "col": 2, - "byteIndex": 6188 - } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.data", + "package": "@probitas-test/client-graphql" } - ], - "properties": [ - { - "tsType": { - "repr": "graphql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "graphql" + }, + { + "id": 535, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 211, - "col": 2, - "byteIndex": 5826 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.duration" + } + }, + { + "id": 528, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- GraphqlExecutionError for GraphQL errors\n- GraphqlNetworkError/AbortError/TimeoutError for failures" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 212, - "col": 2, - "byteIndex": 5864 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "reference", + "target": 433, + "name": "GraphqlFailureError", + "package": "@probitas-test/client-graphql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.error", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 529, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response extensions (always null for failures)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 213, - "col": 2, - "byteIndex": 5902 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 214, - "col": 2, - "byteIndex": 5933 - } + "type": { + "type": "literal", + "value": null }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "extensions", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 215, - "col": 2, - "byteIndex": 5958 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.extensions", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 531, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response headers (null for failures)." + } + ] }, - { - "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-graphql/0.7.0/response.ts", - "line": 216, - "col": 2, - "byteIndex": 6013 - } + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 534, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " + }, + { + "kind": "code", + "text": "`\"graphql\"`" + }, + { + "kind": "text", + "text": " for GraphQL responses. Use this in switch statements\nfor type-safe narrowing of union types." + } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 217, - "col": 2, - "byteIndex": 6042 - } + "type": { + "type": "literal", + "value": "graphql" }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 218, - "col": 2, - "byteIndex": 6066 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.kind" + } + }, + { + "id": 527, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": No errors, data available\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": GraphQL errors or request failure" + } + ] }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.ok", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 526, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or GraphQL error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, HTTP error)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 219, - "col": 2, - "byteIndex": 6093 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 221, - "col": 2, - "byteIndex": 6123 - } + "type": { + "type": "literal", + "value": false }, - { - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.processed", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 532, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No raw response (request didn't reach server)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 222, - "col": 2, - "byteIndex": 6150 - } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.raw", + "package": "@probitas-test/client-graphql" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "GraphqlResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "GraphqlResponseSuccess" - } + }, + { + "id": 530, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code (null for network failures)." + } + ] + }, + "type": { + "type": "literal", + "value": null } - ], - "typeParams": [ - { - "name": "T" + }, + { + "id": 536, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.url" } - ], - "superTypeParams": [] - } + } + ], + "typeParameters": [ + { + "id": 525, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-graphql", + "packagePath": "response.ts", + "qualifiedName": "GraphqlResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 525, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseFailure.T", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseBase", + "package": "@probitas-test/client-graphql" + } + ] }, { - "name": "GraphqlResponseErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 239, - "col": 0, - "byteIndex": 6547 + "id": 451, + "name": "GraphqlResponseFailureParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating a failure GraphqlResponse." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of GraphqlResponseError.", - "tags": [ - { - "kind": "internal" + "children": [ + { + "id": 454, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 453, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 433, + "name": "GraphqlFailureError", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 452, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 537, + "name": "GraphqlResponseSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful GraphQL response (no errors)." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "GraphqlResponseErrorParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "GraphqlResponseErrorParams" - } - } + "children": [ + { + "id": 546, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response data (null if no data)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 253, - "col": 2, - "byteIndex": 7006 - } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 538, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseSuccess.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.data", + "package": "@probitas-test/client-graphql" } - ], - "properties": [ - { - "tsType": { - "repr": "graphql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "graphql" + }, + { + "id": 548, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 240, - "col": 2, - "byteIndex": 6627 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.duration" + } + }, + { + "id": 541, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- GraphqlExecutionError for GraphQL errors\n- GraphqlNetworkError/AbortError/TimeoutError for failures" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 241, - "col": 2, - "byteIndex": 6665 - } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.error", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 544, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response extensions." + } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 242, - "col": 2, - "byteIndex": 6703 - } + ] }, - { - "tsType": { - "repr": "GraphqlExecutionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlExecutionError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.extensions", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 543, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response headers." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 243, - "col": 2, - "byteIndex": 6735 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "extensions", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 244, - "col": 2, - "byteIndex": 6776 - } + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 547, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " + }, + { + "kind": "code", + "text": "`\"graphql\"`" + }, + { + "kind": "text", + "text": " for GraphQL responses. Use this in switch statements\nfor type-safe narrowing of union types." + } + ] }, - { - "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-graphql/0.7.0/response.ts", - "line": 245, - "col": 2, - "byteIndex": 6831 - } + "type": { + "type": "literal", + "value": "graphql" }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 246, - "col": 2, - "byteIndex": 6860 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.kind" + } + }, + { + "id": 540, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": No errors, data available\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": GraphQL errors or request failure" + } + ] }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 247, - "col": 2, - "byteIndex": 6884 - } + "type": { + "type": "literal", + "value": true }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.ok", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 539, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or GraphQL error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, HTTP error)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 248, - "col": 2, - "byteIndex": 6911 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 250, - "col": 2, - "byteIndex": 6941 - } + "type": { + "type": "literal", + "value": true }, - { - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.processed", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 545, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw Web standard Response." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 251, - "col": 2, - "byteIndex": 6968 - } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.raw", + "package": "@probitas-test/client-graphql" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "GraphqlResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "GraphqlResponseError" - } + }, + { + "id": 542, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "typeParams": [ - { - "name": "T" + }, + { + "id": 549, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.url" } - ], - "superTypeParams": [] - } + } + ], + "typeParameters": [ + { + "id": 538, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-graphql", + "packagePath": "response.ts", + "qualifiedName": "GraphqlResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 538, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseBase", + "package": "@probitas-test/client-graphql" + } + ] }, { - "name": "GraphqlResponseFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 269, - "col": 0, - "byteIndex": 7396 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of GraphqlResponseFailure.", - "tags": [ - { - "kind": "internal" + "id": 434, + "name": "GraphqlResponseSuccessParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating a successful GraphqlResponse." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "GraphqlResponseFailureParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlResponseFailureParams" + "children": [ + { + "id": 437, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 435, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseSuccessParams.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 439, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 438, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } - } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 283, - "col": 2, - "byteIndex": 7814 - } + ] } - ], - "properties": [ + }, + { + "id": 441, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + } + }, + { + "id": 440, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 436, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "typeParameters": [ + { + "id": 435, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ] + }, + { + "id": 433, + "name": "GraphqlFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the GraphQL server." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "graphql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "graphql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 271, - "col": 2, - "byteIndex": 7482 - } + "type": "reference", + "target": 426, + "name": "GraphqlNetworkError", + "package": "@probitas-test/client-graphql" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 272, - "col": 2, - "byteIndex": 7520 - } + "name": "AbortError", + "package": "@probitas-test/client" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 273, - "col": 2, - "byteIndex": 7559 - } - }, + "name": "TimeoutError", + "package": "@probitas-test/client" + } + ] + } + }, + { + "id": 509, + "name": "GraphqlResponse", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "GraphqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 274, - "col": 2, - "byteIndex": 7591 - } + "kind": "text", + "text": "GraphQL response union type.\n\nUse " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "extensions", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 275, - "col": 2, - "byteIndex": 7630 - } + "kind": "code", + "text": "`processed`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 276, - "col": 2, - "byteIndex": 7660 - } + "kind": "text", + "text": " to distinguish between server responses and failures:\n- " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 277, - "col": 2, - "byteIndex": 7686 - } + "kind": "code", + "text": "`processed === true`" }, { - "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-graphql/0.7.0/response.ts", - "line": 278, - "col": 2, - "byteIndex": 7713 - } + "kind": "text", + "text": ": Server responded (Success or Error)\n- " }, { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 279, - "col": 2, - "byteIndex": 7742 - } + "kind": "code", + "text": "`processed === false`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 280, - "col": 2, - "byteIndex": 7766 - } + "kind": "text", + "text": ": Request failed (Failure)\n\nUse " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 281, - "col": 2, - "byteIndex": 7790 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "GraphqlResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "GraphqlResponseFailure" - } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } - }, - { - "name": "createGraphqlClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/client.ts", - "line": 580, - "col": 0, - "byteIndex": 17099 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new GraphQL client instance.\n\nThe client provides methods for executing GraphQL queries, mutations,\nand subscriptions with automatic error handling and response parsing.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- Client configuration including URL and default options" + "kind": "code", + "text": "`ok`" }, { - "kind": "return", - "doc": "A new GraphQL client instance\n" + "kind": "text", + "text": " to check for success:\n- " }, { - "kind": "example", - "doc": "Basic query\n```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({\n url: \"http://localhost:4000/graphql\",\n});\n\nconst response = await client.query(`\n query GetUser($id: ID!) {\n user(id: $id) { id name email }\n }\n`, { id: \"123\" });\n\nconsole.log(response.data);\nawait client.close();\n```\n" + "kind": "code", + "text": "`ok === true`" }, { - "kind": "example", - "doc": "Using connection config object\n```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n});\nawait client.close();\n```\n" + "kind": "text", + "text": ": Success (no errors)\n- " }, { - "kind": "example", - "doc": "Mutation with error handling\n```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({ url: \"http://localhost:4000/graphql\" });\n\nconst response = await client.mutation(`\n mutation CreateUser($input: CreateUserInput!) {\n createUser(input: $input) { id }\n }\n`, { input: { name: \"Alice\", email: \"alice@example.com\" } });\n\nif (response.ok) {\n console.log(\"Created user:\", (response.data as any).createUser.id);\n}\n\nawait client.close();\n```\n" + "kind": "code", + "text": "`ok === false`" }, { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nawait using client = createGraphqlClient({\n url: \"http://localhost:4000/graphql\",\n});\nconst response = await client.query(`{ __typename }`);\n// Client automatically closed when scope exits\n```" + "kind": "text", + "text": ": Error or Failure" } ] }, - "kind": "function", - "functionDef": { - "params": [ + "typeParameters": [ + { + "id": 510, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 537, + "typeArguments": [ + { + "type": "reference", + "target": 510, + "name": "T", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseSuccess", + "package": "@probitas-test/client-graphql" + }, { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "GraphqlClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlClientConfig" + "type": "reference", + "target": 511, + "typeArguments": [ + { + "type": "reference", + "target": 510, + "name": "T", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true } - } + ], + "name": "GraphqlResponseError", + "package": "@probitas-test/client-graphql" + }, + { + "type": "reference", + "target": 524, + "typeArguments": [ + { + "type": "reference", + "target": 510, + "name": "T", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseFailure", + "package": "@probitas-test/client-graphql" } - ], - "returnType": { - "repr": "GraphqlClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlClient" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] + ] } + }, + { + "id": 506, + "name": "createGraphqlClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 507, + "name": "createGraphqlClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new GraphQL client instance.\n\nThe client provides methods for executing GraphQL queries, mutations,\nand subscriptions with automatic error handling and response parsing." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A new GraphQL client instance" + } + ] + }, + { + "tag": "@example", + "name": "Basic query", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({\n url: \"http://localhost:4000/graphql\",\n});\n\nconst response = await client.query(`\n query GetUser($id: ID!) {\n user(id: $id) { id name email }\n }\n`, { id: \"123\" });\n\nconsole.log(response.data);\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n});\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Mutation with error handling", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({ url: \"http://localhost:4000/graphql\" });\n\nconst response = await client.mutation(`\n mutation CreateUser($input: CreateUserInput!) {\n createUser(input: $input) { id }\n }\n`, { input: { name: \"Alice\", email: \"alice@example.com\" } });\n\nif (response.ok) {\n console.log(\"Created user:\", (response.data as any).createUser.id);\n}\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nawait using client = createGraphqlClient({\n url: \"http://localhost:4000/graphql\",\n});\nconst response = await client.query(`{ __typename }`);\n// Client automatically closed when scope exits\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 508, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration including URL and default options" + } + ] + }, + "type": { + "type": "reference", + "target": 377, + "name": "GraphqlClientConfig", + "package": "@probitas-test/client-graphql" + } + } + ], + "type": { + "type": "reference", + "target": 386, + "name": "GraphqlClient", + "package": "@probitas-test/client-graphql" + } + } + ] } - ] + ], + "packageName": "@probitas-test/client-graphql", + "packageVersion": "0.7.1" } diff --git a/data/api/client-grpc.json b/data/api/client-grpc.json index 1d3e146..10c3430 100644 --- a/data/api/client-grpc.json +++ b/data/api/client-grpc.json @@ -1,3485 +1,4792 @@ { - "name": "client-grpc", - "specifier": "@probitas/client-grpc", - "version": "0.6.1", - "moduleDoc": "gRPC client for [Probitas](https://github.com/probitas-test/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- **Field Name Conversion**: Automatic snake_case ↔ camelCase conversion\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-test/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\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({ url: \"http://localhost:50051\" });\n\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\nawait client.close();\n```\n\n## Field Name Conventions\n\nThe client automatically handles field name conversion between protobuf and JavaScript:\n\n- **Request**: Accept both `snake_case` (protobuf) and `camelCase` (JavaScript) field names\n- **Response**:\n - `response.data` — Plain JSON with `camelCase` fields (no `$typeName`)\n - `response.raw` — Original protobuf Message with metadata (includes `$typeName`)\n\n```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({ url: \"http://localhost:50051\" });\n\n// Request: Both camelCase and snake_case work\nconst response = await client.call(\"echo.Echo\", \"echoWithDelay\", {\n message: \"hello\",\n delayMs: 100, // camelCase (recommended for JavaScript)\n // delay_ms: 100, // snake_case (protobuf style) also works\n});\n\n// Response data: JSON with camelCase fields\nconsole.log(response.data);\n// { message: \"hello\", metadata: {...} } ← no $typeName\n\n// Response raw: protobuf Message with metadata\nconsole.log(response.raw);\n// { $typeName: \"echo.EchoResponse\", message: \"hello\", ... }\n\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [gRPC](https://grpc.io/)\n", - "exports": [ - { - "name": "GrpcClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 141, - "col": 0, - "byteIndex": 4134 + "schemaVersion": "2.0", + "id": 550, + "name": "@probitas-test/client-grpc", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "gRPC client for [Probitas](https://github.com/probitas-test/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[" + }, + { + "kind": "code", + "text": "`@probitas-test/client-connectrpc`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-connectrpc) with\n" + }, + { + "kind": "code", + "text": "`protocol: \"grpc\"`" + }, + { + "kind": "text", + "text": " 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- **Field Name Conversion**: Automatic snake_case ↔ camelCase conversion\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 " + }, + { + "kind": "code", + "text": "`AsyncDisposable`" + }, + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-grpc\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/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```" + }, + { + "kind": "text", + "text": "\n\n## Service Discovery\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({ url: \"http://localhost:50051\" });\n\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\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Field Name Conventions\n\nThe client automatically handles field name conversion between protobuf and JavaScript:\n\n- **Request**: Accept both " + }, + { + "kind": "code", + "text": "`snake_case`" + }, + { + "kind": "text", + "text": " (protobuf) and " + }, + { + "kind": "code", + "text": "`camelCase`" + }, + { + "kind": "text", + "text": " (JavaScript) field names\n- **Response**:\n - " + }, + { + "kind": "code", + "text": "`response.data`" + }, + { + "kind": "text", + "text": " — Plain JSON with " + }, + { + "kind": "code", + "text": "`camelCase`" + }, + { + "kind": "text", + "text": " fields (no " + }, + { + "kind": "code", + "text": "`$typeName`" + }, + { + "kind": "text", + "text": ")\n - " + }, + { + "kind": "code", + "text": "`response.raw`" + }, + { + "kind": "text", + "text": " — Original protobuf Message with metadata (includes " + }, + { + "kind": "code", + "text": "`$typeName`" + }, + { + "kind": "text", + "text": ")\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({ url: \"http://localhost:50051\" });\n\n// Request: Both camelCase and snake_case work\nconst response = await client.call(\"echo.Echo\", \"echoWithDelay\", {\n message: \"hello\",\n delayMs: 100, // camelCase (recommended for JavaScript)\n // delay_ms: 100, // snake_case (protobuf style) also works\n});\n\n// Response data: JSON with camelCase fields\nconsole.log(response.data);\n// { message: \"hello\", metadata: {...} } ← no $typeName\n\n// Response raw: protobuf Message with metadata\nconsole.log(response.raw);\n// { $typeName: \"echo.EchoResponse\", message: \"hello\", ... }\n\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC client interface.\n\n## Field Name Conventions\n\nThis client automatically handles field name conversion between protobuf and JavaScript:\n\n- **Request fields**: Accept both `snake_case` (protobuf style) and `camelCase` (JavaScript style)\n- **Response fields**: Converted to JavaScript conventions based on response type:\n - `response.data`: Plain JSON object with `camelCase` field names (no `$typeName`)\n - `response.raw`: Original protobuf Message object with all metadata (includes `$typeName`)\n", - "tags": [ + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\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```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client) | Core utilities and types |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-connectrpc`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-connectrpc) | ConnectRPC client (supports Connect, gRPC, gRPC-Web) |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [gRPC](https://grpc.io/)" + } + ] + }, + "children": [ + { + "id": 598, + "name": "GrpcError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nconst client = createConnectRpcClient({ url: \"http://localhost:50051\" });\n\n// Request: Both formats work\nawait client.call(\"echo.Echo\", \"echoWithDelay\", {\n message: \"hello\",\n delayMs: 100, // camelCase (recommended)\n // delay_ms: 100, // snake_case also works\n});\n\n// Response: data is JSON, raw is protobuf Message\nconst response = await client.call(\"echo.Echo\", \"echo\", { message: \"test\" });\nconsole.log(response.data); // { message: \"test\", metadata: {...} }\nconsole.log(response.raw); // { $typeName: \"echo.EchoResponse\", message: \"test\", ... }\n```" + "kind": "text", + "text": "Error class for ConnectRPC/gRPC errors.\n\nUse " + }, + { + "kind": "code", + "text": "`statusCode`" + }, + { + "kind": "text", + "text": " to distinguish between different gRPC error codes." } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } - } - ], - "constructors": [], - "methods": [ - { - "name": "call", - "jsDoc": { - "doc": "Make a unary RPC call.", - "tags": [ + "children": [ + { + "id": 599, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 600, + "name": "GrpcError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "serviceName", - "doc": "- Service name (e.g., \"echo.EchoService\")" + "id": 601, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "methodName", - "doc": "- Method name (e.g., \"echo\")" + "id": 602, + "name": "statusCode", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 687, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } }, { - "kind": "param", - "name": "request", - "doc": "- Request message" + "id": 603, + "name": "statusMessage", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 604, "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 155, - "col": 2, - "byteIndex": 4607 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "request", - "optional": false, - "tsType": { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 611, + "name": "ConnectRpcErrorOptions", + "package": "@probitas-test/client-connectrpc" } } + ], + "type": { + "type": "reference", + "target": 598, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" - } - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } - } - ], - "typeName": "Promise" + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 610, + "name": "details", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 688, + "name": "ErrorDetail", + "package": "@probitas-test/client-connectrpc" } - }, - "typeParams": [ + } + } + }, + { + "id": 606, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 609, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, { - "name": "TRequest" + "type": "literal", + "value": null } ] + } + }, + { + "id": 605, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + }, + { + "id": 607, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, + "type": { + "type": "reference", + "target": 687, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 608, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 614, + "name": "GrpcNetworkError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "serverStream", - "jsDoc": { - "doc": "Make a server streaming RPC call.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Service name" - }, - { - "kind": "param", - "name": "methodName", - "doc": "- Method name" - }, + "kind": "text", + "text": "Error thrown when a network-level failure occurs.\n\nThis error indicates that the request could not be processed by the server\ndue to network issues (connection refused, DNS resolution failure, timeout, etc.).\nUnlike ConnectRpcError, this error means the server was never reached." + } + ] + }, + "children": [ + { + "id": 615, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 616, + "name": "GrpcNetworkError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "request", - "doc": "- Request message" + "id": 617, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 618, "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 169, - "col": 2, - "byteIndex": 4965 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } } + ], + "type": { + "type": "reference", + "target": 614, + "name": "ConnectRpcNetworkError", + "package": "@probitas-test/client-connectrpc" }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 620, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 619, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 688, + "name": "ErrorDetail", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rich error detail from google.rpc.Status.\n\nConnectRPC errors can include structured details encoded in error responses.\nThese details follow the google.protobuf.Any format with a type URL and value." + } + ] + }, + "children": [ + { + "id": 689, + "name": "typeUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "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\"" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 690, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "request", - "optional": false, - "tsType": { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" - } - } - }, + "kind": "text", + "text": "Decoded error detail value.\nThe structure depends on the typeUrl." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + }, + { + "id": 565, + "name": "GrpcClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC client interface.\n\n## Field Name Conventions\n\nThis client automatically handles field name conversion between protobuf and JavaScript:\n\n- **Request fields**: Accept both " + }, + { + "kind": "code", + "text": "`snake_case`" + }, + { + "kind": "text", + "text": " (protobuf style) and " + }, + { + "kind": "code", + "text": "`camelCase`" + }, + { + "kind": "text", + "text": " (JavaScript style)\n- **Response fields**: Converted to JavaScript conventions based on response type:\n - " + }, + { + "kind": "code", + "text": "`response.data`" + }, + { + "kind": "text", + "text": ": Plain JSON object with " + }, + { + "kind": "code", + "text": "`camelCase`" + }, + { + "kind": "text", + "text": " field names (no " + }, + { + "kind": "code", + "text": "`$typeName`" + }, + { + "kind": "text", + "text": ")\n - " + }, + { + "kind": "code", + "text": "`response.raw`" + }, + { + "kind": "text", + "text": ": Original protobuf Message object with all metadata (includes " + }, + { + "kind": "code", + "text": "`$typeName`" + }, + { + "kind": "text", + "text": ")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" - } - } + "kind": "code", + "text": "```ts\nconst client = createConnectRpcClient({ url: \"http://localhost:50051\" });\n\n// Request: Both formats work\nawait client.call(\"echo.Echo\", \"echoWithDelay\", {\n message: \"hello\",\n delayMs: 100, // camelCase (recommended)\n // delay_ms: 100, // snake_case also works\n});\n\n// Response: data is JSON, raw is protobuf Message\nconst response = await client.call(\"echo.Echo\", \"echo\", { message: \"test\" });\nconsole.log(response.data); // { message: \"test\", metadata: {...} }\nconsole.log(response.raw); // { $typeName: \"echo.EchoResponse\", message: \"test\", ... }\n```" } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } - } - ], - "typeName": "AsyncIterable" + ] + } + ] + }, + "children": [ + { + "id": 566, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration" } - }, - "typeParams": [ + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/types.d.ts", + "qualifiedName": "ConnectRpcClientConfig" + }, + "name": "ConnectRpcClientConfig", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 567, + "name": "reflection", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "TRequest" + "kind": "text", + "text": "Reflection API (only available when schema: \"reflection\")" } ] }, - { - "name": "clientStream", - "jsDoc": { - "doc": "Make a client streaming RPC call.", - "tags": [ + "type": { + "type": "reference", + "target": 705, + "name": "ReflectionApi", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 589, + "name": "bidiStream", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 590, + "name": "bidiStream", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a bidirectional streaming RPC call." + } + ] + }, + "typeParameters": [ + { + "id": 591, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "kind": "param", + "id": 592, "name": "serviceName", - "doc": "- Service name" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 593, "name": "methodName", - "doc": "- Method name" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 594, "name": "requests", - "doc": "- Async iterable of request messages" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async iterable of request messages" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 591, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "AsyncIterable", + "package": "typescript" + } }, { - "kind": "param", + "id": 595, "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 183, - "col": 2, - "byteIndex": 5357 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "requests", - "optional": false, - "tsType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" - } + "kind": "text", + "text": "Call options" } - ], - "typeName": "AsyncIterable" - } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" + ] + }, + "type": { + "type": "reference", + "target": 621, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } + "type": "reference", + "target": 627, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" } ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "TRequest" + "name": "AsyncIterable", + "package": "typescript" } - ] - }, - { - "name": "bidiStream", - "jsDoc": { - "doc": "Make a bidirectional streaming RPC call.", - "tags": [ + } + ] + }, + { + "id": 568, + "name": "call", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 569, + "name": "call", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a unary RPC call." + } + ] + }, + "typeParameters": [ { - "kind": "param", + "id": 570, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 571, "name": "serviceName", - "doc": "- Service name" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name (e.g., \"echo.EchoService\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 572, "name": "methodName", - "doc": "- Method name" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name (e.g., \"echo\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "requests", - "doc": "- Async iterable of request messages" + "id": 573, + "name": "request", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request message" + } + ] + }, + "type": { + "type": "reference", + "target": 570, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } }, { - "kind": "param", + "id": 574, "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 197, - "col": 2, - "byteIndex": 5766 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 621, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 627, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 582, + "name": "clientStream", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 583, + "name": "clientStream", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a client streaming RPC call." + } + ] }, - { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "typeParameters": [ + { + "id": 584, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - }, - { - "kind": "identifier", - "name": "requests", - "optional": false, - "tsType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "parameters": [ + { + "id": 585, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 586, + "name": "methodName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 587, + "name": "requests", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async iterable of request messages" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" - } + "type": "reference", + "target": 584, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true } ], - "typeName": "AsyncIterable" + "name": "AsyncIterable", + "package": "typescript" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" + }, + { + "id": 588, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 621, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 627, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 596, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 597, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } + "kind": "text", + "text": "Close the client connection." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" } ], - "typeName": "AsyncIterable" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [ - { - "name": "TRequest" + } + ] + }, + { + "id": 575, + "name": "serverStream", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 576, + "name": "serverStream", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a server streaming RPC call." + } + ] + }, + "typeParameters": [ + { + "id": 577, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 578, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 579, + "name": "methodName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 580, + "name": "request", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request message" + } + ] + }, + "type": { + "type": "reference", + "target": 577, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + }, + { + "id": 581, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 621, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 627, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "AsyncIterable", + "package": "typescript" } - ] + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] + }, + { + "id": 554, + "name": "GrpcClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "close", - "jsDoc": { - "doc": "Close the client connection." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 207, - "col": 2, - "byteIndex": 5998 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "kind": "text", + "text": "Configuration for creating a gRPC client.\n\nThis is a subset of ConnectRpcClientConfig with protocol fixed to \"grpc\"." + } + ] + }, + "children": [ + { + "id": 556, + "name": "httpVersion", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP version to use." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "kind": "code", + "text": "```ts\n\"2\"\n```" } - ], - "typeName": "Promise" + ] } - }, - "typeParams": [] + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/types.d.ts", + "qualifiedName": "HttpVersion" + }, + "name": "HttpVersion", + "package": "@probitas-test/client-connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Omit.httpVersion", + "package": "@probitas-test/client-connectrpc" } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "Client configuration" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 143, - "col": 2, - "byteIndex": 4226 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClientConfig" + }, + { + "id": 558, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default metadata to send with every request." } - }, - "typeParams": [] + ] }, - { - "name": "reflection", - "jsDoc": { - "doc": "Reflection API (only available when schema: \"reflection\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 146, - "col": 2, - "byteIndex": 4337 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ReflectionApi", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ReflectionApi" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" + }, + "name": "HeadersInit", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Omit.metadata", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 564, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 626, + "name": "Omit.retry", + "package": "@probitas-test/client", + "qualifiedName": "CommonOptions.retry" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GrpcError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 75, - "col": 0, - "byteIndex": 2020 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error class for ConnectRPC/gRPC errors.\n\nUse `statusCode` to distinguish between different gRPC error codes." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + }, + { + "id": 559, + "name": "schema", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Schema resolution configuration.\n- \"reflection\": Use Server Reflection to discover services dynamically (default)\n- string: Path to FileDescriptorSet binary file (from " }, { - "kind": "identifier", - "name": "statusCode", - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - } + "kind": "code", + "text": "`buf build --output set.binpb`" }, { - "kind": "identifier", - "name": "statusMessage", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": ")\n- Uint8Array: FileDescriptorSet binary data\n- FileDescriptorSet: Pre-parsed FileDescriptorSet message object" + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"reflection\"\n```" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcErrorOptions" + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" } - } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/wkt/google/protobuf/descriptor_pb.d.ts", + "qualifiedName": "FileDescriptorSet" + }, + "name": "FileDescriptorSet", + "package": "@bufbuild/protobuf" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 83, - "col": 2, - "byteIndex": 2338 - } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Omit.schema", + "package": "@probitas-test/client-connectrpc" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 2073 - } + }, + { + "id": 563, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 77, - "col": 2, - "byteIndex": 2127 - } + ] }, - { - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusCode", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 78, - "col": 2, - "byteIndex": 2177 - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusMessage", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 79, - "col": 2, - "byteIndex": 2222 - } + "inheritedFrom": { + "type": "reference", + "target": 625, + "name": "Omit.signal", + "package": "@probitas-test/client", + "qualifiedName": "CommonOptions.signal" + } + }, + { + "id": 561, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nCan be overridden per-request via ConnectRpcOptions.throwOnError." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "metadata", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 80, - "col": 2, - "byteIndex": 2256 - } + ] + } + ] }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ErrorDetail", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorDetail" - } - } - } + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Omit.throwOnError", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 562, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "details", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 81, - "col": 2, - "byteIndex": 2293 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 624, + "name": "Omit.timeout", + "package": "@probitas-test/client", + "qualifiedName": "CommonOptions.timeout" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "GrpcErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 58, - "col": 0, - "byteIndex": 1614 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for ConnectRpcError construction." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } + }, + { + "id": 557, + "name": "tls", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "TLS configuration. If not provided, uses insecure credentials." + } + ] + }, + "type": { + "type": "reference", + "target": 727, + "name": "TlsConfig", + "package": "@probitas-test/client-connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Omit.tls", + "package": "@probitas-test/client-connectrpc" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "metadata", - "jsDoc": { - "doc": "Headers/metadata from the ConnectRPC response." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 62, - "col": 2, - "byteIndex": 1743 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + }, + { + "id": 555, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server URL for ConnectRPC connections.\n\nCan be a URL string or a connection configuration object." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "String URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = { url: \"http://localhost:50051\" };\n```" + } + ] + }, + { + "tag": "@example", + "name": "Connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = {\n url: { host: \"grpc.example.com\", port: 443, protocol: \"https\" },\n};\n```" } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/types.d.ts", + "qualifiedName": "ConnectRpcConnectionConfig" }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "name": "ConnectRpcConnectionConfig", + "package": "@probitas-test/client-connectrpc" + } + ] }, - { - "name": "details", - "jsDoc": { - "doc": "Rich error details from google.rpc.Status." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 67, - "col": 2, - "byteIndex": 1842 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ErrorDetail", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorDetail" - } - } - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Omit.url", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 560, + "name": "useBinaryFormat", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to use binary format for messages." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\ntrue\n```" } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Omit.useBinaryFormat", + "package": "@probitas-test/client-connectrpc" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/types.d.ts", + "qualifiedName": "ConnectRpcClientConfig" + }, + "name": "ConnectRpcClientConfig", + "package": "@probitas-test/client-connectrpc" + }, + { + "type": "literal", + "value": "protocol" + } + ], + "name": "Omit", + "package": "typescript" + } + ] }, { - "name": "GrpcNetworkError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 22, - "col": 0, - "byteIndex": 599 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a network-level failure occurs.\n\nThis error indicates that the request could not be processed by the server\ndue to network issues (connection refused, DNS resolution failure, timeout, etc.).\nUnlike ConnectRpcError, this error means the server was never reached." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 611, + "name": "GrpcErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Options for ConnectRpcError construction." + } + ] + }, + "children": [ + { + "id": 613, + "name": "details", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rich error details from google.rpc.Status." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 688, + "name": "ErrorDetail", + "package": "@probitas-test/client-connectrpc" } } + }, + { + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 26, - "col": 2, - "byteIndex": 771 - } + ] } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 23, - "col": 2, - "byteIndex": 659 - } + }, + { + "id": 612, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Headers/metadata from the ConnectRPC response." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 24, - "col": 2, - "byteIndex": 720 - } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ] }, { + "id": 621, "name": "GrpcOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 146, - "col": 0, - "byteIndex": 3803 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual ConnectRPC calls." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "kind": "text", + "text": "Options for individual ConnectRPC calls." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "metadata", - "jsDoc": { - "doc": "Metadata to send with the request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 148, - "col": 2, - "byteIndex": 3908 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" + ] + }, + "children": [ + { + "id": 622, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Metadata to send with the request." } - }, - "typeParams": [] + ] }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nOverrides ConnectRpcClientConfig.throwOnError.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 155, - "col": 2, - "byteIndex": 4160 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" + }, + "name": "HeadersInit", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GrpcResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 232, - "col": 0, - "byteIndex": 6908 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC response union type.\n\nUse `processed` to distinguish between server responses and failures:\n- `processed === true`: Server responded (Success or Error)\n- `processed === false`: Request failed (Failure)\n\nUse `ok` to check for success:\n- `ok === true`: Success (statusCode === 0)\n- `ok === false`: Error or Failure" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ConnectRpcResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseSuccess" + }, + { + "id": 626, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - { - "repr": "ConnectRpcResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseError" + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 625, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - { - "repr": "ConnectRpcResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 623, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nOverrides ConnectRpcClientConfig.throwOnError." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" } - ], - "typeName": "ConnectRpcResponseFailure" + ] } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + { + "id": 624, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { + "id": 629, "name": "GrpcResponseError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 164, - "col": 0, - "byteIndex": 4941 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC response with gRPC error (statusCode !== 0).\n\nThe server processed the request but returned an error status." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "ConnectRpcResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseBase" - } + "kind": "text", + "text": "ConnectRPC response with gRPC error (statusCode !== 0).\n\nThe server processed the request but returned an error status." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 166, - "col": 2, - "byteIndex": 5031 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 639, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 167, - "col": 2, - "byteIndex": 5059 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "No data for error responses." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 168, - "col": 2, - "byteIndex": 5081 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "statusCode", - "jsDoc": { - "doc": "gRPC status code (1-16)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 171, - "col": 2, - "byteIndex": 5151 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.data", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 641, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "statusMessage", - "jsDoc": { - "doc": "Status message describing the error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 174, - "col": 2, - "byteIndex": 5243 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 177, - "col": 2, - "byteIndex": 5305 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 654, + "name": "ConnectRpcResponseBase.duration", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 633, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "trailers", - "jsDoc": { - "doc": "Response trailers (sent at end of RPC)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 180, - "col": 2, - "byteIndex": 5384 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- ConnectRpcError for gRPC errors\n- ConnectRpcNetworkError/AbortError/TimeoutError for failures" } - }, - "typeParams": [] + ] }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw ConnectError." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 183, - "col": 2, - "byteIndex": 5442 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectError" - } - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 598, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" }, - { - "name": "data", - "jsDoc": { - "doc": "No data for error responses." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 186, - "col": 2, - "byteIndex": 5511 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.error", + "package": "@probitas-test/client-connectrpc" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 636, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" } - ] - } - }, - { - "name": "GrpcResponseFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 195, - "col": 0, - "byteIndex": 5781 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Failed ConnectRPC request (network error, connection refused, etc.).\n\nThe request did not reach gRPC processing." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ConnectRpcResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseBase" - } + }, + { + "id": 640, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " + }, + { + "kind": "code", + "text": "`\"connectrpc\"`" + }, + { + "kind": "text", + "text": " for ConnectRPC responses. Use this in switch statements\nfor type-safe narrowing of union types." + } + ] + }, + "type": { + "type": "literal", + "value": "connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": 653, + "name": "ConnectRpcResponseBase.kind", + "package": "@probitas-test/client-connectrpc" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 197, - "col": 2, - "byteIndex": 5873 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 632, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": statusCode === 0 (OK)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": gRPC error or request failure" } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 198, - "col": 2, - "byteIndex": 5902 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.ok", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 631, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or gRPC error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, connection refused)" } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 199, - "col": 2, - "byteIndex": 5924 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcFailureError" + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.processed", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 638, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw ConnectError." } - }, - "typeParams": [] + ] }, - { - "name": "statusCode", - "jsDoc": { - "doc": "Status code (null for network failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 202, - "col": 2, - "byteIndex": 6017 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": { + "packageName": "@connectrpc/connect", + "packagePath": "dist/esm/connect-error.d.ts", + "qualifiedName": "ConnectError" + }, + "name": "ConnectError", + "package": "@connectrpc/connect" }, - { - "name": "statusMessage", - "jsDoc": { - "doc": "Status message (null for network failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 205, - "col": 2, - "byteIndex": 6100 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.raw", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 634, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers (null for failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 208, - "col": 2, - "byteIndex": 6180 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "gRPC status code (1-16)." + } + ] }, - { - "name": "trailers", - "jsDoc": { - "doc": "Response trailers (null for failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 211, - "col": 2, - "byteIndex": 6255 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 687, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 635, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "raw", - "jsDoc": { - "doc": "No raw response (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 214, - "col": 2, - "byteIndex": 6339 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Status message describing the error." + } + ] }, - { - "name": "data", - "jsDoc": { - "doc": "No data (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 217, - "col": 2, - "byteIndex": 6410 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 637, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response trailers (sent at end of RPC)." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" } - ] - } + } + ], + "typeParameters": [ + { + "id": 630, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/response.d.ts", + "qualifiedName": "ConnectRpcResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 630, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseError.T", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseBase", + "package": "@probitas-test/client-connectrpc" + } + ] }, { - "name": "GrpcResponseSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 133, - "col": 0, - "byteIndex": 4053 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful ConnectRPC response (statusCode === 0)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 642, + "name": "GrpcResponseFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "ConnectRpcResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseBase" - } + "kind": "text", + "text": "Failed ConnectRPC request (network error, connection refused, etc.).\n\nThe request did not reach gRPC processing." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 135, - "col": 2, - "byteIndex": 4145 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 652, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 136, - "col": 2, - "byteIndex": 4173 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "comment": { + "summary": [ + { + "kind": "text", + "text": "No data (request didn't reach server)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 137, - "col": 2, - "byteIndex": 4194 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "statusCode", - "jsDoc": { - "doc": "gRPC status code (always 0 for success)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 140, - "col": 2, - "byteIndex": 4269 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.data", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 654, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "statusMessage", - "jsDoc": { - "doc": "Status message (null for successful responses)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 143, - "col": 2, - "byteIndex": 4353 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 146, - "col": 2, - "byteIndex": 4413 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.duration" + } + }, + { + "id": 646, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "trailers", - "jsDoc": { - "doc": "Response trailers (sent at end of RPC)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 149, - "col": 2, - "byteIndex": 4492 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- ConnectRpcError for gRPC errors\n- ConnectRpcNetworkError/AbortError/TimeoutError for failures" } - }, - "typeParams": [] + ] }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw protobuf Message object." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 152, - "col": 2, - "byteIndex": 4561 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ConnectRpcFailureError" + }, + "name": "ConnectRpcFailureError", + "package": "@probitas-test/client-connectrpc" }, - { - "name": "data", - "jsDoc": { - "doc": "Response data as plain JavaScript object (JSON representation)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 155, - "col": 2, - "byteIndex": 4660 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.error", + "package": "@probitas-test/client-connectrpc" } - ] - } - }, - { - "name": "GrpcStatus", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 13, - "col": 13, - "byteIndex": 317 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC/gRPC status codes.\nThese codes are used by both gRPC and ConnectRPC protocols." - }, - "kind": "variable", - "variableDef": { - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "OK", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 14, - "col": 2, - "byteIndex": 340 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "CANCELLED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 15, - "col": 2, - "byteIndex": 349 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "UNKNOWN", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 16, - "col": 2, - "byteIndex": 365 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + }, + { + "id": 649, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "INVALID_ARGUMENT", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 17, - "col": 2, - "byteIndex": 379 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "kind": "text", + "text": "Response headers (null for failures)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 653, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "name": "DEADLINE_EXCEEDED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 18, - "col": 2, - "byteIndex": 402 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " }, { - "name": "NOT_FOUND", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 19, - "col": 2, - "byteIndex": 426 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`\"connectrpc\"`" }, { - "name": "ALREADY_EXISTS", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 20, - "col": 2, - "byteIndex": 442 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "kind": "text", + "text": " for ConnectRPC responses. Use this in switch statements\nfor type-safe narrowing of union types." + } + ] + }, + "type": { + "type": "literal", + "value": "connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.kind" + } + }, + { + "id": 645, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "PERMISSION_DENIED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 21, - "col": 2, - "byteIndex": 463 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Whether the request was successful.\n\n- " }, { - "name": "RESOURCE_EXHAUSTED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 22, - "col": 2, - "byteIndex": 487 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`true`" }, { - "name": "FAILED_PRECONDITION", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 23, - "col": 2, - "byteIndex": 512 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": ": statusCode === 0 (OK)\n- " }, { - "name": "ABORTED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 24, - "col": 2, - "byteIndex": 538 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`false`" }, { - "name": "OUT_OF_RANGE", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 25, - "col": 2, - "byteIndex": 553 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "kind": "text", + "text": ": gRPC error or request failure" + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.ok", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 644, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "UNIMPLEMENTED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 26, - "col": 2, - "byteIndex": 573 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " }, { - "name": "INTERNAL", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 27, - "col": 2, - "byteIndex": 594 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`true`" }, { - "name": "UNAVAILABLE", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 28, - "col": 2, - "byteIndex": 610 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": ": Server responded (success or gRPC error)\n- " }, { - "name": "DATA_LOSS", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 29, - "col": 2, - "byteIndex": 629 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`false`" }, { - "name": "UNAUTHENTICATED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 30, - "col": 2, - "byteIndex": 646 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": ": Request failed before processing (network error, connection refused)" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.processed", + "package": "@probitas-test/client-connectrpc" } }, - "kind": "const" - } - }, - { - "name": "GrpcStatusCode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 37, - "col": 0, - "byteIndex": 766 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC/gRPC status code type.\nDerived from ConnectRpcStatus values." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "indexedAccess", - "indexedAccess": { - "readonly": false, - "objType": { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "ConnectRpcStatus", - "kind": "typeQuery", - "typeQuery": "ConnectRpcStatus" - } - }, - "indexType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "keyof", - "tsType": { - "repr": "ConnectRpcStatus", - "kind": "typeQuery", - "typeQuery": "ConnectRpcStatus" - } + { + "id": 651, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No raw response (request didn't reach server)." } - } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.raw", + "package": "@probitas-test/client-connectrpc" } }, - "typeParams": [] - } - }, - { - "name": "ErrorDetail", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 37, - "col": 0, - "byteIndex": 1091 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Rich error detail from google.rpc.Status.\n\nConnectRPC errors can include structured details encoded in error responses.\nThese details follow the google.protobuf.Any format with a type URL and value." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "typeUrl", - "jsDoc": { - "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.7.1/errors.ts", - "line": 46, - "col": 2, - "byteIndex": 1416 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + { + "id": 647, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "value", - "jsDoc": { - "doc": "Decoded error detail value.\nThe structure depends on the typeUrl." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 52, - "col": 2, - "byteIndex": 1533 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Status code (null for network failures)." + } + ] + }, + "type": { + "type": "literal", + "value": null } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "FileDescriptorSet", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 31, - "col": 0, - "byteIndex": 713 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "FileDescriptorSet message type from @bufbuild/protobuf.\nThis is the decoded protobuf message containing file descriptors." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "MessageShape", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "FileDescriptorSetSchema", - "kind": "typeQuery", - "typeQuery": "FileDescriptorSetSchema" + }, + { + "id": 648, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Status message (null for network failures)." } - ], - "typeName": "MessageShape" + ] + }, + "type": { + "type": "literal", + "value": null } }, - "typeParams": [] - } + { + "id": 650, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response trailers (null for failures)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "typeParameters": [ + { + "id": 643, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/response.d.ts", + "qualifiedName": "ConnectRpcResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 643, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseFailure.T", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseBase", + "package": "@probitas-test/client-connectrpc" + } + ] }, { - "name": "getGrpcStatusName", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 58, - "col": 0, - "byteIndex": 1349 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Get the name of a ConnectRPC/gRPC status code.\n", - "tags": [ + "id": 655, + "name": "GrpcResponseSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```typescript\ngetStatusName(0); // \"OK\"\ngetStatusName(5); // \"NOT_FOUND\"\ngetStatusName(16); // \"UNAUTHENTICATED\"\n```" + "kind": "text", + "text": "Successful ConnectRPC response (statusCode === 0)." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "code", - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + "children": [ + { + "id": 665, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response data as plain JavaScript object (JSON representation)." } - } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 656, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseSuccess.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.data", + "package": "@probitas-test/client-connectrpc" } - ], - "returnType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + }, + { + "id": 667, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.duration" + } + }, + { + "id": 659, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- ConnectRpcError for gRPC errors\n- ConnectRpcNetworkError/AbortError/TimeoutError for failures" + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.error", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 662, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 666, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " + }, + { + "kind": "code", + "text": "`\"connectrpc\"`" + }, + { + "kind": "text", + "text": " for ConnectRPC responses. Use this in switch statements\nfor type-safe narrowing of union types." + } + ] + }, + "type": { + "type": "literal", + "value": "connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.kind" + } + }, + { + "id": 658, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": statusCode === 0 (OK)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": gRPC error or request failure" + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.ok", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 657, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or gRPC error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, connection refused)" + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.processed", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 664, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw protobuf Message object." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.raw", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 660, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "gRPC status code (always 0 for success)." + } + ] + }, + "type": { + "type": "literal", + "value": 0 + } + }, + { + "id": 661, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Status message (null for successful responses)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 663, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response trailers (sent at end of RPC)." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + } + ], + "typeParameters": [ + { + "id": 656, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/response.d.ts", + "qualifiedName": "ConnectRpcResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 656, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseBase", + "package": "@probitas-test/client-connectrpc" + } + ] }, { - "name": "isGrpcStatusCode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 72, - "col": 0, - "byteIndex": 1677 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if a number is a valid ConnectRPC/gRPC status code.\n", - "tags": [ + "id": 698, + "name": "MethodInfo", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```typescript\nisConnectRpcStatusCode(0); // true\nisConnectRpcStatusCode(16); // true\nisConnectRpcStatusCode(99); // false\n```" + "kind": "text", + "text": "Method information from reflection." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "code", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "children": [ + { + "id": 704, + "name": "idempotent", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the method is idempotent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "returnType": { - "repr": "code is ConnectRpcStatusCode", - "kind": "typePredicate", - "typePredicate": { - "asserts": false, - "param": { - "type": "identifier", - "name": "code" - }, - "type": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + }, + { + "id": 702, + "name": "inputType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Input message type name" } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "MethodInfo", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 171, - "col": 0, - "byteIndex": 4465 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Method information from reflection." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "name", - "jsDoc": { - "doc": "Method name (e.g., \"Echo\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 173, - "col": 2, - "byteIndex": 4533 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + { + "id": 701, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "localName", - "jsDoc": { - "doc": "Local name (camelCase)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 175, - "col": 2, - "byteIndex": 4590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method kind" + } + ] }, - { - "name": "kind", - "jsDoc": { - "doc": "Method kind" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 177, - "col": 2, - "byteIndex": 4641 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "unary", - "kind": "literal", - "literal": { - "kind": "string", - "string": "unary" - } - }, - { - "repr": "server_streaming", - "kind": "literal", - "literal": { - "kind": "string", - "string": "server_streaming" - } - }, - { - "repr": "client_streaming", - "kind": "literal", - "literal": { - "kind": "string", - "string": "client_streaming" - } - }, - { - "repr": "bidi_streaming", - "kind": "literal", - "literal": { - "kind": "string", - "string": "bidi_streaming" - } - } - ] - }, - "typeParams": [] + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "unary" + }, + { + "type": "literal", + "value": "server_streaming" + }, + { + "type": "literal", + "value": "client_streaming" + }, + { + "type": "literal", + "value": "bidi_streaming" + } + ] + } + }, + { + "id": 700, + "name": "localName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "inputType", - "jsDoc": { - "doc": "Input message type name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 183, - "col": 2, - "byteIndex": 4779 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Local name (camelCase)" + } + ] }, - { - "name": "outputType", - "jsDoc": { - "doc": "Output message type name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 185, - "col": 2, - "byteIndex": 4843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 699, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "idempotent", - "jsDoc": { - "doc": "Whether the method is idempotent" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 187, - "col": 2, - "byteIndex": 4916 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name (e.g., \"Echo\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 703, + "name": "outputType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Output message type name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { + "id": 705, "name": "ReflectionApi", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 78, - "col": 0, - "byteIndex": 2014 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Reflection API for ConnectRPC client.\nOnly available when client is created with schema: \"reflection\"." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "listServices", - "jsDoc": { - "doc": "List all available services on the server.", - "tags": [ + "kind": "text", + "text": "Reflection API for ConnectRPC client.\nOnly available when client is created with schema: \"reflection\"." + } + ] + }, + "children": [ + { + "id": 706, + "name": "enabled", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if reflection is enabled." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 709, + "name": "getServiceInfo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 710, + "name": "getServiceInfo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get detailed information about a specific service." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" + } + ] + } + ] + }, + "parameters": [ { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" + "id": 711, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name (e.g., \"echo.EchoService\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 88, - "col": 2, - "byteIndex": 2236 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "", - "kind": "array", - "array": { - "repr": "ServiceInfo", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ServiceInfo" - } - } + "type": "reference", + "target": 718, + "name": "ServiceDetail", + "package": "@probitas-test/client-connectrpc" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "getServiceInfo", - "jsDoc": { - "doc": "Get detailed information about a specific service.", - "tags": [ + } + ] + }, + { + "id": 715, + "name": "hasService", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 716, + "name": "hasService", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if a service exists." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 717, "name": "serviceName", - "doc": "- Fully qualified service name (e.g., \"echo.EchoService\")" - }, - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 95, - "col": 2, - "byteIndex": 2477 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "ServiceDetail", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ServiceDetail" - } + "type": "intrinsic", + "name": "boolean" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "listMethods", - "jsDoc": { - "doc": "Get methods for a specific service.", - "tags": [ + } + ] + }, + { + "id": 712, + "name": "listMethods", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 713, + "name": "listMethods", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get methods for a specific service." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 714, "name": "serviceName", - "doc": "- Fully qualified service name" - }, - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 102, - "col": 2, - "byteIndex": 2697 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "target": 698, + "name": "MethodInfo", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 707, + "name": "listServices", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 708, + "name": "listServices", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "", - "kind": "array", - "array": { - "repr": "MethodInfo", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MethodInfo" + "kind": "text", + "text": "List all available services on the server." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" } + ] + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "target": 724, + "name": "ServiceInfo", + "package": "@probitas-test/client-connectrpc" } } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] + } + ] + } + ] + }, + { + "id": 718, + "name": "ServiceDetail", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Detailed service information." + } + ] + }, + "children": [ + { + "id": 720, + "name": "fullName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 723, + "name": "methods", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "All methods" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 698, + "name": "MethodInfo", + "package": "@probitas-test/client-connectrpc" + } + } + } + }, + { + "id": 719, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 721, + "name": "packageName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Package name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 722, + "name": "protoFile", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Proto file name" + } + ] }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 724, + "name": "ServiceInfo", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "hasService", - "jsDoc": { - "doc": "Check if a service exists.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Fully qualified service name" + "kind": "text", + "text": "Service information from reflection." + } + ] + }, + "children": [ + { + "id": 726, + "name": "file", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Proto file name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 725, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name (e.g., \"echo.EchoService\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 727, + "name": "TlsConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "TLS configuration for ConnectRPC connections." + } + ] + }, + "children": [ + { + "id": 729, + "name": "clientCert", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client certificate (PEM format)." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" }, - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 109, - "col": 2, - "byteIndex": 2904 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "name": "ArrayBufferLike", + "package": "typescript" } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - } - ], - "typeName": "Promise" + "name": "Uint8Array", + "package": "typescript" + } + }, + { + "id": 730, + "name": "clientKey", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client private key (PEM format)." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + } + }, + { + "id": 731, + "name": "insecure", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Skip server certificate verification (use only for testing)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 728, + "name": "rootCerts", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Root CA certificate (PEM format)." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" } - }, - "typeParams": [] + ], + "name": "Uint8Array", + "package": "typescript" } - ], - "properties": [ + } + ] + }, + { + "id": 691, + "name": "FileDescriptorSet", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "name": "enabled", - "jsDoc": { - "doc": "Check if reflection is enabled." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 82, - "col": 2, - "byteIndex": 2098 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "kind": "text", + "text": "FileDescriptorSet message type from @bufbuild/protobuf.\nThis is the decoded protobuf message containing file descriptors." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/types.d.ts", + "qualifiedName": "MessageShape" + }, + "typeArguments": [ + { + "type": "query", + "queryType": { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/wkt/google/protobuf/descriptor_pb.d.ts", + "qualifiedName": "FileDescriptorSetSchema" + }, + "name": "FileDescriptorSetSchema", + "package": "@bufbuild/protobuf", + "preferValues": true + } } ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + "name": "MessageShape", + "package": "@bufbuild/protobuf" } }, { - "name": "ServiceDetail", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 193, - "col": 0, - "byteIndex": 4990 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Detailed service information." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + "id": 627, + "name": "GrpcResponse", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "name": "name", - "jsDoc": { - "doc": "Service name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 195, - "col": 2, - "byteIndex": 5047 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "ConnectRPC response union type.\n\nUse " }, { - "name": "fullName", - "jsDoc": { - "doc": "Fully qualified service name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 197, - "col": 2, - "byteIndex": 5110 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "code", + "text": "`processed`" }, { - "name": "packageName", - "jsDoc": { - "doc": "Package name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 199, - "col": 2, - "byteIndex": 5161 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": " to distinguish between server responses and failures:\n- " }, { - "name": "protoFile", - "jsDoc": { - "doc": "Proto file name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 201, - "col": 2, - "byteIndex": 5218 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "code", + "text": "`processed === true`" }, { - "name": "methods", - "jsDoc": { - "doc": "All methods" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 203, - "col": 2, - "byteIndex": 5269 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "MethodInfo", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MethodInfo" - } - } - } - } - }, - "typeParams": [] + "kind": "text", + "text": ": Server responded (Success or Error)\n- " + }, + { + "kind": "code", + "text": "`processed === false`" + }, + { + "kind": "text", + "text": ": Request failed (Failure)\n\nUse " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " to check for success:\n- " + }, + { + "kind": "code", + "text": "`ok === true`" + }, + { + "kind": "text", + "text": ": Success (statusCode === 0)\n- " + }, + { + "kind": "code", + "text": "`ok === false`" + }, + { + "kind": "text", + "text": ": Error or Failure" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ServiceInfo", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 161, - "col": 0, - "byteIndex": 4244 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Service information from reflection." + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + "typeParameters": [ + { + "id": 628, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ { - "name": "name", - "jsDoc": { - "doc": "Fully qualified service name (e.g., \"echo.EchoService\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 163, - "col": 2, - "byteIndex": 4342 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": "reference", + "target": 655, + "typeArguments": [ + { + "type": "reference", + "target": 628, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseSuccess", + "package": "@probitas-test/client-connectrpc" }, { - "name": "file", - "jsDoc": { - "doc": "Proto file name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 165, - "col": 2, - "byteIndex": 4392 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": "reference", + "target": 629, + "typeArguments": [ + { + "type": "reference", + "target": 628, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseError", + "package": "@probitas-test/client-connectrpc" + }, + { + "type": "reference", + "target": 642, + "typeArguments": [ + { + "type": "reference", + "target": 628, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseFailure", + "package": "@probitas-test/client-connectrpc" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "TlsConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 46, - "col": 0, - "byteIndex": 1045 + "id": 687, + "name": "GrpcStatusCode", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC/gRPC status code type.\nDerived from ConnectRpcStatus values." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "TLS configuration for ConnectRPC connections." + "type": { + "type": "indexedAccess", + "indexType": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "query", + "queryType": { + "type": "reference", + "target": 668, + "name": "ConnectRpcStatus", + "package": "@probitas-test/client-connectrpc" + } + } + }, + "objectType": { + "type": "query", + "queryType": { + "type": "reference", + "target": 668, + "name": "ConnectRpcStatus", + "package": "@probitas-test/client-connectrpc" + } + } + } + }, + { + "id": 668, + "name": "GrpcStatus", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + "comment": { + "summary": [ { - "name": "rootCerts", - "jsDoc": { - "doc": "Root CA certificate (PEM format)." + "kind": "text", + "text": "ConnectRPC/gRPC status codes.\nThese codes are used by both gRPC and ConnectRPC protocols." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 669, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 680, + "name": "ABORTED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 10 + } }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 48, - "col": 2, - "byteIndex": 1119 + { + "id": 676, + "name": "ALREADY_EXISTS", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 6 + } }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + { + "id": 671, + "name": "CANCELLED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 1 } }, - "typeParams": [] - }, - { - "name": "clientCert", - "jsDoc": { - "doc": "Client certificate (PEM format)." + { + "id": 685, + "name": "DATA_LOSS", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 15 + } }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 50, - "col": 2, - "byteIndex": 1196 + { + "id": 674, + "name": "DEADLINE_EXCEEDED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 4 + } }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + { + "id": 679, + "name": "FAILED_PRECONDITION", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 9 } }, - "typeParams": [] - }, - { - "name": "clientKey", - "jsDoc": { - "doc": "Client private key (PEM format)." + { + "id": 683, + "name": "INTERNAL", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 13 + } + }, + { + "id": 673, + "name": "INVALID_ARGUMENT", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 3 + } }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 52, - "col": 2, - "byteIndex": 1274 + { + "id": 675, + "name": "NOT_FOUND", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 5 + } }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + { + "id": 670, + "name": "OK", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 0 } }, - "typeParams": [] - }, - { - "name": "insecure", - "jsDoc": { - "doc": "Skip server certificate verification (use only for testing)." + { + "id": 681, + "name": "OUT_OF_RANGE", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 11 + } + }, + { + "id": 677, + "name": "PERMISSION_DENIED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 7 + } + }, + { + "id": 678, + "name": "RESOURCE_EXHAUSTED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 8 + } + }, + { + "id": 686, + "name": "UNAUTHENTICATED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 16 + } }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 54, - "col": 2, - "byteIndex": 1379 + { + "id": 684, + "name": "UNAVAILABLE", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 14 + } }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" + { + "id": 682, + "name": "UNIMPLEMENTED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 12 + } }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + { + "id": 672, + "name": "UNKNOWN", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 2 + } + } + ] + } } }, { - "name": "GrpcClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 164, - "col": 0, - "byteIndex": 5226 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration for creating a gRPC client.\n\nThis is a subset of ConnectRpcClientConfig with protocol fixed to \"grpc\"." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "Omit", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ConnectRpcClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClientConfig" + "id": 551, + "name": "createGrpcClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 552, + "name": "createGrpcClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new gRPC client instance.\n\nThis is a thin wrapper around " + }, + { + "kind": "code", + "text": "`createConnectRpcClient`" + }, + { + "kind": "text", + "text": " with " + }, + { + "kind": "code", + "text": "`protocol: \"grpc\"`" + }, + { + "kind": "text", + "text": " fixed.\nThe client provides Server Reflection support for runtime service discovery." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A new gRPC client instance" } - }, - { - "repr": "protocol", - "kind": "literal", - "literal": { - "kind": "string", - "string": "protocol" + ] + }, + { + "tag": "@example", + "name": "Basic usage with reflection", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\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```" } - } - ], - "typeName": "Omit" + ] + }, + { + "tag": "@example", + "name": "Service discovery with reflection", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({\n url: \"http://localhost:50051\",\n});\n\n// Discover available services\nconst services = await client.reflection.listServices();\nconsole.log(\"Available services:\", services);\n\n// Get method information\nconst info = await client.reflection.getServiceInfo(\"echo.EchoService\");\nconsole.log(\"Methods:\", info.methods);\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Testing error responses", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({ url: \"http://localhost:50051\" });\n\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.statusCode); // NOT_FOUND = 5\n}\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\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```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 553, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration including server address" + } + ] + }, + "type": { + "type": "reference", + "target": 554, + "name": "GrpcClientConfig", + "package": "@probitas-test/client-grpc" + } } + ], + "type": { + "type": "reference", + "target": 565, + "name": "ConnectRpcClient", + "package": "@probitas-test/client-connectrpc" } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "createGrpcClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 247, - "col": 0, - "byteIndex": 7442 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new gRPC client instance.\n\nThis is a thin wrapper around `createConnectRpcClient` with `protocol: \"grpc\"` fixed.\nThe client provides Server Reflection support for runtime service discovery.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- Client configuration including server address" - }, - { - "kind": "return", - "doc": "A new gRPC client instance\n" - }, - { - "kind": "example", - "doc": "Basic usage with reflection\n```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\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" - }, - { - "kind": "example", - "doc": "Service discovery with reflection\n```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({\n url: \"http://localhost:50051\",\n});\n\n// Discover available services\nconst services = await client.reflection.listServices();\nconsole.log(\"Available services:\", services);\n\n// Get method information\nconst info = await client.reflection.getServiceInfo(\"echo.EchoService\");\nconsole.log(\"Methods:\", info.methods);\n\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Testing error responses\n```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({ url: \"http://localhost:50051\" });\n\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.statusCode); // NOT_FOUND = 5\n}\n\nawait client.close();\n```\n" + "id": 692, + "name": "getGrpcStatusName", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 693, + "name": "getGrpcStatusName", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the name of a ConnectRPC/gRPC status code." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```typescript\ngetStatusName(0); // \"OK\"\ngetStatusName(5); // \"NOT_FOUND\"\ngetStatusName(16); // \"UNAUTHENTICATED\"\n```" + } + ] + } + ] }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\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```" + "parameters": [ + { + "id": 694, + "name": "code", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 687, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "GrpcClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GrpcClientConfig" + } + ] + }, + { + "id": 695, + "name": "isGrpcStatusCode", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 696, + "name": "isGrpcStatusCode", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if a number is a valid ConnectRPC/gRPC status code." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```typescript\nisConnectRpcStatusCode(0); // true\nisConnectRpcStatusCode(16); // true\nisConnectRpcStatusCode(99); // false\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 697, + "name": "code", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "predicate", + "name": "code", + "asserts": false, + "targetType": { + "type": "reference", + "target": 687, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } } - ], - "returnType": { - "repr": "ConnectRpcClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClient" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-grpc", + "packageVersion": "0.6.2" } diff --git a/data/api/client-http.json b/data/api/client-http.json index d6fc44b..00f713e 100644 --- a/data/api/client-http.json +++ b/data/api/client-http.json @@ -1,4464 +1,4827 @@ { - "name": "client-http", - "specifier": "@probitas/client-http", - "version": "0.8.0", - "moduleDoc": "HTTP client for [Probitas](https://github.com/probitas-test/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-test/client-http\";\n\ninterface User {\n id: string;\n name: string;\n}\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 as User;\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\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\n\nconst res = await http.get(\"/health\");\nconsole.log(\"Health:\", res.ok);\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n", - "exports": [ - { - "name": "HttpResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 184, - "col": 0, - "byteIndex": 5739 + "schemaVersion": "2.0", + "id": 732, + "name": "@probitas-test/client-http", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP client for [Probitas](https://github.com/probitas-test/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 " }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP response union type representing all possible response states.\n\n- **Success (2xx)**: `processed: true, ok: true, error: null`\n- **Error (4xx/5xx)**: `processed: true, ok: false, error: HttpError`\n- **Failure (network error)**: `processed: false, ok: false, error: Error`\n", - "tags": [ - { - "kind": "example", - "doc": "Type narrowing by ok\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.ok) {\n // TypeScript knows: HttpResponseSuccess\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseError | HttpResponseFailure\n console.log(response.error); // Error\n}\n```\n" - }, + { + "kind": "code", + "text": "`AsyncDisposable`" + }, + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-http\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\ninterface User {\n id: string;\n name: string;\n}\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 as User;\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```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\n\nconst res = await http.get(\"/health\");\nconsole.log(\"Health:\", res.ok);\n```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client) | Core utilities and types |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-graphql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-graphql) | GraphQL client |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)" + } + ] + }, + "children": [ + { + "id": 822, + "name": "HttpError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP error class for non-2xx responses.\n\nThis error is thrown (or returned in response.error) when the server\nresponds with a 4xx or 5xx status code. It includes the response body\nfor inspecting error details." + } + ], + "blockTags": [ { - "kind": "example", - "doc": "Type narrowing by processed\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.processed) {\n // TypeScript knows: HttpResponseSuccess | HttpResponseError\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseFailure\n console.log(response.error); // Error (network error)\n}\n```" + "tag": "@example", + "name": "Check status code and body", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient, HttpError } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({ url: \"http://localhost:3000\", throwOnError: true });\ntry {\n await http.get(\"/not-found\");\n} catch (error) {\n if (error instanceof HttpError && error.status === 404) {\n console.log(\"Not found:\", error.text);\n }\n}\n```" + } + ] } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "children": [ + { + "id": 823, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "HttpResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "HttpResponseSuccess" - } - }, - { - "repr": "HttpResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "id": 824, + "name": "HttpError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 825, + "name": "status", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "typeName": "HttpResponseError" - } - }, - { - "repr": "HttpResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + }, + { + "id": 826, + "name": "statusText", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "HttpResponseFailure" - } - } - ] - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "HttpResponseError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 90, - "col": 0, - "byteIndex": 2746 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP response for error responses (4xx/5xx status codes).\n\nServer received and processed the request, but returned an error status." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "HttpResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 827, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 819, + "name": "HttpErrorOptions", + "package": "@probitas-test/client-http" } } ], - "typeName": "HttpResponseBase" + "type": { + "type": "reference", + "target": 822, + "name": "HttpError", + "package": "@probitas-test/client-http" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 92, - "col": 2, - "byteIndex": 2861 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + }, + { + "id": 832, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "jsDoc": { - "doc": "Response was not successful (4xx/5xx)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 95, - "col": 2, - "byteIndex": 2938 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers (null if not available)" } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the HTTP error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 98, - "col": 2, - "byteIndex": 3003 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "HttpError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpError" + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] + } + }, + { + "id": 829, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code (4xx/5xx)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 101, - "col": 2, - "byteIndex": 3070 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "http" }, - { - "name": "statusText", - "jsDoc": { - "doc": "HTTP status text." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 104, - "col": 2, - "byteIndex": 3125 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 828, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 107, - "col": 2, - "byteIndex": 3184 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"HttpError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + }, + { + "id": 830, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code" } - }, - "typeParams": [] + ] }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw Web standard Response." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 110, - "col": 2, - "byteIndex": 3250 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 831, + "name": "statusText", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status text" } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + }, + { + "id": 836, + "name": "arrayBuffer", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 837, + "name": "arrayBuffer", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as ArrayBuffer (null if no body)" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] } } - ] - } - }, - { - "name": "HttpResponseFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 120, - "col": 0, - "byteIndex": 3613 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP response for request failures (network errors, timeouts, etc.).\n\nRequest could not be processed by the server (network error, DNS failure,\nconnection refused, timeout, aborted, etc.)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "HttpResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 838, + "name": "blob", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 839, + "name": "blob", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Get body as Blob (null if no body)" } - ], - "typeName": "HttpResponseBase" + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] } } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server did not process the request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 122, - "col": 2, - "byteIndex": 3736 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "jsDoc": { - "doc": "Request failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 125, - "col": 2, - "byteIndex": 3791 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the failure (ConnectionError, TimeoutError, AbortError)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 128, - "col": 2, - "byteIndex": 3897 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "HttpFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpFailureError" - } - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "No HTTP status (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 131, - "col": 2, - "byteIndex": 3989 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "statusText", - "jsDoc": { - "doc": "No HTTP status text (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 134, - "col": 2, - "byteIndex": 4075 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "No headers (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 137, - "col": 2, - "byteIndex": 4156 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { + }, + { + "id": 834, + "name": "body", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 835, "name": "body", - "jsDoc": { - "doc": "No body (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 140, - "col": 2, - "byteIndex": 4231 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "raw", - "jsDoc": { - "doc": "No raw response (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 143, - "col": 2, - "byteIndex": 4311 + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response body as raw bytes (null if no body)" + } + ] }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + }, + { + "id": 842, + "name": "json", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 843, + "name": "json", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as parsed JSON (null if no body)." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "SyntaxError if body is not valid JSON" + } + ] + } + ] }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + }, + { + "id": 840, + "name": "text", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 841, + "name": "text", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as text (null if no body)" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] } } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] }, { - "name": "HttpResponseSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 61, - "col": 0, - "byteIndex": 1949 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP response for successful requests (2xx status codes).\n\nWraps Web standard Response, allowing body to be read synchronously\nand multiple times (unlike the streaming-based standard Response)." + "id": 844, + "name": "HttpNetworkError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a network-level failure occurs.\n\nThis error indicates that the request could not be processed by the server\ndue to network issues (connection refused, DNS resolution failure, etc.)." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "HttpResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "children": [ + { + "id": 845, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 846, + "name": "HttpNetworkError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 847, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 848, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" } } ], - "typeName": "HttpResponseBase" + "type": { + "type": "reference", + "target": 844, + "name": "HttpNetworkError", + "package": "@probitas-test/client-http" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 63, - "col": 2, - "byteIndex": 2066 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + }, + { + "id": 850, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "jsDoc": { - "doc": "Response was successful (2xx)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 66, - "col": 2, - "byteIndex": 2135 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "network" }, - { - "name": "error", - "jsDoc": { - "doc": "No error for successful responses." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 69, - "col": 2, - "byteIndex": 2201 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code (200-299)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 72, - "col": 2, - "byteIndex": 2263 - }, - "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.8.0/response.ts", - "line": 75, - "col": 2, - "byteIndex": 2318 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 849, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 78, - "col": 2, - "byteIndex": 2377 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "HttpNetworkError" }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw Web standard Response." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 81, - "col": 2, - "byteIndex": 2443 - }, - "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" - } + "defaultValue": "\"HttpNetworkError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] }, { - "name": "QueryValue", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 23, - "col": 0, - "byteIndex": 366 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Query parameter value type." + "id": 754, + "name": "CookieConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Cookie handling configuration." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - } - ] + "children": [ + { + "id": 755, + "name": "disabled", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Disable automatic cookie handling.\nWhen disabled, cookies are not stored or sent automatically." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } }, - "typeParams": [] - } + { + "id": 756, + "name": "initial", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Initial cookies to populate the cookie jar." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] }, { - "name": "BodyInit", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 28, - "col": 0, - "byteIndex": 449 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Request body type." + "id": 774, + "name": "HttpClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP client interface." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - { - "repr": "FormData", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "FormData" + "children": [ + { + "id": 775, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration" } - }, + ] + }, + "type": { + "type": "reference", + "target": 764, + "name": "HttpClientConfig", + "package": "@probitas-test/client-http" + } + }, + { + "id": 815, + "name": "clearCookies", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "URLSearchParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "URLSearchParams" + "id": 816, + "name": "clearCookies", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Clear all cookies from the cookie jar.\nNo-op if cookies are disabled." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "void" } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } ] }, - "typeParams": [] - } - }, - { - "name": "RedirectMode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 41, - "col": 0, - "byteIndex": 732 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redirect handling mode.\n- \"follow\": Automatically follow redirects (default)\n- \"manual\": Return redirect response without following\n- \"error\": Throw error on redirect" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + { + "id": 817, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "follow", - "kind": "literal", - "literal": { - "kind": "string", - "string": "follow" - } - }, - { - "repr": "manual", - "kind": "literal", - "literal": { - "kind": "string", - "string": "manual" - } - }, - { - "repr": "error", - "kind": "literal", - "literal": { - "kind": "string", - "string": "error" + "id": 818, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the client and release resources" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [] - } - }, - { - "name": "QueryParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 46, - "col": 0, - "byteIndex": 867 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Query parameters type - accepts URLSearchParams or plain object." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + { + "id": 796, + "name": "delete", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "URLSearchParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "URLSearchParams" - } - }, - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 797, + "name": "delete", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Send DELETE request" + } + ] + }, + "parameters": [ + { + "id": 798, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 799, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true }, + "type": { + "type": "reference", + "target": 745, + "name": "HttpRequestOptions", + "package": "@probitas-test/client-http" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "QueryValue", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QueryValue" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "QueryValue", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QueryValue" - } - } - } - ] + "type": "reference", + "target": 939, + "name": "HttpResponse", + "package": "@probitas-test/client-http" } ], - "typeName": "Record" + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [] - } - }, - { - "name": "HttpOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 53, - "col": 0, - "byteIndex": 1010 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual HTTP requests." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "query", - "jsDoc": { - "doc": "Query parameters (arrays for multi-value params)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 55, - "col": 2, - "byteIndex": 1123 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "QueryParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QueryParams" - } - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "Additional request headers" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 58, - "col": 2, - "byteIndex": 1192 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" - } - }, - "typeParams": [] - }, - { - "name": "redirect", - "jsDoc": { - "doc": "Redirect handling mode.", - "tags": [ + { + "id": 776, + "name": "get", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 777, + "name": "get", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send GET request" + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"follow\" (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 64, - "col": 2, - "byteIndex": 1339 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "RedirectMode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedirectMode" - } - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw HttpError for non-2xx responses.\nWhen false, non-2xx responses are returned as HttpResponse.", - "tags": [ + "id": 778, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" + "id": 779, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 737, + "name": "HttpOptions", + "package": "@probitas-test/client-http" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 71, - "col": 2, - "byteIndex": 1576 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpRequestOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 77, - "col": 0, - "byteIndex": 1674 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for HTTP requests that may include a body." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "HttpOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "body", - "jsDoc": { - "doc": "Request body" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 79, - "col": 2, - "byteIndex": 1756 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "BodyInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "BodyInit" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 939, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "CookieConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 85, - "col": 0, - "byteIndex": 1827 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Cookie handling configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "disabled", - "jsDoc": { - "doc": "Disable automatic cookie handling.\nWhen disabled, cookies are not stored or sent automatically.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 91, - "col": 2, - "byteIndex": 1999 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "initial", - "jsDoc": { - "doc": "Initial cookies to populate the cookie jar." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 96, - "col": 2, - "byteIndex": 2092 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 809, + "name": "getCookies", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 810, + "name": "getCookies", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Get all cookies in the cookie jar.\nReturns empty object if cookies are disabled." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 104, - "col": 0, - "byteIndex": 2245 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP connection configuration.\n\nExtends CommonConnectionConfig with HTTP-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "protocol", - "jsDoc": { - "doc": "Protocol to use.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"http\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 109, - "col": 2, - "byteIndex": 2373 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ] + }, + { + "id": 780, + "name": "head", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 781, + "name": "head", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send HEAD request" + } + ] + }, + "parameters": [ { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" + "id": 782, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "https", - "kind": "literal", - "literal": { - "kind": "string", - "string": "https" + "id": 783, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 737, + "name": "HttpOptions", + "package": "@probitas-test/client-http" } } - ] - }, - "typeParams": [] - }, - { - "name": "path", - "jsDoc": { - "doc": "Base path prefix for all requests.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 115, - "col": 2, - "byteIndex": 2483 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 121, - "col": 0, - "byteIndex": 2548 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP client configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "Base URL for all requests.\n\nCan be a URL string or a connection configuration object.\n", - "tags": [ - { - "kind": "example", - "doc": "String URL\n```ts\nimport type { HttpClientConfig } from \"@probitas-test/client-http\";\nconst config: HttpClientConfig = { url: \"http://localhost:3000\" };\n```\n" - }, - { - "kind": "example", - "doc": "Connection config object\n```ts\nimport type { HttpClientConfig } from \"@probitas-test/client-http\";\nconst config: HttpClientConfig = {\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n};\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 141, - "col": 2, - "byteIndex": 3171 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, - { - "repr": "HttpConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpConnectionConfig" + "typeArguments": [ + { + "type": "reference", + "target": 939, + "name": "HttpResponse", + "package": "@probitas-test/client-http" } - } - ] - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "Default headers for all requests" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 144, - "col": 2, - "byteIndex": 3261 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" - } - }, - "typeParams": [] - }, - { - "name": "fetch", - "jsDoc": { - "doc": "Custom fetch implementation (for testing/mocking)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 147, - "col": 2, - "byteIndex": 3355 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Fetch", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Fetch" - } - }, - "typeParams": [] - }, - { - "name": "redirect", - "jsDoc": { - "doc": "Default redirect handling mode.\nCan be overridden per-request via HttpOptions.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"follow\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 154, - "col": 2, - "byteIndex": 3506 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "RedirectMode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedirectMode" - } - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw HttpError for non-2xx responses.\nCan be overridden per-request via HttpOptions.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 161, - "col": 2, - "byteIndex": 3682 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "cookies", - "jsDoc": { - "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.8.0/types.ts", - "line": 169, - "col": 2, - "byteIndex": 3922 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "CookieConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CookieConfig" + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 175, - "col": 0, - "byteIndex": 3992 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP client interface." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" } - } - ], - "constructors": [], - "methods": [ - { - "name": "get", - "jsDoc": { - "doc": "Send GET request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 180, - "col": 2, - "byteIndex": 4142 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 800, + "name": "options", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 801, + "name": "options", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + "kind": "text", + "text": "Send OPTIONS request" } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "head", - "jsDoc": { - "doc": "Send HEAD request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 183, - "col": 2, - "byteIndex": 4237 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpOptions" + "parameters": [ + { + "id": 802, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 803, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 737, + "name": "HttpOptions", + "package": "@probitas-test/client-http" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + "type": "reference", + "target": 939, + "name": "HttpResponse", + "package": "@probitas-test/client-http" } ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "post", - "jsDoc": { - "doc": "Send POST request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 186, - "col": 2, - "byteIndex": 4333 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpRequestOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpRequestOptions" - } - } + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 792, + "name": "patch", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 793, + "name": "patch", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + "kind": "text", + "text": "Send PATCH request" } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "put", - "jsDoc": { - "doc": "Send PUT request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 189, - "col": 2, - "byteIndex": 4435 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpRequestOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpRequestOptions" + "parameters": [ + { + "id": 794, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 795, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 745, + "name": "HttpRequestOptions", + "package": "@probitas-test/client-http" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + "type": "reference", + "target": 939, + "name": "HttpResponse", + "package": "@probitas-test/client-http" } ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "patch", - "jsDoc": { - "doc": "Send PATCH request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 192, - "col": 2, - "byteIndex": 4538 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpRequestOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpRequestOptions" - } - } + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 784, + "name": "post", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 785, + "name": "post", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + "kind": "text", + "text": "Send POST request" } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "delete", - "jsDoc": { - "doc": "Send DELETE request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 195, - "col": 2, - "byteIndex": 4644 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpRequestOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpRequestOptions" + "parameters": [ + { + "id": 786, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 787, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 745, + "name": "HttpRequestOptions", + "package": "@probitas-test/client-http" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + "type": "reference", + "target": 939, + "name": "HttpResponse", + "package": "@probitas-test/client-http" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "options", - "jsDoc": { - "doc": "Send OPTIONS request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 198, - "col": 2, - "byteIndex": 4752 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + } + ] + }, + { + "id": 788, + "name": "put", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 789, + "name": "put", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send PUT request" + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpOptions" + "parameters": [ + { + "id": 790, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 791, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 745, + "name": "HttpRequestOptions", + "package": "@probitas-test/client-http" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + "type": "reference", + "target": 939, + "name": "HttpResponse", + "package": "@probitas-test/client-http" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "request", - "jsDoc": { - "doc": "Send request with arbitrary method" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 201, - "col": 2, - "byteIndex": 4868 - }, - "params": [ - { - "kind": "identifier", - "name": "method", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + } + ] + }, + { + "id": 804, + "name": "request", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 805, + "name": "request", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send request with arbitrary method" + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpRequestOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpRequestOptions" + "parameters": [ + { + "id": 806, + "name": "method", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 807, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 808, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 745, + "name": "HttpRequestOptions", + "package": "@probitas-test/client-http" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + "type": "reference", + "target": 939, + "name": "HttpResponse", + "package": "@probitas-test/client-http" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "getCookies", - "jsDoc": { - "doc": "Get all cookies in the cookie jar.\nReturns empty object if cookies are disabled." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 211, - "col": 2, - "byteIndex": 5083 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + } + ] + }, + { + "id": 811, + "name": "setCookie", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 812, + "name": "setCookie", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Set a cookie in the cookie jar." } ], - "typeName": "Record" - } - }, - "typeParams": [] - }, - { - "name": "setCookie", - "jsDoc": { - "doc": "Set a cookie in the cookie jar.", - "tags": [ - { - "kind": "throws", - "type": null, - "doc": "Error if cookies are disabled" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 217, - "col": 2, - "byteIndex": 5216 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "typeParams": [] - }, - { - "name": "clearCookies", - "jsDoc": { - "doc": "Clear all cookies from the cookie jar.\nNo-op if cookies are disabled." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 223, - "col": 2, - "byteIndex": 5357 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "typeParams": [] - }, - { - "name": "close", - "jsDoc": { - "doc": "Close the client and release resources" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 226, - "col": 2, - "byteIndex": 5430 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if cookies are disabled" + } + ] } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "Client configuration" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 177, - "col": 2, - "byteIndex": 4078 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "HttpClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpClientConfig" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 43, - "col": 0, - "byteIndex": 936 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for creating an HttpError." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "body", - "jsDoc": { - "doc": "Response body as raw bytes" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 45, - "col": 2, - "byteIndex": 1031 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ] + }, + "parameters": [ { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + "id": 813, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1094 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "id": 814, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "HttpError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 71, - "col": 0, - "byteIndex": 1776 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP error class for non-2xx responses.\n\nThis error is thrown (or returned in response.error) when the server\nresponds with a 4xx or 5xx status code. It includes the response body\nfor inspecting error details.\n", - "tags": [ - { - "kind": "example", - "doc": "Check status code and body\n```ts\nimport { createHttpClient, HttpError } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({ url: \"http://localhost:3000\", throwOnError: true });\ntry {\n await http.get(\"/not-found\");\n} catch (error) {\n if (error instanceof HttpError && error.status === 404) {\n console.log(\"Not found:\", error.text);\n }\n}\n```" + "id": 764, + "name": "HttpClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP client configuration." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "status", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "children": [ + { + "id": 770, + "name": "cookies", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Cookie handling configuration.\nBy default, the client maintains a cookie jar for automatic\ncookie management across requests.\nSet " }, { - "kind": "identifier", - "name": "statusText", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`cookies: { disabled: true }`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpErrorOptions" - } - } + "kind": "text", + "text": " to disable." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 86, - "col": 2, - "byteIndex": 2144 - } + ] + }, + "type": { + "type": "reference", + "target": 754, + "name": "CookieConfig", + "package": "@probitas-test/client-http" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 72, - "col": 2, - "byteIndex": 1823 - } + }, + { + "id": 767, + "name": "fetch", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Custom fetch implementation (for testing/mocking)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 73, - "col": 2, - "byteIndex": 1871 - } + ] }, - { - "jsDoc": { - "doc": "HTTP status code" - }, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1942 - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "Fetch" + }, + "name": "Fetch", + "package": "@probitas-test/client" + } + }, + { + "id": 766, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "jsDoc": { - "doc": "HTTP status text" - }, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusText", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 79, - "col": 2, - "byteIndex": 1996 - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default headers for all requests" + } + ] }, - { - "jsDoc": { - "doc": "Response headers (null if not available)" - }, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 82, - "col": 2, - "byteIndex": 2078 - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" + }, + "name": "HeadersInit", + "package": "typescript" } - ], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Response body as raw bytes (null if no body)" - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "body", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, + }, + { + "id": 768, + "name": "redirect", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default redirect handling mode.\nCan be overridden per-request via HttpOptions." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "code", + "text": "```ts\n\"follow\"\n```" } ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 102, - "col": 2, - "byteIndex": 2623 - } + } + ] }, - { - "jsDoc": { - "doc": "Get body as ArrayBuffer (null if no body)" - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "arrayBuffer", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ArrayBuffer", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ArrayBuffer" - } - }, + "type": { + "type": "reference", + "target": 735, + "name": "RedirectMode", + "package": "@probitas-test/client-http" + } + }, + { + "id": 773, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 772, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 769, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw HttpError for non-2xx responses.\nCan be overridden per-request via HttpOptions." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "code", + "text": "```ts\nfalse\n```" } ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 107, - "col": 2, - "byteIndex": 2742 - } + } + ] }, - { - "jsDoc": { - "doc": "Get body as Blob (null if no body)" - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "blob", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Blob", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Blob" - } - }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 771, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + }, + { + "id": 765, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base URL for all requests.\n\nCan be a URL string or a connection configuration object." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "String URL", + "content": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "code", + "text": "```ts\nimport type { HttpClientConfig } from \"@probitas-test/client-http\";\nconst config: HttpClientConfig = { url: \"http://localhost:3000\" };\n```" } ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 112, - "col": 2, - "byteIndex": 2868 - } - }, - { - "jsDoc": { - "doc": "Get body as text (null if no body)" - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "text", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + { + "tag": "@example", + "name": "Connection config object", + "content": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "code", + "text": "```ts\nimport type { HttpClientConfig } from \"@probitas-test/client-http\";\nconst config: HttpClientConfig = {\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n};\n```" } ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 117, - "col": 2, - "byteIndex": 2973 - } + } + ] }, - { - "jsDoc": { - "doc": "Get body as parsed JSON (null if no body).", - "tags": [ - { - "kind": "throws", - "type": null, - "doc": "SyntaxError if body is not valid JSON" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "json", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 125, - "col": 2, - "byteIndex": 3147 - } + { + "type": "reference", + "target": 757, + "name": "HttpConnectionConfig", + "package": "@probitas-test/client-http" + } + ] } - ], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "HttpNetworkError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 136, - "col": 0, - "byteIndex": 3423 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a network-level failure occurs.\n\nThis error indicates that the request could not be processed by the server\ndue to network issues (connection refused, DNS resolution failure, etc.)." + "id": 757, + "name": "HttpConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP connection configuration.\n\nExtends CommonConnectionConfig with HTTP-specific options." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 760, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } + "kind": "text", + "text": "Hostname or IP address." } ], - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 140, - "col": 2, - "byteIndex": 3572 - } + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 137, - "col": 2, - "byteIndex": 3477 - } + }, + { + "id": 763, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "network", - "kind": "literal", - "literal": { - "kind": "string", - "string": "network" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 138, - "col": 2, - "byteIndex": 3524 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "HttpFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 149, - "col": 0, - "byteIndex": 3814 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "HttpNetworkError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpNetworkError" + }, + { + "id": 759, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base path prefix for all requests." } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"\"\n```" + } + ] } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 761, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } }, - "typeParams": [] - } + { + "id": 758, + "name": "protocol", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Protocol to use." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"http\"\n```" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "http" + }, + { + "type": "literal", + "value": "https" + } + ] + } + }, + { + "id": 762, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] }, { - "name": "createHttpClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/client.ts", - "line": 435, - "col": 0, - "byteIndex": 12249 + "id": 819, + "name": "HttpErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for creating an HttpError." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new HTTP client instance.\n\nThe client provides methods for making HTTP requests with automatic\ncookie handling, response body pre-loading, and error handling.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- Client configuration including URL and default options" + "children": [ + { + "id": 820, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "kind": "return", - "doc": "A new HTTP client instance\n" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response body as raw bytes" + } + ] }, - { - "kind": "example", - "doc": "Basic usage with string URL\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({ url: \"http://localhost:3000\" });\n\nconst response = await http.get(\"/users/123\");\nconsole.log(response.json);\n\nawait http.close();\n```\n" + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 821, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "kind": "example", - "doc": "With connection config object\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n});\nawait http.close();\n```\n" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers" + } + ] }, - { - "kind": "example", - "doc": "With default headers\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({\n url: \"http://localhost:3000\",\n headers: {\n \"Authorization\": \"Bearer token123\",\n \"Accept\": \"application/json\",\n },\n});\nawait http.close();\n```\n" + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ] + }, + { + "id": 737, + "name": "HttpOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for individual HTTP requests." + } + ] + }, + "children": [ + { + "id": 739, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional request headers" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" + }, + "name": "HeadersInit", + "package": "typescript" + } + }, + { + "id": 738, + "name": "query", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query parameters (arrays for multi-value params)" + } + ] + }, + "type": { + "type": "reference", + "target": 736, + "name": "QueryParams", + "package": "@probitas-test/client-http" + } + }, + { + "id": 740, + "name": "redirect", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redirect handling mode." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"follow\" (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 735, + "name": "RedirectMode", + "package": "@probitas-test/client-http" + } + }, + { + "id": 744, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 743, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 741, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw HttpError for non-2xx responses.\nWhen false, non-2xx responses are returned as HttpResponse." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 742, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 745, + "name": "HttpRequestOptions" + } + ] + }, + { + "id": 745, + "name": "HttpRequestOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for HTTP requests that may include a body." + } + ] + }, + "children": [ + { + "id": 746, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request body" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + }, + { + "id": 748, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional request headers" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" + }, + "name": "HeadersInit", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 739, + "name": "HttpOptions.headers" + } + }, + { + "id": 747, + "name": "query", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query parameters (arrays for multi-value params)" + } + ] + }, + "type": { + "type": "reference", + "target": 736, + "name": "QueryParams", + "package": "@probitas-test/client-http" + }, + "inheritedFrom": { + "type": "reference", + "target": 738, + "name": "HttpOptions.query" + } + }, + { + "id": 749, + "name": "redirect", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redirect handling mode." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"follow\" (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 735, + "name": "RedirectMode", + "package": "@probitas-test/client-http" + }, + "inheritedFrom": { + "type": "reference", + "target": 740, + "name": "HttpOptions.redirect" + } + }, + { + "id": 753, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 744, + "name": "HttpOptions.retry" + } + }, + { + "id": 752, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 743, + "name": "HttpOptions.signal" + } + }, + { + "id": 750, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw HttpError for non-2xx responses.\nWhen false, non-2xx responses are returned as HttpResponse." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 741, + "name": "HttpOptions.throwOnError" + } + }, + { + "id": 751, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 742, + "name": "HttpOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 737, + "name": "HttpOptions", + "package": "@probitas-test/client-http" + } + ] + }, + { + "id": 941, + "name": "HttpResponseError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response for error responses (4xx/5xx status codes).\n\nServer received and processed the request, but returned an error status." + } + ] + }, + "children": [ + { + "id": 954, + "name": "arrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as ArrayBuffer (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 971, + "name": "HttpResponseBase.arrayBuffer", + "package": "@probitas-test/client-http" + } + }, + { + "id": 955, + "name": "blob", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as Blob (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 972, + "name": "HttpResponseBase.blob", + "package": "@probitas-test/client-http" + } + }, + { + "id": 953, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response body as raw bytes (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 987, + "name": "HttpResponseBase.body", + "package": "@probitas-test/client-http" + } + }, + { + "id": 951, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 969, + "name": "HttpResponseBase.duration", + "package": "@probitas-test/client-http" + } + }, + { + "id": 945, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the HTTP error." + } + ] + }, + "type": { + "type": "reference", + "target": 822, + "name": "HttpError", + "package": "@probitas-test/client-http" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.error", + "package": "@probitas-test/client-http" + } + }, + { + "id": 948, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 957, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as parsed JSON (null if no body or failure)." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "SyntaxError if body is not valid JSON" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 942, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseError.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.json", + "package": "@probitas-test/client-http" + } + }, + { + "id": 950, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"http\"`" + }, + { + "kind": "text", + "text": " for HTTP responses." + } + ] + }, + "type": { + "type": "literal", + "value": "http" + }, + "inheritedFrom": { + "type": "reference", + "target": 968, + "name": "HttpResponseBase.kind", + "package": "@probitas-test/client-http" + } + }, + { + "id": 944, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response was not successful (4xx/5xx)." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.ok", + "package": "@probitas-test/client-http" + } + }, + { + "id": 943, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the request." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.processed", + "package": "@probitas-test/client-http" + } + }, + { + "id": 949, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw Web standard Response." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.raw", + "package": "@probitas-test/client-http" + } + }, + { + "id": 946, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code (4xx/5xx)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 947, + "name": "statusText", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status text." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 956, + "name": "text", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as text (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 973, + "name": "HttpResponseBase.text", + "package": "@probitas-test/client-http" + } + }, + { + "id": 952, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 970, + "name": "HttpResponseBase.url", + "package": "@probitas-test/client-http" + } + } + ], + "typeParameters": [ + { + "id": 942, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-http", + "packagePath": "response.ts", + "qualifiedName": "HttpResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 942, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseError.T", + "refersToTypeParameter": true + } + ], + "name": "HttpResponseBase", + "package": "@probitas-test/client-http" + } + ] + }, + { + "id": 958, + "name": "HttpResponseFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response for request failures (network errors, timeouts, etc.).\n\nRequest could not be processed by the server (network error, DNS failure,\nconnection refused, timeout, aborted, etc.)." + } + ] + }, + "children": [ + { + "id": 971, + "name": "arrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as ArrayBuffer (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.arrayBuffer" + } + }, + { + "id": 972, + "name": "blob", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as Blob (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.blob" + } + }, + { + "id": 966, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No body (request didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.body" + } + }, + { + "id": 969, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.duration" + } + }, + { + "id": 962, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the failure (ConnectionError, TimeoutError, AbortError)." + } + ] + }, + "type": { + "type": "reference", + "target": 851, + "name": "HttpFailureError", + "package": "@probitas-test/client-http" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.error", + "package": "@probitas-test/client-http" + } + }, + { + "id": 965, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No headers (request didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 974, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as parsed JSON (null if no body or failure)." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "SyntaxError if body is not valid JSON" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 959, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseFailure.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.json", + "package": "@probitas-test/client-http" + } + }, + { + "id": 968, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"http\"`" + }, + { + "kind": "text", + "text": " for HTTP responses." + } + ] + }, + "type": { + "type": "literal", + "value": "http" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.kind" + } + }, + { + "id": 961, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request failed." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.ok", + "package": "@probitas-test/client-http" + } + }, + { + "id": 960, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server did not process the request." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.processed", + "package": "@probitas-test/client-http" + } + }, + { + "id": 967, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No raw response (request didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.raw", + "package": "@probitas-test/client-http" + } + }, + { + "id": 963, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No HTTP status (request didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 964, + "name": "statusText", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No HTTP status text (request didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 973, + "name": "text", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as text (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/health\");\nconsole.log(response.ok);\n```" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.text" } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "HttpClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpClientConfig" + }, + { + "id": 970, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.url" } - ], - "returnType": { - "repr": "HttpClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpClient" + } + ], + "typeParameters": [ + { + "id": 959, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-http", + "packagePath": "response.ts", + "qualifiedName": "HttpResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 959, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseFailure.T", + "refersToTypeParameter": true + } + ], + "name": "HttpResponseBase", + "package": "@probitas-test/client-http" + } + ] }, { - "name": "HttpResponseSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 194, - "col": 0, - "byteIndex": 6036 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of HttpResponseSuccess.", - "tags": [ - { - "kind": "internal" + "id": 975, + "name": "HttpResponseSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response for successful requests (2xx status codes).\n\nWraps Web standard Response, allowing body to be read synchronously\nand multiple times (unlike the streaming-based standard Response)." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "raw", - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - } - }, + "children": [ + { + "id": 988, + "name": "arrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "body", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } + "kind": "text", + "text": "Get body as ArrayBuffer (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 209, - "col": 2, - "byteIndex": 6459 - } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.arrayBuffer" } - ], - "properties": [ - { - "tsType": { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" + }, + { + "id": 989, + "name": "blob", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as Blob (null if no body or failure)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 196, - "col": 2, - "byteIndex": 6122 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 197, - "col": 2, - "byteIndex": 6157 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.blob" + } + }, + { + "id": 987, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response body as raw bytes (null if no body or failure)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 198, - "col": 2, - "byteIndex": 6195 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 199, - "col": 2, - "byteIndex": 6226 - } + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 200, - "col": 2, - "byteIndex": 6251 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.body" + } + }, + { + "id": 985, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusText", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 201, - "col": 2, - "byteIndex": 6278 - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." + } + ] }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.duration" + } + }, + { + "id": 979, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No error for successful responses." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 202, - "col": 2, - "byteIndex": 6309 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 203, - "col": 2, - "byteIndex": 6338 - } + "type": { + "type": "literal", + "value": null }, - { - "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-http/0.8.0/response.ts", - "line": 204, - "col": 2, - "byteIndex": 6362 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.error", + "package": "@probitas-test/client-http" } - ], - "indexSignatures": [], - "methods": [ - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "body", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 223, - "col": 2, - "byteIndex": 6791 - } + }, + { + "id": 982, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "arrayBuffer", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ArrayBuffer", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ArrayBuffer" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 227, - "col": 2, - "byteIndex": 6859 - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers." + } + ] }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "blob", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Blob", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Blob" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 231, - "col": 2, - "byteIndex": 6941 - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 991, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "text", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as parsed JSON (null if no body or failure)." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "text", + "text": "SyntaxError if body is not valid JSON" } ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 235, - "col": 2, - "byteIndex": 7002 - } + } + ] }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "json", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 976, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseSuccess.T", + "refersToTypeParameter": true }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 239, - "col": 2, - "byteIndex": 7065 - } + { + "type": "literal", + "value": null + } + ] }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.json", + "package": "@probitas-test/client-http" + } + }, + { + "id": 984, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 243, - "col": 2, - "byteIndex": 7135 - } + { + "kind": "code", + "text": "`\"http\"`" + }, + { + "kind": "text", + "text": " for HTTP responses." + } + ] + }, + "type": { + "type": "literal", + "value": "http" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.kind" } - ], - "extends": null, - "implements": [ - { - "repr": "HttpResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "HttpResponseSuccess" - } + }, + { + "id": 978, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response was successful (2xx)." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.ok", + "package": "@probitas-test/client-http" } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 977, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the request." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.processed", + "package": "@probitas-test/client-http" } - ], - "superTypeParams": [] - } - }, - { - "name": "HttpResponseErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 254, - "col": 0, - "byteIndex": 7426 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of HttpResponseError.\nProxies body methods to the HttpError instance.", - "tags": [ - { - "kind": "internal" + }, + { + "id": 983, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw Web standard Response." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.raw", + "package": "@probitas-test/client-http" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "raw", - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - } - }, + }, + { + "id": 980, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, + "kind": "text", + "text": "HTTP status code (200-299)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 981, + "name": "statusText", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "HttpError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpError" - } - } + "kind": "text", + "text": "HTTP status text." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 267, - "col": 2, - "byteIndex": 7820 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [ - { - "tsType": { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" + }, + { + "id": 990, + "name": "text", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as text (null if no body or failure)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 255, - "col": 2, - "byteIndex": 7506 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 256, - "col": 2, - "byteIndex": 7541 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.text" + } + }, + { + "id": 986, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 257, - "col": 2, - "byteIndex": 7579 + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.url" + } + } + ], + "typeParameters": [ + { + "id": 976, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-http", + "packagePath": "response.ts", + "qualifiedName": "HttpResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 976, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseSuccess.T", + "refersToTypeParameter": true } + ], + "name": "HttpResponseBase", + "package": "@probitas-test/client-http" + } + ] + }, + { + "id": 734, + "name": "BodyInit", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request body type." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, { - "tsType": { - "repr": "HttpError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpError" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 258, - "col": 2, - "byteIndex": 7611 - } + "name": "Uint8Array", + "package": "typescript" }, { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "FormData" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 259, - "col": 2, - "byteIndex": 7640 - } + "name": "FormData", + "package": "typescript" }, { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "URLSearchParams" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusText", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 260, - "col": 2, - "byteIndex": 7667 - } + "name": "URLSearchParams", + "package": "typescript" }, { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 261, - "col": 2, - "byteIndex": 7698 - } + "type": "intrinsic", + "name": "unknown" + } + ] + } + }, + { + "id": 851, + "name": "HttpFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the server." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 844, + "name": "HttpNetworkError", + "package": "@probitas-test/client-http" }, { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 262, - "col": 2, - "byteIndex": 7727 - } + "name": "AbortError", + "package": "@probitas-test/client" }, { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 263, - "col": 2, - "byteIndex": 7751 - } + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "indexSignatures": [], - "methods": [ - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "body", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 282, - "col": 2, - "byteIndex": 8151 - } + ] + } + }, + { + "id": 939, + "name": "HttpResponse", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response union type representing all possible response states.\n\n- **Success (2xx)**: " }, { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "arrayBuffer", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ArrayBuffer", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ArrayBuffer" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 286, - "col": 2, - "byteIndex": 8218 - } + "kind": "code", + "text": "`processed: true, ok: true, error: null`" }, { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "blob", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Blob", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Blob" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 290, - "col": 2, - "byteIndex": 8300 - } + "kind": "text", + "text": "\n- **Error (4xx/5xx)**: " }, { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "text", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 294, - "col": 2, - "byteIndex": 8361 - } + "kind": "code", + "text": "`processed: true, ok: false, error: HttpError`" }, { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "json", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 298, - "col": 2, - "byteIndex": 8424 - } + "kind": "text", + "text": "\n- **Failure (network error)**: " }, { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 302, - "col": 2, - "byteIndex": 8494 - } + "kind": "code", + "text": "`processed: false, ok: false, error: Error`" } ], - "extends": null, - "implements": [ + "blockTags": [ { - "repr": "HttpResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "HttpResponseError" - } + "tag": "@example", + "name": "Type narrowing by ok", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.ok) {\n // TypeScript knows: HttpResponseSuccess\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseError | HttpResponseFailure\n console.log(response.error); // Error\n}\n```" + } + ] + }, + { + "tag": "@example", + "name": "Type narrowing by processed", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.processed) {\n // TypeScript knows: HttpResponseSuccess | HttpResponseError\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseFailure\n console.log(response.error); // Error (network error)\n}\n```" + } + ] } - ], - "typeParams": [ + ] + }, + "typeParameters": [ + { + "id": 940, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 975, + "typeArguments": [ + { + "type": "reference", + "target": 940, + "name": "T", + "package": "@probitas-test/client-http", + "refersToTypeParameter": true + } + ], + "name": "HttpResponseSuccess", + "package": "@probitas-test/client-http" + }, { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "type": "reference", + "target": 941, + "typeArguments": [ + { + "type": "reference", + "target": 940, + "name": "T", + "package": "@probitas-test/client-http", + "refersToTypeParameter": true + } + ], + "name": "HttpResponseError", + "package": "@probitas-test/client-http" + }, + { + "type": "reference", + "target": 958, + "typeArguments": [ + { + "type": "reference", + "target": 940, + "name": "T", + "package": "@probitas-test/client-http", + "refersToTypeParameter": true + } + ], + "name": "HttpResponseFailure", + "package": "@probitas-test/client-http" } - ], - "superTypeParams": [] + ] } }, { - "name": "HttpResponseFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 312, - "col": 0, - "byteIndex": 8736 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of HttpResponseFailure.", - "tags": [ - { - "kind": "internal" + "id": 736, + "name": "QueryParams", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query parameters type - accepts URLSearchParams or plain object." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "URLSearchParams" + }, + "name": "URLSearchParams", + "package": "typescript" + }, { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "url", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "HttpFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpFailureError" + "type": "union", + "types": [ + { + "type": "reference", + "target": 733, + "name": "QueryValue", + "package": "@probitas-test/client-http" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": 733, + "name": "QueryValue", + "package": "@probitas-test/client-http" + } } - } + ] } ], - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 331, - "col": 2, - "byteIndex": 9252 - } + "name": "Record", + "package": "typescript" } - ], - "properties": [ - { - "tsType": { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 314, - "col": 2, - "byteIndex": 8822 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 315, - "col": 2, - "byteIndex": 8857 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 316, - "col": 2, - "byteIndex": 8896 - } - }, - { - "tsType": { - "repr": "HttpFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 317, - "col": 2, - "byteIndex": 8928 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 318, - "col": 2, - "byteIndex": 8964 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusText", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 319, - "col": 2, - "byteIndex": 8990 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 320, - "col": 2, - "byteIndex": 9020 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 321, - "col": 2, - "byteIndex": 9047 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "body", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 322, - "col": 2, - "byteIndex": 9071 - } - }, + ] + } + }, + { + "id": 733, + "name": "QueryValue", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query parameter value type." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "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-http/0.8.0/response.ts", - "line": 323, - "col": 2, - "byteIndex": 9095 - } + "type": "intrinsic", + "name": "string" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "arrayBuffer", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 325, - "col": 2, - "byteIndex": 9125 - } + "type": "intrinsic", + "name": "number" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "blob", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 326, - "col": 2, - "byteIndex": 9156 - } - }, + "type": "intrinsic", + "name": "boolean" + } + ] + } + }, + { + "id": 735, + "name": "RedirectMode", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redirect handling mode.\n- \"follow\": Automatically follow redirects (default)\n- \"manual\": Return redirect response without following\n- \"error\": Throw error on redirect" + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "text", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 327, - "col": 2, - "byteIndex": 9180 - } + "type": "literal", + "value": "follow" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "json", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 328, - "col": 2, - "byteIndex": 9204 - } + "type": "literal", + "value": "manual" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 329, - "col": 2, - "byteIndex": 9228 - } + "type": "literal", + "value": "error" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "HttpResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ] + } + }, + { + "id": 852, + "name": "createHttpClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 853, + "name": "createHttpClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new HTTP client instance.\n\nThe client provides methods for making HTTP requests with automatic\ncookie handling, response body pre-loading, and error handling." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A new HTTP client instance" } - } - ], - "typeName": "HttpResponseFailure" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + ] + }, + { + "tag": "@example", + "name": "Basic usage with string URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({ url: \"http://localhost:3000\" });\n\nconst response = await http.get(\"/users/123\");\nconsole.log(response.json);\n\nawait http.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "With connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n});\nawait http.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "With default headers", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({\n url: \"http://localhost:3000\",\n headers: {\n \"Authorization\": \"Bearer token123\",\n \"Accept\": \"application/json\",\n },\n});\nawait http.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/health\");\nconsole.log(response.ok);\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 854, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration including URL and default options" + } + ] + }, + "type": { + "type": "reference", + "target": 764, + "name": "HttpClientConfig", + "package": "@probitas-test/client-http" + } } + ], + "type": { + "type": "reference", + "target": 774, + "name": "HttpClient", + "package": "@probitas-test/client-http" } - ], - "superTypeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-http", + "packageVersion": "0.8.1" } diff --git a/data/api/client-mongodb.json b/data/api/client-mongodb.json index f631ab9..9292ff0 100644 --- a/data/api/client-mongodb.json +++ b/data/api/client-mongodb.json @@ -1,11825 +1,10350 @@ { - "name": "client-mongodb", - "specifier": "@probitas/client-mongodb", - "version": "0.6.1", - "moduleDoc": "MongoDB client for [Probitas](https://github.com/probitas-test/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-test/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\" });\nif (insertResult.ok) {\n console.log(\"Inserted ID:\", insertResult.insertedId);\n} else {\n console.error(\"Insert failed:\", insertResult.error.message);\n}\n\n// Find documents\nconst findResult = await users.find({ name: \"Alice\" });\nif (findResult.ok) {\n console.log(\"Found:\", findResult.docs);\n}\n\n// Find one document\nconst user = await users.findOne({ name: \"Alice\" });\nif (user.ok) {\n console.log(\"User:\", user.doc);\n}\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nimport { createMongoClient, type MongoSession } from \"@probitas-test/client-mongodb\";\n\nconst client = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nawait client.transaction(async (session: MongoSession) => {\n const accounts = client.collection(\"accounts\");\n await accounts.updateOne(\n { _id: \"from\" },\n { $inc: { balance: -100 } },\n );\n await accounts.updateOne(\n { _id: \"to\" },\n { $inc: { balance: 100 } },\n );\n});\n\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nawait using client = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst result = await client.collection(\"test\").findOne({});\nconsole.log(result?.doc);\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [MongoDB](https://www.mongodb.com/)\n", - "exports": [ + "schemaVersion": "2.0", + "id": 992, + "name": "@probitas-test/client-mongodb", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB client for [Probitas](https://github.com/probitas-test/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 " + }, + { + "kind": "code", + "text": "`AsyncDisposable`" + }, + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-mongodb\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/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\" });\nif (insertResult.ok) {\n console.log(\"Inserted ID:\", insertResult.insertedId);\n} else {\n console.error(\"Insert failed:\", insertResult.error.message);\n}\n\n// Find documents\nconst findResult = await users.find({ name: \"Alice\" });\nif (findResult.ok) {\n console.log(\"Found:\", findResult.docs);\n}\n\n// Find one document\nconst user = await users.findOne({ name: \"Alice\" });\nif (user.ok) {\n console.log(\"User:\", user.doc);\n}\n\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Transactions\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createMongoClient, type MongoSession } from \"@probitas-test/client-mongodb\";\n\nconst client = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nawait client.transaction(async (session: MongoSession) => {\n const accounts = client.collection(\"accounts\");\n await accounts.updateOne(\n { _id: \"from\" },\n { $inc: { balance: -100 } },\n );\n await accounts.updateOne(\n { _id: \"to\" },\n { $inc: { balance: 100 } },\n );\n});\n\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nawait using client = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst result = await client.collection(\"test\").findOne({});\nconsole.log(result?.doc);\n// Client automatically closed when block exits\n```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client) | Core utilities and types |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [MongoDB](https://www.mongodb.com/)" + } + ] + }, + "children": [ { - "name": "MongoCountResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 370, - "col": 0, - "byteIndex": 9221 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Count result." + "id": 1111, + "name": "MongoConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a MongoDB connection cannot be established." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoCountResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultSuccess" - } - }, - { - "repr": "MongoCountResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultError" - } - }, + "children": [ + { + "id": 1112, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "MongoCountResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultFailure" + "id": 1113, + "name": "MongoConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 1114, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1115, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1100, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": 1111, + "name": "MongoConnectionError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 1104, + "name": "MongoError.constructor" } } - ] + ], + "overwrites": { + "type": "reference", + "target": 1103, + "name": "MongoError.constructor" + } }, - "typeParams": [] - } + { + "id": 1118, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1109, + "name": "MongoError.code" + } + }, + { + "id": 1117, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 1110, + "name": "MongoError.kind" + } + }, + { + "id": 1116, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoConnectionError" + }, + "defaultValue": "\"MongoConnectionError\"", + "overwrites": { + "type": "reference", + "target": 1108, + "name": "MongoError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoDeleteResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 320, - "col": 0, - "byteIndex": 8044 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete result." + "id": 1129, + "name": "MongoDuplicateKeyError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a duplicate key constraint is violated." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "children": [ + { + "id": 1130, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "MongoDeleteResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultSuccess" + "id": 1131, + "name": "MongoDuplicateKeyError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 1132, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1133, + "name": "keyPattern", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1134, + "name": "keyValue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1135, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1100, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": 1129, + "name": "MongoDuplicateKeyError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 1104, + "name": "MongoError.constructor" } - }, - { - "repr": "MongoDeleteResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultError" + } + ], + "overwrites": { + "type": "reference", + "target": 1103, + "name": "MongoError.constructor" + } + }, + { + "id": 1140, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1109, + "name": "MongoError.code" + } + }, + { + "id": 1138, + "name": "keyPattern", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" } - }, - { - "repr": "MongoDeleteResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultFailure" + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1139, + "name": "keyValue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } - } - ] + ], + "name": "Record", + "package": "typescript" + } }, - "typeParams": [] - } + { + "id": 1137, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "duplicate_key" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 1110, + "name": "MongoError.kind" + } + }, + { + "id": 1136, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoDuplicateKeyError" + }, + "defaultValue": "\"MongoDuplicateKeyError\"", + "overwrites": { + "type": "reference", + "target": 1108, + "name": "MongoError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 150, - "col": 0, - "byteIndex": 3747 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the MongoDB server." + "id": 1102, + "name": "MongoError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base error class for MongoDB client errors." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoConnectionError" - } - }, + "children": [ + { + "id": 1103, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" - } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + "id": 1104, + "name": "MongoError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 1105, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1106, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"mongo\"" + }, + { + "id": 1107, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1100, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } } - ] + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } }, - "typeParams": [] - } + { + "id": 1109, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1110, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 1108, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"MongoError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 1111, + "name": "MongoConnectionError" + }, + { + "type": "reference", + "target": 1119, + "name": "MongoQueryError" + }, + { + "type": "reference", + "target": 1129, + "name": "MongoDuplicateKeyError" + }, + { + "type": "reference", + "target": 1141, + "name": "MongoValidationError" + }, + { + "type": "reference", + "target": 1151, + "name": "MongoWriteError" + }, + { + "type": "reference", + "target": 1169, + "name": "MongoNotFoundError" + } + ] }, { - "name": "MongoFindOneResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 106, - "col": 0, - "byteIndex": 2585 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "FindOne result." + "id": 1169, + "name": "MongoNotFoundError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a document is not found (for firstOrThrow, lastOrThrow)." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoFindOneResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResultSuccess" - } - }, + "children": [ + { + "id": 1170, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "MongoFindOneResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "id": 1171, + "name": "MongoNotFoundError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 1172, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "MongoFindOneResultError" - } - }, - { - "repr": "MongoFindOneResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + }, + { + "id": 1173, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1100, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" } - ], - "typeName": "MongoFindOneResultFailure" + } + ], + "type": { + "type": "reference", + "target": 1169, + "name": "MongoNotFoundError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 1104, + "name": "MongoError.constructor" } } - ] + ], + "overwrites": { + "type": "reference", + "target": 1103, + "name": "MongoError.constructor" + } }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } + { + "id": 1176, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1109, + "name": "MongoError.code" } - ] - } + }, + { + "id": 1175, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "not_found" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 1110, + "name": "MongoError.kind" + } + }, + { + "id": 1174, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoNotFoundError" + }, + "defaultValue": "\"MongoNotFoundError\"", + "overwrites": { + "type": "reference", + "target": 1108, + "name": "MongoError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoFindResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 53, - "col": 0, - "byteIndex": 1315 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Query result (find, aggregate)." + "id": 1119, + "name": "MongoQueryError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a MongoDB query fails." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "children": [ + { + "id": 1120, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "MongoFindResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "id": 1121, + "name": "MongoQueryError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 1122, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "MongoFindResultSuccess" - } - }, - { - "repr": "MongoFindResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + }, + { + "id": 1123, + "name": "collection", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "MongoFindResultError" - } - }, - { - "repr": "MongoFindResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + }, + { + "id": 1124, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1100, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" } - ], - "typeName": "MongoFindResultFailure" + } + ], + "type": { + "type": "reference", + "target": 1119, + "name": "MongoQueryError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 1104, + "name": "MongoError.constructor" } } - ] + ], + "overwrites": { + "type": "reference", + "target": 1103, + "name": "MongoError.constructor" + } }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } + { + "id": 1128, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1109, + "name": "MongoError.code" } - ] - } + }, + { + "id": 1127, + "name": "collection", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1126, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "query" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 1110, + "name": "MongoError.kind" + } + }, + { + "id": 1125, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoQueryError" + }, + "defaultValue": "\"MongoQueryError\"", + "overwrites": { + "type": "reference", + "target": 1108, + "name": "MongoError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoInsertManyResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 212, - "col": 0, - "byteIndex": 5317 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Insert many result." + "id": 1141, + "name": "MongoValidationError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when document validation fails." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoInsertManyResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultSuccess" - } - }, + "children": [ + { + "id": 1142, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "MongoInsertManyResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultError" - } - }, - { - "repr": "MongoInsertManyResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultFailure" + "id": 1143, + "name": "MongoValidationError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 1144, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1145, + "name": "validationErrors", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + }, + { + "id": 1146, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1100, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": 1141, + "name": "MongoValidationError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 1104, + "name": "MongoError.constructor" } } - ] + ], + "overwrites": { + "type": "reference", + "target": 1103, + "name": "MongoError.constructor" + } }, - "typeParams": [] - } + { + "id": 1150, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1109, + "name": "MongoError.code" + } + }, + { + "id": 1148, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "validation" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 1110, + "name": "MongoError.kind" + } + }, + { + "id": 1147, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoValidationError" + }, + "defaultValue": "\"MongoValidationError\"", + "overwrites": { + "type": "reference", + "target": 1108, + "name": "MongoError.name" + } + }, + { + "id": 1149, + "name": "validationErrors", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoInsertOneResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 156, - "col": 0, - "byteIndex": 3867 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Insert one result." + "id": 1151, + "name": "MongoWriteError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a write operation fails." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoInsertOneResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultSuccess" - } - }, + "children": [ + { + "id": 1152, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "MongoInsertOneResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultError" - } - }, - { - "repr": "MongoInsertOneResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultFailure" - } + "id": 1153, + "name": "MongoWriteError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 1154, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1155, + "name": "writeErrors", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 1156, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1158, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1157, + "name": "index", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1159, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + } + } + }, + { + "id": 1160, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1100, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": 1151, + "name": "MongoWriteError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 1104, + "name": "MongoError.constructor" + } } - ] + ], + "overwrites": { + "type": "reference", + "target": 1103, + "name": "MongoError.constructor" + } }, - "typeParams": [] - } + { + "id": 1168, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1109, + "name": "MongoError.code" + } + }, + { + "id": 1162, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "write" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 1110, + "name": "MongoError.kind" + } + }, + { + "id": 1161, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoWriteError" + }, + "defaultValue": "\"MongoWriteError\"", + "overwrites": { + "type": "reference", + "target": 1108, + "name": "MongoError.name" + } + }, + { + "id": 1163, + "name": "writeErrors", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 1164, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1166, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1165, + "name": "index", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1167, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 383, - "col": 0, - "byteIndex": 9674 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union of all MongoDB result types." + "id": 1082, + "name": "MongoClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB client interface" + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "children": [ + { + "id": 1083, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 1025, + "name": "MongoClientConfig", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 1098, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoFindResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 1099, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "intrinsic", + "name": "void" } ], - "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" + "name": "Promise", + "package": "typescript" } - }, - { - "repr": "MongoDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResult" - } - }, + } + ] + }, + { + "id": 1084, + "name": "collection", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoFindOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 1085, + "name": "collection", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 1086, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 1006, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Document", + "package": "@probitas-test/client-mongodb" + }, + "default": { + "type": "reference", + "target": 1006, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "parameters": [ + { + "id": 1087, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 1037, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 1086, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } ], - "typeName": "MongoFindOneResult" - } - }, - { - "repr": "MongoCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResult" + "name": "MongoCollection", + "package": "@probitas-test/client-mongodb" } } ] }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "MongoUpdateResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 270, - "col": 0, - "byteIndex": 6825 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Update result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoUpdateResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultSuccess" - } - }, + { + "id": 1088, + "name": "db", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoUpdateResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultError" + "id": 1089, + "name": "db", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1090, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 1082, + "name": "MongoClient", + "package": "@probitas-test/client-mongodb" } - }, + } + ] + }, + { + "id": 1091, + "name": "transaction", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoUpdateResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultFailure" + "id": 1092, + "name": "transaction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 1093, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 1094, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1095, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 1096, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1097, + "name": "session", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1032, + "name": "MongoSession", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1093, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1093, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" } } ] - }, - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "MongoOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 32, - "col": 0, - "byteIndex": 612 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Common options with throwOnError support." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1025, + "name": "MongoClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "kind": "text", + "text": "MongoDB client configuration." } ], - "constructors": [], - "methods": [], - "properties": [ + "blockTags": [ { - "name": "throwOnError", - "jsDoc": { - "doc": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 38, - "col": 2, - "byteIndex": 836 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "tag": "@example", + "name": "Using a connection string", + "content": [ + { + "kind": "code", + "text": "```ts\nconst config: MongoClientConfig = {\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n};\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using a configuration object", + "content": [ + { + "kind": "code", + "text": "```ts\nconst config: MongoClientConfig = {\n url: {\n host: \"localhost\",\n port: 27017,\n username: \"admin\",\n password: \"secret\",\n authSource: \"admin\",\n },\n database: \"testdb\",\n};\n```" + } + ] } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 46, - "col": 0, - "byteIndex": 985 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB connection configuration.\n\nExtends CommonConnectionConfig with MongoDB-specific options." + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" - } + "children": [ + { + "id": 1027, + "name": "database", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Database name to connect to." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "database", - "jsDoc": { - "doc": "Database name to connect to." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 50, - "col": 2, - "byteIndex": 1105 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 1031, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] }, - { - "name": "authSource", - "jsDoc": { - "doc": "Authentication database." + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 55, - "col": 2, - "byteIndex": 1178 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "name": "replicaSet", - "jsDoc": { - "doc": "Replica set name." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 60, - "col": 2, - "byteIndex": 1246 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "inheritedFrom": { + "type": "reference", + "target": 997, + "name": "MongoOptions.retry" + } + }, + { + "id": 1030, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "typeParams": [] + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 996, + "name": "MongoOptions.signal" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "Document", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 67, - "col": 0, - "byteIndex": 1429 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB document type" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + }, + { + "id": 1028, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } ], - "typeName": "Record" + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 994, + "name": "MongoOptions.throwOnError" } }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "Filter", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 74, - "col": 0, - "byteIndex": 1732 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB filter type (simplified for compatibility with mongodb driver)\nAllows query operators like $gte, $lt, $in, etc." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + { + "id": 1029, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "kind": "text", + "text": "Timeout in milliseconds." } - ], - "typeName": "Record" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 995, + "name": "MongoOptions.timeout" } }, - "typeParams": [] - } - }, - { - "name": "UpdateFilter", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 81, - "col": 0, - "byteIndex": 2038 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB update filter type (simplified for compatibility with mongodb driver)\nAllows update operators like $set, $inc, $unset, etc." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + { + "id": 1026, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "MongoDB connection URL or configuration object." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "reference", + "target": 998, + "name": "MongoConnectionConfig", + "package": "@probitas-test/client-mongodb" } - ], - "typeName": "Record" + ] } - }, - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 993, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoFindOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 86, - "col": 0, - "byteIndex": 2119 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB find options" - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1037, + "name": "MongoCollection", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } + "kind": "text", + "text": "MongoDB collection interface" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "sort", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 87, - "col": 2, - "byteIndex": 2178 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "1", - "kind": "literal", - "literal": { - "kind": "number", - "number": 1 - } - }, - { - "repr": "-1", - "kind": "literal", - "literal": { - "kind": "number", - "number": -1 - } - } - ] + ] + }, + "children": [ + { + "id": 1073, + "name": "aggregate", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1074, + "name": "aggregate", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 1075, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 1038, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoCollection.T", + "refersToTypeParameter": true } - ], - "typeName": "Record" - } - }, - "typeParams": [] - }, - { - "name": "limit", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 88, - "col": 2, - "byteIndex": 2220 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "skip", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 89, - "col": 2, - "byteIndex": 2247 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "projection", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 90, - "col": 2, - "byteIndex": 2273 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ], + "parameters": [ + { + "id": 1076, + "name": "pipeline", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 1006, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + }, + { + "id": 1077, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true }, + "type": { + "type": "reference", + "target": 993, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 - } - }, + "type": "reference", + "target": 1645, + "typeArguments": [ { - "repr": "1", - "kind": "literal", - "literal": { - "kind": "number", - "number": 1 - } + "type": "reference", + "target": 1075, + "name": "R", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - ] + ], + "name": "MongoFindResult", + "package": "@probitas-test/client-mongodb" } ], - "typeName": "Record" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoUpdateOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 96, - "col": 0, - "byteIndex": 2355 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB update options" - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "upsert", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 97, - "col": 2, - "byteIndex": 2416 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 125, - "col": 0, - "byteIndex": 2930 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB client configuration.\n", - "tags": [ - { - "kind": "example", - "doc": "Using a connection string\n```ts\nconst config: MongoClientConfig = {\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n};\n```\n" - }, - { - "kind": "example", - "doc": "Using a configuration object\n```ts\nconst config: MongoClientConfig = {\n url: {\n host: \"localhost\",\n port: 27017,\n username: \"admin\",\n password: \"secret\",\n authSource: \"admin\",\n },\n database: \"testdb\",\n};\n```" - } - ] - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "MongoDB connection URL or configuration object." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 129, - "col": 2, - "byteIndex": 3055 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ] + }, + { + "id": 1078, + "name": "countDocuments", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1079, + "name": "countDocuments", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 1080, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1008, + "name": "Filter", + "package": "@probitas-test/client-mongodb" + } }, { - "repr": "MongoConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoConnectionConfig" + "id": 1081, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 993, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" } } - ] - }, - "typeParams": [] - }, - { - "name": "database", - "jsDoc": { - "doc": "Database name to connect to." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 134, - "col": 2, - "byteIndex": 3150 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoSession", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 140, - "col": 0, - "byteIndex": 3236 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB session interface (for transactions)" - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "collection", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 141, - "col": 2, - "byteIndex": 3270 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "MongoCollection", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 1640, + "name": "MongoCountResult", + "package": "@probitas-test/client-mongodb" } ], - "typeName": "MongoCollection" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + } + ] + }, + { + "id": 1069, + "name": "deleteMany", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1070, + "name": "deleteMany", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1071, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1008, + "name": "Filter", + "package": "@probitas-test/client-mongodb" } }, - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + { + "id": 1072, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 993, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1641, + "name": "MongoDeleteResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" } - ] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoCollection", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 147, - "col": 0, - "byteIndex": 3390 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB collection interface" - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "find", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 148, - "col": 2, - "byteIndex": 3447 - }, - "params": [ - { - "kind": "identifier", - "name": "filter", - "optional": true, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" + } + ] + }, + { + "id": 1065, + "name": "deleteOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1066, + "name": "deleteOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1067, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1008, + "name": "Filter", + "package": "@probitas-test/client-mongodb" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoFindOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFindOptions" + }, + { + "id": 1068, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 993, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "MongoFindResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResult" - } + "type": "reference", + "target": 1641, + "name": "MongoDeleteResult", + "package": "@probitas-test/client-mongodb" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "findOne", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 152, - "col": 2, - "byteIndex": 3542 - }, - "params": [ - { - "kind": "identifier", - "name": "filter", - "optional": false, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" + } + ] + }, + { + "id": 1039, + "name": "find", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1040, + "name": "find", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1041, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1008, + "name": "Filter", + "package": "@probitas-test/client-mongodb" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" + }, + { + "id": 1042, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1010, + "name": "MongoFindOptions", + "package": "@probitas-test/client-mongodb" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "MongoFindOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "insertOne", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 156, - "col": 2, - "byteIndex": 3638 - }, - "params": [ - { - "kind": "identifier", - "name": "doc", - "optional": false, - "tsType": { - "repr": "Omit", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "type": "reference", + "target": 1645, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "_id", - "kind": "literal", - "literal": { - "kind": "string", - "string": "_id" - } + "type": "reference", + "target": 1038, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoCollection.T", + "refersToTypeParameter": true } ], - "typeName": "Omit" + "name": "MongoFindResult", + "package": "@probitas-test/client-mongodb" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 1043, + "name": "findOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1044, + "name": "findOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1045, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1008, + "name": "Filter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 1046, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 993, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "MongoInsertOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResult" - } + "type": "reference", + "target": 1643, + "typeArguments": [ + { + "type": "reference", + "target": 1038, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoCollection.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResult", + "package": "@probitas-test/client-mongodb" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "insertMany", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 160, - "col": 2, - "byteIndex": 3740 - }, - "params": [ - { - "kind": "identifier", - "name": "docs", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "Omit", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 1051, + "name": "insertMany", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1052, + "name": "insertMany", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1053, + "name": "docs", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 1038, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoCollection.T", + "refersToTypeParameter": true }, { - "repr": "_id", - "kind": "literal", - "literal": { - "kind": "string", - "string": "_id" - } + "type": "literal", + "value": "_id" } ], - "typeName": "Omit" + "name": "Omit", + "package": "typescript" } } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" + }, + { + "id": 1054, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 993, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "MongoInsertManyResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResult" - } + "type": "reference", + "target": 1647, + "name": "MongoInsertManyResult", + "package": "@probitas-test/client-mongodb" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "updateOne", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 164, - "col": 2, - "byteIndex": 3847 - }, - "params": [ - { - "kind": "identifier", - "name": "filter", - "optional": false, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" + } + ] + }, + { + "id": 1047, + "name": "insertOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1048, + "name": "insertOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1049, + "name": "doc", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1038, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoCollection.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": "_id" + } + ], + "name": "Omit", + "package": "typescript" } - } - }, - { - "kind": "identifier", - "name": "update", - "optional": false, - "tsType": { - "repr": "UpdateFilter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "UpdateFilter" + }, + { + "id": 1050, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 993, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" } } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoUpdateOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoUpdateResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResult" - } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1648, + "name": "MongoInsertOneResult", + "package": "@probitas-test/client-mongodb" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "updateMany", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 169, - "col": 2, - "byteIndex": 3973 - }, - "params": [ - { - "kind": "identifier", - "name": "filter", - "optional": false, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" + } + ] + }, + { + "id": 1060, + "name": "updateMany", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1061, + "name": "updateMany", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1062, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1008, + "name": "Filter", + "package": "@probitas-test/client-mongodb" } - } - }, - { - "kind": "identifier", - "name": "update", - "optional": false, - "tsType": { - "repr": "UpdateFilter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "UpdateFilter" + }, + { + "id": 1063, + "name": "update", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1009, + "name": "UpdateFilter", + "package": "@probitas-test/client-mongodb" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoUpdateOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateOptions" + }, + { + "id": 1064, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1019, + "name": "MongoUpdateOptions", + "package": "@probitas-test/client-mongodb" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "MongoUpdateResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResult" - } + "type": "reference", + "target": 1651, + "name": "MongoUpdateResult", + "package": "@probitas-test/client-mongodb" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "deleteOne", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 174, - "col": 2, - "byteIndex": 4100 - }, - "params": [ - { - "kind": "identifier", - "name": "filter", - "optional": false, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" + } + ] + }, + { + "id": 1055, + "name": "updateOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1056, + "name": "updateOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1057, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1008, + "name": "Filter", + "package": "@probitas-test/client-mongodb" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" + }, + { + "id": 1058, + "name": "update", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1009, + "name": "UpdateFilter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 1059, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1019, + "name": "MongoUpdateOptions", + "package": "@probitas-test/client-mongodb" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "MongoDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResult" - } + "type": "reference", + "target": 1651, + "name": "MongoUpdateResult", + "package": "@probitas-test/client-mongodb" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, + } + ] + } + ], + "typeParameters": [ + { + "id": 1038, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 1006, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ] + }, + { + "id": 998, + "name": "MongoConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "deleteMany", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 178, - "col": 2, - "byteIndex": 4194 - }, - "params": [ - { - "kind": "identifier", - "name": "filter", - "optional": false, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" - } - } - }, + "kind": "text", + "text": "MongoDB connection configuration.\n\nExtends CommonConnectionConfig with MongoDB-specific options." + } + ] + }, + "children": [ + { + "id": 1000, + "name": "authSource", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": "Authentication database." } - }, - "typeParams": [] + ] }, - { - "name": "aggregate", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 182, - "col": 2, - "byteIndex": 4289 - }, - "params": [ - { - "kind": "identifier", - "name": "pipeline", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } - } - }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 999, + "name": "database", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoFindResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - ], - "typeName": "MongoFindResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "R", - "default": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } + "kind": "text", + "text": "Database name to connect to." } ] }, - { - "name": "countDocuments", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 186, - "col": 2, - "byteIndex": 4397 - }, - "params": [ - { - "kind": "identifier", - "name": "filter", - "optional": true, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" - } - } - }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1002, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } + "kind": "text", + "text": "Hostname or IP address." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "MongoCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResult" - } + "kind": "code", + "text": "```ts\n\"localhost\"\n```" } - ], - "typeName": "Promise" + ] } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + }, + { + "id": 1005, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." } - } - } - ] - } - }, - { - "name": "MongoClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 195, - "col": 0, - "byteIndex": 4533 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB client interface" - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" } - ], - "constructors": [], - "methods": [ - { - "name": "collection", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 198, - "col": 2, - "byteIndex": 4629 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "MongoCollection", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoCollection" - } - }, - "typeParams": [ + }, + { + "id": 1003, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "name": "T", - "constraint": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - }, - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } + "kind": "text", + "text": "Port number. Each service has its own default." } ] }, - { - "name": "db", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 199, - "col": 2, - "byteIndex": 4708 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "MongoClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoClient" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "transaction", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 200, - "col": 2, - "byteIndex": 4741 - }, - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - "params": [ - { - "kind": "identifier", - "name": "session", - "optional": false, - "tsType": { - "repr": "MongoSession", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoSession" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 1001, + "name": "replicaSet", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "T" + "kind": "text", + "text": "Replica set name." } ] }, - { - "name": "close", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 202, - "col": 2, - "byteIndex": 4815 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [ - { - "name": "config", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 196, - "col": 2, - "byteIndex": 4590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoClientConfig" + }, + { + "id": 1004, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] }, { - "name": "MongoErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 142 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for MongoDB errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ + "id": 1326, + "name": "MongoCountResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 11, - "col": 2, - "byteIndex": 202 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Count result with MongoDB error." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 17, - "col": 0, - "byteIndex": 284 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for MongoDB client errors." + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 1330, + "name": "count", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.count" + } + }, + { + "id": 1332, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - "right": "mongo", - "tsType": null - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" - } - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 21, - "col": 2, - "byteIndex": 408 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 18, - "col": 2, - "byteIndex": 332 - } + ] }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 19, - "col": 2, - "byteIndex": 381 - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.duration" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 34, - "col": 0, - "byteIndex": 655 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a MongoDB connection cannot be established." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + }, + { + "id": 1329, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" - } - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 38, - "col": 2, - "byteIndex": 814 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 35, - "col": 2, - "byteIndex": 712 - } + ] }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 36, - "col": 2, - "byteIndex": 763 - } + "type": { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.error" } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoQueryError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 46, - "col": 0, - "byteIndex": 976 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a MongoDB query fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + }, + { + "id": 1331, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " }, { - "kind": "identifier", - "name": "collection", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`kind`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" - } - } + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 51, - "col": 2, - "byteIndex": 1151 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1028 - } + ] }, - { - "tsType": { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 48, - "col": 2, - "byteIndex": 1074 - } + "type": { + "type": "literal", + "value": "mongo:count" }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "collection", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 49, - "col": 2, - "byteIndex": 1119 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoDuplicateKeyError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 64, - "col": 0, - "byteIndex": 1396 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a duplicate key constraint is violated." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + }, + { + "id": 1328, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "kind": "identifier", - "name": "keyPattern", - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - ], - "typeName": "Record" - } - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "keyValue", - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" - } - } + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 70, - "col": 2, - "byteIndex": 1655 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 65, - "col": 2, - "byteIndex": 1455 - } + ] }, - { - "tsType": { - "repr": "duplicate_key", - "kind": "literal", - "literal": { - "kind": "string", - "string": "duplicate_key" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 66, - "col": 2, - "byteIndex": 1508 - } + "type": { + "type": "literal", + "value": false }, - { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - ], - "typeName": "Record" + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.ok" + } + }, + { + "id": 1327, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "keyPattern", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 67, - "col": 2, - "byteIndex": 1561 - } + ] }, - { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "keyValue", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 68, - "col": 2, - "byteIndex": 1608 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoCountResultBase" + }, + "name": "MongoCountResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoValidationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 85, - "col": 0, - "byteIndex": 2000 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when document validation fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 1333, + "name": "MongoCountResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Count result with connection failure." + } + ] + }, + "children": [ + { + "id": 1337, + "name": "count", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.count" + } + }, + { + "id": 1339, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.duration" + } + }, + { + "id": 1336, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "validationErrors", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" - } - } + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 90, - "col": 2, - "byteIndex": 2207 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 86, - "col": 2, - "byteIndex": 2057 - } + ] }, - { - "tsType": { - "repr": "validation", - "kind": "literal", - "literal": { - "kind": "string", - "string": "validation" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 87, - "col": 2, - "byteIndex": 2108 - } + "type": { + "type": "reference", + "target": 1642, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "validationErrors", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 88, - "col": 2, - "byteIndex": 2158 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.error" } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoWriteError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 103, - "col": 0, - "byteIndex": 2471 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a write operation fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + }, + { + "id": 1338, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " }, { - "kind": "identifier", - "name": "writeErrors", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "index", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 114, - "col": 28, - "byteIndex": 2777 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 114, - "col": 43, - "byteIndex": 2792 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 114, - "col": 57, - "byteIndex": 2806 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - } - } + "kind": "code", + "text": "`kind`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" - } - } + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 112, - "col": 2, - "byteIndex": 2715 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 104, - "col": 2, - "byteIndex": 2523 - } + ] }, - { - "tsType": { - "repr": "write", - "kind": "literal", - "literal": { - "kind": "string", - "string": "write" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 105, - "col": 2, - "byteIndex": 2569 - } + "type": { + "type": "literal", + "value": "mongo:count" }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "index", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 107, - "col": 4, - "byteIndex": 2651 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 108, - "col": 4, - "byteIndex": 2670 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 109, - "col": 4, - "byteIndex": 2688 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "writeErrors", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 106, - "col": 2, - "byteIndex": 2614 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoNotFoundError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 125, - "col": 0, - "byteIndex": 3033 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a document is not found (for firstOrThrow, lastOrThrow)." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + }, + { + "id": 1335, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 129, - "col": 2, - "byteIndex": 3187 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 126, - "col": 2, - "byteIndex": 3088 - } - }, - { - "tsType": { - "repr": "not_found", - "kind": "literal", - "literal": { - "kind": "string", - "string": "not_found" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 127, - "col": 2, - "byteIndex": 3137 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 138, - "col": 0, - "byteIndex": 3431 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate a MongoDB operation error.\nThese are errors where the operation reached the server but failed." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoQueryError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoQueryError" - } - }, - { - "repr": "MongoDuplicateKeyError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDuplicateKeyError" - } - }, - { - "repr": "MongoValidationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoValidationError" - } - }, - { - "repr": "MongoWriteError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoWriteError" - } - }, - { - "repr": "MongoNotFoundError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoNotFoundError" - } - }, - { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - } - ] - }, - "typeParams": [] - } - }, - { - "name": "MongoFindResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 20, - "col": 0, - "byteIndex": 581 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful find result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 22, - "col": 2, - "byteIndex": 672 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 23, - "col": 2, - "byteIndex": 700 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 24, - "col": 2, - "byteIndex": 721 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 25, - "col": 2, - "byteIndex": 745 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } - } - ] - } - }, - { - "name": "MongoFindResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 31, - "col": 0, - "byteIndex": 820 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Find result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 33, - "col": 2, - "byteIndex": 909 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 34, - "col": 2, - "byteIndex": 937 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 35, - "col": 2, - "byteIndex": 959 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 36, - "col": 2, - "byteIndex": 989 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } - } - ] - } - }, - { - "name": "MongoFindResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 42, - "col": 0, - "byteIndex": 1069 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Find result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 44, - "col": 2, - "byteIndex": 1160 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 45, - "col": 2, - "byteIndex": 1189 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 46, - "col": 2, - "byteIndex": 1211 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 47, - "col": 2, - "byteIndex": 1248 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } - } - ] - } - }, - { - "name": "MongoFindOneResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 73, - "col": 0, - "byteIndex": 1858 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful findOne result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 75, - "col": 2, - "byteIndex": 1955 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 76, - "col": 2, - "byteIndex": 1983 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 77, - "col": 2, - "byteIndex": 2004 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 78, - "col": 2, - "byteIndex": 2028 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } - } - ] - } - }, - { - "name": "MongoFindOneResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 84, - "col": 0, - "byteIndex": 2101 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "FindOne result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 86, - "col": 2, - "byteIndex": 2196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 87, - "col": 2, - "byteIndex": 2224 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 88, - "col": 2, - "byteIndex": 2246 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 89, - "col": 2, - "byteIndex": 2276 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } - } - ] - } - }, - { - "name": "MongoFindOneResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 95, - "col": 0, - "byteIndex": 2350 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "FindOne result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 97, - "col": 2, - "byteIndex": 2447 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 98, - "col": 2, - "byteIndex": 2476 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 99, - "col": 2, - "byteIndex": 2498 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 100, - "col": 2, - "byteIndex": 2535 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } - } - ] - } - }, - { - "name": "MongoInsertOneResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 126, - "col": 0, - "byteIndex": 3159 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful insertOne result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoInsertOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 127, - "col": 2, - "byteIndex": 3241 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 128, - "col": 2, - "byteIndex": 3269 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 129, - "col": 2, - "byteIndex": 3290 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 130, - "col": 2, - "byteIndex": 3314 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoInsertOneResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 136, - "col": 0, - "byteIndex": 3394 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "InsertOne result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoInsertOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 137, - "col": 2, - "byteIndex": 3474 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 138, - "col": 2, - "byteIndex": 3502 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 139, - "col": 2, - "byteIndex": 3524 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 140, - "col": 2, - "byteIndex": 3554 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoInsertOneResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 146, - "col": 0, - "byteIndex": 3637 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "InsertOne result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoInsertOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 147, - "col": 2, - "byteIndex": 3719 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 148, - "col": 2, - "byteIndex": 3748 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 149, - "col": 2, - "byteIndex": 3770 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 150, - "col": 2, - "byteIndex": 3807 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoInsertManyResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 177, - "col": 0, - "byteIndex": 4484 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful insertMany result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoInsertManyResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 179, - "col": 2, - "byteIndex": 4570 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 180, - "col": 2, - "byteIndex": 4598 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 181, - "col": 2, - "byteIndex": 4619 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 182, - "col": 2, - "byteIndex": 4643 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 183, - "col": 2, - "byteIndex": 4686 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1334, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoCountResultBase" + }, + "name": "MongoCountResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoInsertManyResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 189, - "col": 0, - "byteIndex": 4770 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "InsertMany result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1319, + "name": "MongoCountResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoInsertManyResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultBase" - } + "kind": "text", + "text": "Successful count result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 190, - "col": 2, - "byteIndex": 4852 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 1323, + "name": "count", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 191, - "col": 2, - "byteIndex": 4880 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 192, - "col": 2, - "byteIndex": 4902 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.count" + } + }, + { + "id": 1325, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 193, - "col": 2, - "byteIndex": 4932 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 194, - "col": 2, - "byteIndex": 4962 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.duration" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoInsertManyResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 200, - "col": 0, - "byteIndex": 5049 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "InsertMany result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoInsertManyResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 202, - "col": 2, - "byteIndex": 5135 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 1322, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 203, - "col": 2, - "byteIndex": 5164 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.error" + } + }, + { + "id": 1324, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 204, - "col": 2, - "byteIndex": 5186 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "type": { + "type": "literal", + "value": "mongo:count" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.kind" + } + }, + { + "id": 1321, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 205, - "col": 2, - "byteIndex": 5223 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 206, - "col": 2, - "byteIndex": 5253 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1320, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoCountResultBase" + }, + "name": "MongoCountResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoUpdateResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 234, - "col": 0, - "byteIndex": 5945 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful update result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1305, + "name": "MongoDeleteResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoUpdateResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultBase" - } + "kind": "text", + "text": "Delete result with MongoDB error." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 235, - "col": 2, - "byteIndex": 6021 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 1309, + "name": "deletedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 236, - "col": 2, - "byteIndex": 6049 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.deletedCount" + } + }, + { + "id": 1311, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 6070 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 238, - "col": 2, - "byteIndex": 6094 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.duration" + } + }, + { + "id": 1308, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] }, - { - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 239, - "col": 2, - "byteIndex": 6127 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" }, - { - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 240, - "col": 2, - "byteIndex": 6161 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoUpdateResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 246, - "col": 0, - "byteIndex": 6245 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Update result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoUpdateResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultBase" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.error" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 247, - "col": 2, - "byteIndex": 6319 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 1310, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 248, - "col": 2, - "byteIndex": 6347 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "mongo:delete" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 249, - "col": 2, - "byteIndex": 6369 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.kind" + } + }, + { + "id": 1307, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] - }, - { - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 250, - "col": 2, - "byteIndex": 6399 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + ] }, - { - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 251, - "col": 2, - "byteIndex": 6430 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 252, - "col": 2, - "byteIndex": 6462 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1306, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoDeleteResultBase" + }, + "name": "MongoDeleteResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoUpdateResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 258, - "col": 0, - "byteIndex": 6542 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Update result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1312, + "name": "MongoDeleteResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoUpdateResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultBase" - } + "kind": "text", + "text": "Delete result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 259, - "col": 2, - "byteIndex": 6618 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "children": [ + { + "id": 1316, + "name": "deletedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.deletedCount" + } + }, + { + "id": 1318, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 260, - "col": 2, - "byteIndex": 6647 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.duration" + } + }, + { + "id": 1315, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 261, - "col": 2, - "byteIndex": 6669 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "type": { + "type": "reference", + "target": 1642, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.error" + } + }, + { + "id": 1317, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 262, - "col": 2, - "byteIndex": 6706 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "mongo:delete" }, - { - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 263, - "col": 2, - "byteIndex": 6737 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.kind" + } + }, + { + "id": 1314, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 264, - "col": 2, - "byteIndex": 6769 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1313, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoDeleteResultBase" + }, + "name": "MongoDeleteResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { + "id": 1298, "name": "MongoDeleteResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 290, - "col": 0, - "byteIndex": 7358 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful delete result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultBase" - } + "kind": "text", + "text": "Successful delete result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 291, - "col": 2, - "byteIndex": 7434 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 1302, + "name": "deletedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 292, - "col": 2, - "byteIndex": 7462 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.deletedCount" + } + }, + { + "id": 1304, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 293, - "col": 2, - "byteIndex": 7483 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 294, - "col": 2, - "byteIndex": 7507 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.duration" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoDeleteResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 300, - "col": 0, - "byteIndex": 7586 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultBase" - } + }, + { + "id": 1301, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.error" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 301, - "col": 2, - "byteIndex": 7660 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 1303, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 302, - "col": 2, - "byteIndex": 7688 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "literal", + "value": "mongo:delete" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.kind" + } + }, + { + "id": 1300, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 303, - "col": 2, - "byteIndex": 7710 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.ok" + } + }, + { + "id": 1299, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoDeleteResultBase" + }, + "name": "MongoDeleteResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 1100, + "name": "MongoErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 304, - "col": 2, - "byteIndex": 7740 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "kind": "text", + "text": "Options for MongoDB errors." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + }, + "children": [ + { + "id": 1101, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ] }, { - "name": "MongoDeleteResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 310, - "col": 0, - "byteIndex": 7822 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1210, + "name": "MongoFindOneResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultBase" - } + "kind": "text", + "text": "FindOne result with MongoDB error." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 311, - "col": 2, - "byteIndex": 7898 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "children": [ + { + "id": 1215, + "name": "doc", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.doc", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 1217, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 312, - "col": 2, - "byteIndex": 7927 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.duration" + } + }, + { + "id": 1214, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.error" + } + }, + { + "id": 1216, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 313, - "col": 2, - "byteIndex": 7949 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "mongo:find-one" }, - { - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 314, - "col": 2, - "byteIndex": 7986 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoCountResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 340, - "col": 0, - "byteIndex": 8565 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful count result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultBase" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 341, - "col": 2, - "byteIndex": 8639 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 342, - "col": 2, - "byteIndex": 8667 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 1213, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 343, - "col": 2, - "byteIndex": 8688 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 344, - "col": 2, - "byteIndex": 8712 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1212, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 1211, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 1006, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoFindOneResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1211, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindOneResultError.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoCountResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 350, - "col": 0, - "byteIndex": 8783 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Count result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1218, + "name": "MongoFindOneResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultBase" - } + "kind": "text", + "text": "FindOne result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 351, - "col": 2, - "byteIndex": 8855 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 1223, + "name": "doc", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.doc", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 1225, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 352, - "col": 2, - "byteIndex": 8883 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 353, - "col": 2, - "byteIndex": 8905 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.duration" + } + }, + { + "id": 1222, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 354, - "col": 2, - "byteIndex": 8935 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoCountResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 360, - "col": 0, - "byteIndex": 9009 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Count result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultBase" - } + "type": { + "type": "reference", + "target": 1642, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.error" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 361, - "col": 2, - "byteIndex": 9083 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 1224, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 362, - "col": 2, - "byteIndex": 9112 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "mongo:find-one" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 363, - "col": 2, - "byteIndex": 9134 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.kind" + } + }, + { + "id": 1221, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 364, - "col": 2, - "byteIndex": 9171 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1220, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 1219, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 1006, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoFindOneResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1219, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindOneResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoFindResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 400, - "col": 0, - "byteIndex": 10152 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindResultSuccess.", - "tags": [ + "id": 1202, + "name": "MongoFindOneResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful findOne result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 410, - "col": 4, - "byteIndex": 10471 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 411, - "col": 4, - "byteIndex": 10495 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 1207, + "name": "doc", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 1203, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindOneResultSuccess.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 409, - "col": 2, - "byteIndex": 10445 - } + ] + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.doc", + "package": "@probitas-test/client-mongodb" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find" + }, + { + "id": 1209, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 402, - "col": 2, - "byteIndex": 10249 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.duration" + } + }, + { + "id": 1206, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 403, - "col": 2, - "byteIndex": 10290 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.error" + } + }, + { + "id": 1208, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:find-one" + }, + "inheritedFrom": { + "type": "reference", + "target": 1216, + "name": "MongoFindOneResultBase.kind", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 1205, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 404, - "col": 2, - "byteIndex": 10328 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 405, - "col": 2, - "byteIndex": 10359 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 406, - "col": 2, - "byteIndex": 10384 - } + "type": { + "type": "literal", + "value": true }, - { - "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-mongodb/0.6.1/result.ts", - "line": 407, - "col": 2, - "byteIndex": 10415 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultSuccess" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.ok" } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + }, + { + "id": 1204, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - } - } - ], - "superTypeParams": [] - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 1203, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 1006, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoFindOneResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1203, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindOneResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoFindResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 422, - "col": 0, - "byteIndex": 10664 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindResultError.", - "tags": [ + "id": 1010, + "name": "MongoFindOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "MongoDB find options" } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 432, - "col": 4, - "byteIndex": 10990 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 433, - "col": 4, - "byteIndex": 11013 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] + "children": [ + { + "id": 1012, + "name": "limit", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1014, + "name": "projection", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "union", + "types": [ + { + "type": "literal", + "value": 0 + }, + { + "type": "literal", + "value": 1 } - } + ] } ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 431, - "col": 2, - "byteIndex": 10964 - } + "name": "Record", + "package": "typescript" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find" + }, + { + "id": 1018, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 424, - "col": 2, - "byteIndex": 10757 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 425, - "col": 2, - "byteIndex": 10798 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": 997, + "name": "MongoOptions.retry" + } + }, + { + "id": 1017, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 426, - "col": 2, - "byteIndex": 10836 - } + ] }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 427, - "col": 2, - "byteIndex": 10868 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "inheritedFrom": { + "type": "reference", + "target": 996, + "name": "MongoOptions.signal" + } + }, + { + "id": 1013, + "name": "skip", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1011, + "name": "sort", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "union", + "types": [ + { + "type": "literal", + "value": -1 + }, + { + "type": "literal", + "value": 1 } - } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 428, - "col": 2, - "byteIndex": 10898 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 429, - "col": 2, - "byteIndex": 10934 - } + ], + "name": "Record", + "package": "typescript" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + }, + { + "id": 1015, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - } - ], - "typeName": "MongoFindResultError" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + ] } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 994, + "name": "MongoOptions.throwOnError" } - ], - "superTypeParams": [] - } + }, + { + "id": 1016, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 995, + "name": "MongoOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 993, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoFindResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 444, - "col": 0, - "byteIndex": 11186 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindResultFailure.", - "tags": [ + "id": 1186, + "name": "MongoFindResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Find result with MongoDB error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 454, - "col": 4, - "byteIndex": 11512 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 455, - "col": 4, - "byteIndex": 11542 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 1191, + "name": "docs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 1187, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindResultError.T", + "refersToTypeParameter": true } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 453, - "col": 2, - "byteIndex": 11486 } + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.docs", + "package": "@probitas-test/client-mongodb" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find" + }, + { + "id": 1193, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 446, - "col": 2, - "byteIndex": 11283 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 447, - "col": 2, - "byteIndex": 11324 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.duration" + } + }, + { + "id": 1190, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 448, - "col": 2, - "byteIndex": 11363 - } + ] }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "type": { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.error" + } + }, + { + "id": 1192, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 449, - "col": 2, - "byteIndex": 11395 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 450, - "col": 2, - "byteIndex": 11432 - } + "type": { + "type": "literal", + "value": "mongo:find" }, - { - "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-mongodb/0.6.1/result.ts", - "line": 451, - "col": 2, - "byteIndex": 11456 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultFailure" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.kind" } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + }, + { + "id": 1189, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.ok" } - ], - "superTypeParams": [] - } + }, + { + "id": 1188, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 1187, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 1006, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoFindResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1187, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindResultError.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoFindOneResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 470, - "col": 0, - "byteIndex": 11924 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindOneResultSuccess.", - "tags": [ + "id": 1194, + "name": "MongoFindResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Find result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 480, - "col": 4, - "byteIndex": 12248 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 481, - "col": 4, - "byteIndex": 12267 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 479, - "col": 2, - "byteIndex": 12222 - } + "children": [ + { + "id": 1199, + "name": "docs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.docs", + "package": "@probitas-test/client-mongodb" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find-one" + }, + { + "id": 1201, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 472, - "col": 2, - "byteIndex": 12027 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 473, - "col": 2, - "byteIndex": 12072 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.duration" + } + }, + { + "id": 1198, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 474, - "col": 2, - "byteIndex": 12110 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 475, - "col": 2, - "byteIndex": 12141 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 476, - "col": 2, - "byteIndex": 12166 - } + "type": { + "type": "reference", + "target": 1642, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" }, - { - "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-mongodb/0.6.1/result.ts", - "line": 477, - "col": 2, - "byteIndex": 12192 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.error" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindOneResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResultSuccess" - } + }, + { + "id": 1200, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:find" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.kind" } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + }, + { + "id": 1197, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.ok" } - ], - "superTypeParams": [] - } + }, + { + "id": 1196, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 1195, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 1006, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoFindResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1195, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoFindOneResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 492, - "col": 0, - "byteIndex": 12437 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindOneResultError.", - "tags": [ + "id": 1178, + "name": "MongoFindResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful find result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 502, - "col": 4, - "byteIndex": 12760 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 503, - "col": 4, - "byteIndex": 12783 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 501, - "col": 2, - "byteIndex": 12734 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find-one" + "children": [ + { + "id": 1183, + "name": "docs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 1179, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindResultSuccess.T", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 494, - "col": 2, - "byteIndex": 12536 } }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.docs", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 1185, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 495, - "col": 2, - "byteIndex": 12581 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 496, - "col": 2, - "byteIndex": 12619 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.duration" + } + }, + { + "id": 1182, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 497, - "col": 2, - "byteIndex": 12651 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 498, - "col": 2, - "byteIndex": 12681 - } + "type": { + "type": "literal", + "value": null }, - { - "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-mongodb/0.6.1/result.ts", - "line": 499, - "col": 2, - "byteIndex": 12704 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindOneResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResultError" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.error" } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + }, + { + "id": 1184, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - } - } - ], - "superTypeParams": [] - } - }, - { - "name": "MongoFindOneResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 514, - "col": 0, - "byteIndex": 12959 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindOneResultFailure.", - "tags": [ - { - "kind": "internal" + ] + }, + "type": { + "type": "literal", + "value": "mongo:find" + }, + "inheritedFrom": { + "type": "reference", + "target": 1192, + "name": "MongoFindResultBase.kind", + "package": "@probitas-test/client-mongodb" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 524, - "col": 4, - "byteIndex": 13294 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 525, - "col": 4, - "byteIndex": 13324 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + }, + { + "id": 1181, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 523, - "col": 2, - "byteIndex": 13268 - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.ok" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find-one" + }, + { + "id": 1180, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 516, - "col": 2, - "byteIndex": 13062 - } + ] }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 1179, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 1006, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoFindResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1179, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 1255, + "name": "MongoInsertManyResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "kind": "text", + "text": "InsertMany result with MongoDB error." + } + ] + }, + "children": [ + { + "id": 1262, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 517, - "col": 2, - "byteIndex": 13107 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 518, - "col": 2, - "byteIndex": 13146 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.duration" + } + }, + { + "id": 1258, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 519, - "col": 2, - "byteIndex": 13178 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 520, - "col": 2, - "byteIndex": 13215 - } + "type": { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" }, - { - "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-mongodb/0.6.1/result.ts", - "line": 521, - "col": 2, - "byteIndex": 13238 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.error" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindOneResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResultFailure" - } + }, + { + "id": 1260, + "name": "insertedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedCount" } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + }, + { + "id": 1259, + "name": "insertedIds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedIds" + } + }, + { + "id": 1261, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - } + ] + }, + "type": { + "type": "literal", + "value": "mongo:insert-many" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.kind" } - ], - "superTypeParams": [] - } + }, + { + "id": 1257, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.ok" + } + }, + { + "id": 1256, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoInsertManyResultBase" + }, + "name": "MongoInsertManyResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoInsertOneResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 540, - "col": 0, - "byteIndex": 13710 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertOneResultSuccess.", - "tags": [ + "id": 1263, + "name": "MongoInsertManyResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "InsertMany result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 550, - "col": 4, - "byteIndex": 14028 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 551, - "col": 4, - "byteIndex": 14052 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 1270, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 549, - "col": 2, - "byteIndex": 14002 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-one" + }, + { + "id": 1266, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 542, - "col": 2, - "byteIndex": 13800 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 543, - "col": 2, - "byteIndex": 13847 - } + "type": { + "type": "reference", + "target": 1642, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.error" + } + }, + { + "id": 1268, + "name": "insertedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedCount" + } + }, + { + "id": 1267, + "name": "insertedIds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedIds" + } + }, + { + "id": 1269, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 544, - "col": 2, - "byteIndex": 13885 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 545, - "col": 2, - "byteIndex": 13916 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 546, - "col": 2, - "byteIndex": 13941 - } + "type": { + "type": "literal", + "value": "mongo:insert-many" }, - { - "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-mongodb/0.6.1/result.ts", - "line": 547, - "col": 2, - "byteIndex": 13972 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertOneResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultSuccess" - } + }, + { + "id": 1265, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.ok" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1264, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoInsertManyResultBase" + }, + "name": "MongoInsertManyResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoInsertOneResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 562, - "col": 0, - "byteIndex": 14238 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertOneResultError.", - "tags": [ + "id": 1247, + "name": "MongoInsertManyResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful insertMany result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 572, - "col": 4, - "byteIndex": 14557 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 573, - "col": 4, - "byteIndex": 14580 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 571, - "col": 2, - "byteIndex": 14531 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-one" + "children": [ + { + "id": 1254, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 564, - "col": 2, - "byteIndex": 14324 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.duration" + } + }, + { + "id": 1250, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 565, - "col": 2, - "byteIndex": 14371 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 566, - "col": 2, - "byteIndex": 14409 - } + "type": { + "type": "literal", + "value": null }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.error" + } + }, + { + "id": 1252, + "name": "insertedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedCount" + } + }, + { + "id": 1251, + "name": "insertedIds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedIds" + } + }, + { + "id": 1253, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 567, - "col": 2, - "byteIndex": 14441 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 568, - "col": 2, - "byteIndex": 14471 - } + "type": { + "type": "literal", + "value": "mongo:insert-many" }, - { - "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-mongodb/0.6.1/result.ts", - "line": 569, - "col": 2, - "byteIndex": 14501 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertOneResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultError" - } + }, + { + "id": 1249, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.ok" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1248, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoInsertManyResultBase" + }, + "name": "MongoInsertManyResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoInsertOneResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 584, - "col": 0, - "byteIndex": 14758 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertOneResultFailure.", - "tags": [ + "id": 1233, + "name": "MongoInsertOneResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "InsertOne result with MongoDB error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 594, - "col": 4, - "byteIndex": 15089 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 595, - "col": 4, - "byteIndex": 15119 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 1239, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 593, - "col": 2, - "byteIndex": 15063 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-one" + }, + { + "id": 1236, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 586, - "col": 2, - "byteIndex": 14848 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 587, - "col": 2, - "byteIndex": 14895 - } + "type": { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.error" + } + }, + { + "id": 1237, + "name": "insertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.insertedId" + } + }, + { + "id": 1238, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 588, - "col": 2, - "byteIndex": 14934 - } + ] }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "type": { + "type": "literal", + "value": "mongo:insert-one" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.kind" + } + }, + { + "id": 1235, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 589, - "col": 2, - "byteIndex": 14966 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 590, - "col": 2, - "byteIndex": 15003 - } + "type": { + "type": "literal", + "value": false }, - { - "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-mongodb/0.6.1/result.ts", - "line": 591, - "col": 2, - "byteIndex": 15033 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.ok" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertOneResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultFailure" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1234, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoInsertOneResultBase" + }, + "name": "MongoInsertOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoInsertManyResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 610, - "col": 0, - "byteIndex": 15507 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertManyResultSuccess.", - "tags": [ + "id": 1240, + "name": "MongoInsertOneResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "InsertOne result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 621, - "col": 4, - "byteIndex": 15874 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - }, - "typeParams": [] - }, - { - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 622, - "col": 4, - "byteIndex": 15910 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 623, - "col": 4, - "byteIndex": 15937 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 1246, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 620, - "col": 2, - "byteIndex": 15848 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-many", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-many" + }, + { + "id": 1243, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 612, - "col": 2, - "byteIndex": 15599 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "reference", + "target": 1642, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.error" + } + }, + { + "id": 1244, + "name": "insertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.insertedId" + } + }, + { + "id": 1245, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 613, - "col": 2, - "byteIndex": 15647 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": "mongo:insert-one" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.kind" + } + }, + { + "id": 1242, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 614, - "col": 2, - "byteIndex": 15685 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 615, - "col": 2, - "byteIndex": 15716 - } + "type": { + "type": "literal", + "value": false }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.ok" + } + }, + { + "id": 1241, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 616, - "col": 2, - "byteIndex": 15741 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 617, - "col": 2, - "byteIndex": 15784 - } + ] }, - { - "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-mongodb/0.6.1/result.ts", - "line": 618, - "col": 2, - "byteIndex": 15818 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertManyResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultSuccess" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoInsertOneResultBase" + }, + "name": "MongoInsertOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoInsertManyResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 635, - "col": 0, - "byteIndex": 16173 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertManyResultError.", - "tags": [ + "id": 1226, + "name": "MongoInsertOneResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful insertOne result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 646, - "col": 4, - "byteIndex": 16529 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 647, - "col": 4, - "byteIndex": 16552 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 1232, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 645, - "col": 2, - "byteIndex": 16503 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-many", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-many" + }, + { + "id": 1229, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 637, - "col": 2, - "byteIndex": 16261 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 638, - "col": 2, - "byteIndex": 16309 - } + "type": { + "type": "literal", + "value": null }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.error" + } + }, + { + "id": 1230, + "name": "insertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.insertedId" + } + }, + { + "id": 1231, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 639, - "col": 2, - "byteIndex": 16347 - } + ] }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 640, - "col": 2, - "byteIndex": 16379 - } + "type": { + "type": "literal", + "value": "mongo:insert-one" }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 641, - "col": 2, - "byteIndex": 16409 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.kind" + } + }, + { + "id": 1228, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 642, - "col": 2, - "byteIndex": 16440 - } + "type": { + "type": "literal", + "value": true }, - { - "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-mongodb/0.6.1/result.ts", - "line": 643, - "col": 2, - "byteIndex": 16473 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertManyResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultError" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.ok" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1227, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoInsertOneResultBase" + }, + "name": "MongoInsertOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoInsertManyResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 658, - "col": 0, - "byteIndex": 16731 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertManyResultFailure.", - "tags": [ + "id": 993, + "name": "MongoOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Common options with throwOnError support." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 669, - "col": 4, - "byteIndex": 17099 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 670, - "col": 4, - "byteIndex": 17129 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 668, - "col": 2, - "byteIndex": 17073 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-many", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-many" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 660, - "col": 2, - "byteIndex": 16823 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "children": [ + { + "id": 997, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 661, - "col": 2, - "byteIndex": 16871 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 662, - "col": 2, - "byteIndex": 16910 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 996, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 663, - "col": 2, - "byteIndex": 16942 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 664, - "col": 2, - "byteIndex": 16979 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 665, - "col": 2, - "byteIndex": 17010 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "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-mongodb/0.6.1/result.ts", - "line": 666, - "col": 2, - "byteIndex": 17043 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertManyResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultFailure" - } + }, + { + "id": 994, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 995, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 1010, + "name": "MongoFindOptions" + }, + { + "type": "reference", + "target": 1019, + "name": "MongoUpdateOptions" + }, + { + "type": "reference", + "target": 1025, + "name": "MongoClientConfig" + } + ] }, { - "name": "MongoUpdateResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 685, - "col": 0, - "byteIndex": 17509 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoUpdateResultSuccess.", - "tags": [ + "id": 1032, + "name": "MongoSession", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "MongoDB session interface (for transactions)" } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 696, - "col": 4, - "byteIndex": 17889 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 697, - "col": 4, - "byteIndex": 17915 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "children": [ + { + "id": 1033, + "name": "collection", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1034, + "name": "collection", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 1035, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 1006, + "typeArguments": [ { - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 698, - "col": 4, - "byteIndex": 17942 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, + "type": "intrinsic", + "name": "any" + } + ], + "name": "Document", + "package": "@probitas-test/client-mongodb" + }, + "default": { + "type": "reference", + "target": 1006, + "typeArguments": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 699, - "col": 4, - "byteIndex": 17973 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": "intrinsic", + "name": "any" } ], - "callSignatures": [], - "indexSignatures": [] + "name": "Document", + "package": "@probitas-test/client-mongodb" } } + ], + "parameters": [ + { + "id": 1036, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 1037, + "typeArguments": [ + { + "type": "reference", + "target": 1035, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true + } + ], + "name": "MongoCollection", + "package": "@probitas-test/client-mongodb" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 695, - "col": 2, - "byteIndex": 17863 } - } - ], - "properties": [ + ] + } + ] + }, + { + "id": 1019, + "name": "MongoUpdateOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "mongo:update", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:update" + "kind": "text", + "text": "MongoDB update options" + } + ] + }, + "children": [ + { + "id": 1024, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 686, - "col": 2, - "byteIndex": 17591 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 687, - "col": 2, - "byteIndex": 17634 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "inheritedFrom": { + "type": "reference", + "target": 997, + "name": "MongoOptions.retry" + } + }, + { + "id": 1023, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 688, - "col": 2, - "byteIndex": 17672 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 689, - "col": 2, - "byteIndex": 17703 - } + ] }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 690, - "col": 2, - "byteIndex": 17728 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 691, - "col": 2, - "byteIndex": 17761 - } + "inheritedFrom": { + "type": "reference", + "target": 996, + "name": "MongoOptions.signal" + } + }, + { + "id": 1021, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 692, - "col": 2, - "byteIndex": 17795 - } + "type": { + "type": "intrinsic", + "name": "boolean" }, - { - "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-mongodb/0.6.1/result.ts", - "line": 693, - "col": 2, - "byteIndex": 17833 - } + "inheritedFrom": { + "type": "reference", + "target": 994, + "name": "MongoOptions.throwOnError" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoUpdateResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultSuccess" - } + }, + { + "id": 1022, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 995, + "name": "MongoOptions.timeout" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1020, + "name": "upsert", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 993, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoUpdateResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 712, - "col": 0, - "byteIndex": 18248 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoUpdateResultError.", - "tags": [ + "id": 1280, + "name": "MongoUpdateResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Update result with MongoDB error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 723, - "col": 4, - "byteIndex": 18620 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 724, - "col": 4, - "byteIndex": 18643 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 1288, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 722, - "col": 2, - "byteIndex": 18594 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:update", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:update" + }, + { + "id": 1283, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 713, - "col": 2, - "byteIndex": 18326 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 714, - "col": 2, - "byteIndex": 18369 - } + "type": { + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.error" + } + }, + { + "id": 1287, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 715, - "col": 2, - "byteIndex": 18407 - } + ] }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "type": { + "type": "literal", + "value": "mongo:update" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.kind" + } + }, + { + "id": 1284, + "name": "matchedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.matchedCount" + } + }, + { + "id": 1285, + "name": "modifiedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.modifiedCount" + } + }, + { + "id": 1282, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 716, - "col": 2, - "byteIndex": 18439 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 717, - "col": 2, - "byteIndex": 18469 - } + "type": { + "type": "literal", + "value": false }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 718, - "col": 2, - "byteIndex": 18501 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.ok" + } + }, + { + "id": 1281, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 719, - "col": 2, - "byteIndex": 18534 - } + "type": { + "type": "literal", + "value": true }, - { - "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-mongodb/0.6.1/result.ts", - "line": 720, - "col": 2, - "byteIndex": 18564 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoUpdateResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultError" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1286, + "name": "upsertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.upsertedId" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoUpdateResultBase" + }, + "name": "MongoUpdateResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoUpdateResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 735, - "col": 0, - "byteIndex": 18818 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoUpdateResultFailure.", - "tags": [ + "id": 1289, + "name": "MongoUpdateResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Update result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 746, - "col": 4, - "byteIndex": 19202 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 747, - "col": 4, - "byteIndex": 19232 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 1297, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 745, - "col": 2, - "byteIndex": 19176 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:update", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:update" + }, + { + "id": 1292, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 736, - "col": 2, - "byteIndex": 18900 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "reference", + "target": 1642, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.error" + } + }, + { + "id": 1296, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:update" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.kind" + } + }, + { + "id": 1293, + "name": "matchedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.matchedCount" + } + }, + { + "id": 1294, + "name": "modifiedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.modifiedCount" + } + }, + { + "id": 1291, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 737, - "col": 2, - "byteIndex": 18943 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 738, - "col": 2, - "byteIndex": 18982 - } + "type": { + "type": "literal", + "value": false }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.ok" + } + }, + { + "id": 1290, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 739, - "col": 2, - "byteIndex": 19014 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 740, - "col": 2, - "byteIndex": 19051 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 741, - "col": 2, - "byteIndex": 19083 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 742, - "col": 2, - "byteIndex": 19116 - } + "type": { + "type": "literal", + "value": false }, - { - "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-mongodb/0.6.1/result.ts", - "line": 743, - "col": 2, - "byteIndex": 19146 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoUpdateResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultFailure" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1295, + "name": "upsertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.upsertedId" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoUpdateResultBase" + }, + "name": "MongoUpdateResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "MongoDeleteResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 762, - "col": 0, - "byteIndex": 19612 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoDeleteResultSuccess.", - "tags": [ + "id": 1271, + "name": "MongoUpdateResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful update result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 771, - "col": 4, - "byteIndex": 19920 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 772, - "col": 4, - "byteIndex": 19946 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 1279, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 770, - "col": 2, - "byteIndex": 19894 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:delete" + }, + { + "id": 1274, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 763, - "col": 2, - "byteIndex": 19694 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.error" + } + }, + { + "id": 1278, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 764, - "col": 2, - "byteIndex": 19737 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": "mongo:update" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.kind" + } + }, + { + "id": 1275, + "name": "matchedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.matchedCount" + } + }, + { + "id": 1276, + "name": "modifiedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.modifiedCount" + } + }, + { + "id": 1273, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 765, - "col": 2, - "byteIndex": 19775 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 766, - "col": 2, - "byteIndex": 19806 - } + "type": { + "type": "literal", + "value": true }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 767, - "col": 2, - "byteIndex": 19831 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.ok" + } + }, + { + "id": 1272, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.processed" + } + }, + { + "id": 1277, + "name": "upsertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.upsertedId" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "result.ts", + "qualifiedName": "MongoUpdateResultBase" + }, + "name": "MongoUpdateResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 1006, + "name": "Document", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "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-mongodb/0.6.1/result.ts", - "line": 768, - "col": 2, - "byteIndex": 19864 - } + "kind": "text", + "text": "MongoDB document type" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + ] + }, + "typeParameters": [ + { + "id": 1007, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "MongoDeleteResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultSuccess" - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 1007, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } ], - "typeParams": [], - "superTypeParams": [] + "name": "Record", + "package": "typescript" } }, { - "name": "MongoDeleteResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 783, - "col": 0, - "byteIndex": 20133 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoDeleteResultError.", - "tags": [ + "id": 1008, + "name": "Filter", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "MongoDB filter type (simplified for compatibility with mongodb driver)\nAllows query operators like $gte, $lt, $in, etc." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 792, - "col": 4, - "byteIndex": 20442 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 793, - "col": 4, - "byteIndex": 20465 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 791, - "col": 2, - "byteIndex": 20416 - } - } - ], - "properties": [ + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "tsType": { - "repr": "mongo:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:delete" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 784, - "col": 2, - "byteIndex": 20211 - } + "type": "intrinsic", + "name": "string" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 785, - "col": 2, - "byteIndex": 20254 - } - }, + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1640, + "name": "MongoCountResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 786, - "col": 2, - "byteIndex": 20292 - } - }, + "kind": "text", + "text": "Count result." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 787, - "col": 2, - "byteIndex": 20324 - } + "type": "reference", + "target": 1319, + "name": "MongoCountResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 788, - "col": 2, - "byteIndex": 20354 - } + "type": "reference", + "target": 1326, + "name": "MongoCountResultError", + "package": "@probitas-test/client-mongodb" }, { - "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-mongodb/0.6.1/result.ts", - "line": 789, - "col": 2, - "byteIndex": 20386 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoDeleteResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultError" - } + "type": "reference", + "target": 1333, + "name": "MongoCountResultFailure", + "package": "@probitas-test/client-mongodb" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "MongoDeleteResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 804, - "col": 0, - "byteIndex": 20640 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoDeleteResultFailure.", - "tags": [ + "id": 1641, + "name": "MongoDeleteResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Delete result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 813, - "col": 4, - "byteIndex": 20961 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 814, - "col": 4, - "byteIndex": 20991 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 812, - "col": 2, - "byteIndex": 20935 - } - } - ], - "properties": [ + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "mongo:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:delete" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 805, - "col": 2, - "byteIndex": 20722 - } + "type": "reference", + "target": 1298, + "name": "MongoDeleteResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 806, - "col": 2, - "byteIndex": 20765 - } + "type": "reference", + "target": 1305, + "name": "MongoDeleteResultError", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 807, - "col": 2, - "byteIndex": 20804 - } - }, + "type": "reference", + "target": 1312, + "name": "MongoDeleteResultFailure", + "package": "@probitas-test/client-mongodb" + } + ] + } + }, + { + "id": 1642, + "name": "MongoFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the MongoDB server." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 808, - "col": 2, - "byteIndex": 20836 - } + "type": "reference", + "target": 1111, + "name": "MongoConnectionError", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 809, - "col": 2, - "byteIndex": 20873 - } + "name": "AbortError", + "package": "@probitas-test/client" }, { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 810, - "col": 2, - "byteIndex": 20905 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoDeleteResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultFailure" - } + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "MongoCountResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 829, - "col": 0, - "byteIndex": 21369 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoCountResultSuccess.", - "tags": [ + "id": 1643, + "name": "MongoFindOneResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "FindOne result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 838, - "col": 4, - "byteIndex": 21667 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 839, - "col": 4, - "byteIndex": 21686 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "typeParameters": [ + { + "id": 1644, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 1006, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 1202, + "typeArguments": [ + { + "type": "reference", + "target": 1644, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 837, - "col": 2, - "byteIndex": 21641 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:count" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 830, - "col": 2, - "byteIndex": 21449 - } + "name": "MongoFindOneResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": "reference", + "target": 1210, + "typeArguments": [ + { + "type": "reference", + "target": 1644, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 831, - "col": 2, - "byteIndex": 21491 - } + ], + "name": "MongoFindOneResultError", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": "reference", + "target": 1218, + "typeArguments": [ + { + "type": "reference", + "target": 1644, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 832, - "col": 2, - "byteIndex": 21529 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 833, - "col": 2, - "byteIndex": 21560 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 834, - "col": 2, - "byteIndex": 21585 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 835, - "col": 2, - "byteIndex": 21611 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoCountResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultSuccess" - } + ], + "name": "MongoFindOneResultFailure", + "package": "@probitas-test/client-mongodb" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "MongoCountResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 850, - "col": 0, - "byteIndex": 21858 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoCountResultError.", - "tags": [ + "id": 1645, + "name": "MongoFindResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Query result (find, aggregate)." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 859, - "col": 4, - "byteIndex": 22157 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 860, - "col": 4, - "byteIndex": 22180 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "typeParameters": [ + { + "id": 1646, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 1006, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 1178, + "typeArguments": [ + { + "type": "reference", + "target": 1646, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 858, - "col": 2, - "byteIndex": 22131 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:count" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 851, - "col": 2, - "byteIndex": 21934 - } + "name": "MongoFindResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": "reference", + "target": 1186, + "typeArguments": [ + { + "type": "reference", + "target": 1646, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 852, - "col": 2, - "byteIndex": 21976 - } + ], + "name": "MongoFindResultError", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": "reference", + "target": 1194, + "typeArguments": [ + { + "type": "reference", + "target": 1646, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 853, - "col": 2, - "byteIndex": 22014 - } - }, + ], + "name": "MongoFindResultFailure", + "package": "@probitas-test/client-mongodb" + } + ] + } + }, + { + "id": 1647, + "name": "MongoInsertManyResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 854, - "col": 2, - "byteIndex": 22046 - } - }, + "kind": "text", + "text": "Insert many result." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 855, - "col": 2, - "byteIndex": 22076 - } + "type": "reference", + "target": 1247, + "name": "MongoInsertManyResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "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-mongodb/0.6.1/result.ts", - "line": 856, - "col": 2, - "byteIndex": 22101 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 1255, + "name": "MongoInsertManyResultError", + "package": "@probitas-test/client-mongodb" + }, { - "repr": "MongoCountResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultError" - } + "type": "reference", + "target": 1263, + "name": "MongoInsertManyResultFailure", + "package": "@probitas-test/client-mongodb" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "MongoCountResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 871, - "col": 0, - "byteIndex": 22354 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoCountResultFailure.", - "tags": [ + "id": 1648, + "name": "MongoInsertOneResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Insert one result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 880, - "col": 4, - "byteIndex": 22665 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 881, - "col": 4, - "byteIndex": 22695 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 879, - "col": 2, - "byteIndex": 22639 - } - } - ], - "properties": [ + "type": "reference", + "target": 1226, + "name": "MongoInsertOneResultSuccess", + "package": "@probitas-test/client-mongodb" + }, { - "tsType": { - "repr": "mongo:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:count" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 872, - "col": 2, - "byteIndex": 22434 - } + "type": "reference", + "target": 1233, + "name": "MongoInsertOneResultError", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 873, - "col": 2, - "byteIndex": 22476 - } + "type": "reference", + "target": 1240, + "name": "MongoInsertOneResultFailure", + "package": "@probitas-test/client-mongodb" + } + ] + } + }, + { + "id": 1177, + "name": "MongoOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate a MongoDB operation error.\nThese are errors where the operation reached the server but failed." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 1119, + "name": "MongoQueryError", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 874, - "col": 2, - "byteIndex": 22515 - } + "type": "reference", + "target": 1129, + "name": "MongoDuplicateKeyError", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 875, - "col": 2, - "byteIndex": 22547 - } + "type": "reference", + "target": 1141, + "name": "MongoValidationError", + "package": "@probitas-test/client-mongodb" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 876, - "col": 2, - "byteIndex": 22584 - } + "type": "reference", + "target": 1151, + "name": "MongoWriteError", + "package": "@probitas-test/client-mongodb" }, { - "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-mongodb/0.6.1/result.ts", - "line": 877, - "col": 2, - "byteIndex": 22609 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 1169, + "name": "MongoNotFoundError", + "package": "@probitas-test/client-mongodb" + }, { - "repr": "MongoCountResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultFailure" - } + "type": "reference", + "target": 1102, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "createMongoClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/client.ts", - "line": 488, - "col": 0, - "byteIndex": 13203 + "id": 1649, + "name": "MongoResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Union of all MongoDB result types." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new MongoDB client instance.\n\nThe client provides typed collection access, aggregation pipelines,\ntransaction support, and comprehensive CRUD operations.\n", - "tags": [ + "typeParameters": [ + { + "id": 1650, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 1645, + "typeArguments": [ + { + "type": "reference", + "target": 1650, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true + } + ], + "name": "MongoFindResult", + "package": "@probitas-test/client-mongodb" + }, { - "kind": "param", - "name": "config", - "doc": "- MongoDB client configuration" + "type": "reference", + "target": 1648, + "name": "MongoInsertOneResult", + "package": "@probitas-test/client-mongodb" }, { - "kind": "return", - "doc": "A promise resolving to a new MongoDB client instance\n" + "type": "reference", + "target": 1647, + "name": "MongoInsertManyResult", + "package": "@probitas-test/client-mongodb" }, { - "kind": "example", - "doc": "Basic usage with connection string\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst users = mongo.collection<{ name: string; age: number }>(\"users\");\nconst result = await users.find({ age: { $gte: 18 } });\n\nif (result.ok) {\n console.log(result.docs[0]);\n} else {\n console.error(\"Error:\", result.error.message);\n}\n\nawait mongo.close();\n```\n" + "type": "reference", + "target": 1651, + "name": "MongoUpdateResult", + "package": "@probitas-test/client-mongodb" }, { - "kind": "example", - "doc": "Using connection config object\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nconst mongo = await createMongoClient({\n url: {\n host: \"localhost\",\n port: 27017,\n username: \"admin\",\n password: \"secret\",\n authSource: \"admin\",\n },\n database: \"testdb\",\n});\n\nawait mongo.close();\n```\n" + "type": "reference", + "target": 1641, + "name": "MongoDeleteResult", + "package": "@probitas-test/client-mongodb" }, { - "kind": "example", - "doc": "Insert and query documents\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { name: string; age: number }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\nconst users = mongo.collection(\"users\");\n\n// Insert a document\nconst insertResult = await users.insertOne({ name: \"Alice\", age: 30 });\nif (insertResult.ok) {\n console.log(\"Inserted ID:\", insertResult.insertedId);\n}\n\n// Find documents with projection and sorting\nconst findResult = await users.find(\n { age: { $gte: 25 } },\n { sort: { name: 1 }, limit: 10 }\n);\nif (findResult.ok) {\n console.log(\"Found:\", findResult.docs.length);\n}\n\nawait mongo.close();\n```\n" + "type": "reference", + "target": 1643, + "typeArguments": [ + { + "type": "reference", + "target": 1650, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResult", + "package": "@probitas-test/client-mongodb" }, { - "kind": "example", - "doc": "Transaction with auto-commit/rollback\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { _id?: unknown; name: string; age: number }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nawait mongo.transaction(async (session) => {\n const users = session.collection(\"users\");\n const insertResult = await users.insertOne({ name: \"Bob\", age: 25 });\n if (!insertResult.ok) throw insertResult.error;\n\n const updateResult = await users.updateOne(\n { name: \"Alice\" },\n { $inc: { age: 1 } }\n );\n if (!updateResult.ok) throw updateResult.error;\n});\n\nawait mongo.close();\n```\n" + "type": "reference", + "target": 1640, + "name": "MongoCountResult", + "package": "@probitas-test/client-mongodb" + } + ] + } + }, + { + "id": 1651, + "name": "MongoUpdateResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Update result." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 1271, + "name": "MongoUpdateResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "kind": "example", - "doc": "Aggregation pipeline\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { name: string; age: number; department: string }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\nconst users = mongo.collection(\"users\");\n\nconst result = await users.aggregate<{ _id: string; avgAge: number }>([\n { $group: { _id: \"$department\", avgAge: { $avg: \"$age\" } } },\n { $sort: { avgAge: -1 } },\n]);\nif (result.ok) {\n console.log(result.docs);\n}\n\nawait mongo.close();\n```\n" + "type": "reference", + "target": 1280, + "name": "MongoUpdateResultError", + "package": "@probitas-test/client-mongodb" }, { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nawait using mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst result = await mongo.collection(\"users\").find({});\nif (result.ok) {\n console.log(result.docs);\n}\n// Client automatically closed when scope exits\n```" + "type": "reference", + "target": 1289, + "name": "MongoUpdateResultFailure", + "package": "@probitas-test/client-mongodb" + } + ] + } + }, + { + "id": 1009, + "name": "UpdateFilter", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB update filter type (simplified for compatibility with mongodb driver)\nAllows update operators like $set, $inc, $unset, etc." } ] }, - "kind": "function", - "functionDef": { - "params": [ + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "MongoClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoClientConfig" - } - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoClient" - } + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1637, + "name": "createMongoClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 1638, + "name": "createMongoClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new MongoDB client instance.\n\nThe client provides typed collection access, aggregation pipelines,\ntransaction support, and comprehensive CRUD operations." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new MongoDB client instance" + } + ] + }, + { + "tag": "@example", + "name": "Basic usage with connection string", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst users = mongo.collection<{ name: string; age: number }>(\"users\");\nconst result = await users.find({ age: { $gte: 18 } });\n\nif (result.ok) {\n console.log(result.docs[0]);\n} else {\n console.error(\"Error:\", result.error.message);\n}\n\nawait mongo.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nconst mongo = await createMongoClient({\n url: {\n host: \"localhost\",\n port: 27017,\n username: \"admin\",\n password: \"secret\",\n authSource: \"admin\",\n },\n database: \"testdb\",\n});\n\nawait mongo.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Insert and query documents", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { name: string; age: number }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\nconst users = mongo.collection(\"users\");\n\n// Insert a document\nconst insertResult = await users.insertOne({ name: \"Alice\", age: 30 });\nif (insertResult.ok) {\n console.log(\"Inserted ID:\", insertResult.insertedId);\n}\n\n// Find documents with projection and sorting\nconst findResult = await users.find(\n { age: { $gte: 25 } },\n { sort: { name: 1 }, limit: 10 }\n);\nif (findResult.ok) {\n console.log(\"Found:\", findResult.docs.length);\n}\n\nawait mongo.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Transaction with auto-commit/rollback", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { _id?: unknown; name: string; age: number }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nawait mongo.transaction(async (session) => {\n const users = session.collection(\"users\");\n const insertResult = await users.insertOne({ name: \"Bob\", age: 25 });\n if (!insertResult.ok) throw insertResult.error;\n\n const updateResult = await users.updateOne(\n { name: \"Alice\" },\n { $inc: { age: 1 } }\n );\n if (!updateResult.ok) throw updateResult.error;\n});\n\nawait mongo.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Aggregation pipeline", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { name: string; age: number; department: string }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\nconst users = mongo.collection(\"users\");\n\nconst result = await users.aggregate<{ _id: string; avgAge: number }>([\n { $group: { _id: \"$department\", avgAge: { $avg: \"$age\" } } },\n { $sort: { avgAge: -1 } },\n]);\nif (result.ok) {\n console.log(result.docs);\n}\n\nawait mongo.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nawait using mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst result = await mongo.collection(\"users\").find({});\nif (result.ok) {\n console.log(result.docs);\n}\n// Client automatically closed when scope exits\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 1639, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 1025, + "name": "MongoClientConfig", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1082, + "name": "MongoClient", + "package": "@probitas-test/client-mongodb" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-mongodb", + "packageVersion": "0.6.2" } diff --git a/data/api/client-rabbitmq.json b/data/api/client-rabbitmq.json index 4968c20..6d173e4 100644 --- a/data/api/client-rabbitmq.json +++ b/data/api/client-rabbitmq.json @@ -1,8691 +1,9033 @@ { - "name": "client-rabbitmq", - "specifier": "@probitas/client-rabbitmq", - "version": "0.5.1", - "moduleDoc": "RabbitMQ client for [Probitas](https://github.com/probitas-test/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-test/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();\nawait client2.close();\n```\n\n## Exchange and Binding\n\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst client = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await client.channel();\n\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\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nawait using client = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await client.channel();\n\nawait channel.assertQueue(\"test\");\n// Client automatically closed when scope 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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [RabbitMQ](https://www.rabbitmq.com/)\n", - "exports": [ - { - "name": "RabbitMqMessageProperties", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 16, - "col": 0, - "byteIndex": 292 + "schemaVersion": "2.0", + "id": 1652, + "name": "@probitas-test/client-rabbitmq", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ client for [Probitas](https://github.com/probitas-test/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 " }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ message properties." + { + "kind": "code", + "text": "`AsyncDisposable`" }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "contentType", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 17, - "col": 2, - "byteIndex": 339 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "contentEncoding", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 18, - "col": 2, - "byteIndex": 372 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 19, - "col": 2, - "byteIndex": 409 - }, - "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": [] - }, + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-rabbitmq\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/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();\nawait client2.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Exchange and Binding\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst client = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await client.channel();\n\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\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nawait using client = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await client.channel();\n\nawait channel.assertQueue(\"test\");\n// Client automatically closed when scope exits\n```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client) | Core utilities and types |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sqs`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sqs) | AWS SQS client |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [RabbitMQ](https://www.rabbitmq.com/)" + } + ] + }, + "children": [ + { + "id": 1851, + "name": "RabbitMqChannelError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "deliveryMode", - "jsDoc": { - "doc": "1: non-persistent, 2: persistent" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 21, - "col": 2, - "byteIndex": 497 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "kind": "text", + "text": "Error thrown when a RabbitMQ channel operation fails." + } + ] + }, + "children": [ + { + "id": 1852, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 1853, + "name": "RabbitMqChannelError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "repr": "1", - "kind": "literal", - "literal": { - "kind": "number", - "number": 1 + "id": 1854, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "2", - "kind": "literal", - "literal": { - "kind": "number", - "number": 2 + "id": 1855, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1848, + "name": "RabbitMqChannelErrorOptions", + "package": "@probitas-test/client-rabbitmq" } } - ] - }, - "typeParams": [] - }, - { - "name": "priority", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 22, - "col": 2, - "byteIndex": 530 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "correlationId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 23, - "col": 2, - "byteIndex": 560 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "replyTo", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 24, - "col": 2, - "byteIndex": 595 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "expiration", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 25, - "col": 2, - "byteIndex": 624 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 26, - "col": 2, - "byteIndex": 656 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "timestamp", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 27, - "col": 2, - "byteIndex": 687 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "type", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 28, - "col": 2, - "byteIndex": 718 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "userId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 29, - "col": 2, - "byteIndex": 744 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "appId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 30, - "col": 2, - "byteIndex": 772 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 1851, + "name": "RabbitMqChannelError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": 1833, + "name": "RabbitMqError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 1832, + "name": "RabbitMqError.constructor" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqMessageFields", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 36, - "col": 0, - "byteIndex": 836 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ message fields." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "deliveryTag", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 37, - "col": 2, - "byteIndex": 879 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - "typeParams": [] - }, - { - "name": "redelivered", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 38, - "col": 2, - "byteIndex": 911 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "exchange", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 39, - "col": 2, - "byteIndex": 944 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "routingKey", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 40, - "col": 2, - "byteIndex": 973 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 1858, + "name": "channelId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqMessage", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 46, - "col": 0, - "byteIndex": 1034 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ message." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "content", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 47, - "col": 2, - "byteIndex": 1071 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - "typeParams": [] - }, - { - "name": "properties", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 48, - "col": 2, - "byteIndex": 1103 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqMessageProperties", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessageProperties" - } - }, - "typeParams": [] - }, - { - "name": "fields", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 49, - "col": 2, - "byteIndex": 1153 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqMessageFields", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessageFields" - } - }, - "typeParams": [] + }, + { + "id": 1859, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1838, + "name": "RabbitMqError.code" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1857, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "channel" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 1839, + "name": "RabbitMqError.kind" + } + }, + { + "id": 1856, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RabbitMqChannelError" + }, + "defaultValue": "\"RabbitMqChannelError\"", + "overwrites": { + "type": "reference", + "target": 1837, + "name": "RabbitMqError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1831, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 57, - "col": 0, - "byteIndex": 1311 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ connection configuration.\n\nExtends CommonConnectionConfig with RabbitMQ-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1840, + "name": "RabbitMqConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" - } + "kind": "text", + "text": "Error thrown when a RabbitMQ connection cannot be established." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "vhost", - "jsDoc": { - "doc": "Virtual host.", - "tags": [ + ] + }, + "children": [ + { + "id": 1841, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 1842, + "name": "RabbitMqConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"/\"" + "id": 1843, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1844, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1829, + "name": "RabbitMqErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 62, - "col": 2, - "byteIndex": 1437 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 1840, + "name": "RabbitMqConnectionError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": 1833, + "name": "RabbitMqError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 1832, + "name": "RabbitMqError.constructor" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1847, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1838, + "name": "RabbitMqError.code" + } + }, + { + "id": 1846, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 1839, + "name": "RabbitMqError.kind" + } + }, + { + "id": 1845, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RabbitMqConnectionError" + }, + "defaultValue": "\"RabbitMqConnectionError\"", + "overwrites": { + "type": "reference", + "target": 1837, + "name": "RabbitMqError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1831, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 68, - "col": 0, - "byteIndex": 1507 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ client configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1831, + "name": "RabbitMqError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "kind": "text", + "text": "Base error class for RabbitMQ client errors." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "RabbitMQ connection URL or configuration object.\n", - "tags": [ + ] + }, + "children": [ + { + "id": 1832, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 1833, + "name": "RabbitMqError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "example", - "doc": "String URL\n```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = { url: \"amqp://localhost:5672\" };\n```\n" + "id": 1834, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "With credentials\n```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = {\n url: \"amqp://guest:guest@localhost:5672/%2F\",\n};\n```\n" + "id": 1835, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"rabbitmq\"" }, { - "kind": "example", - "doc": "Config object\n```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = {\n url: { port: 5672, username: \"guest\", password: \"guest\", vhost: \"/\" },\n};\n```" + "id": 1836, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1829, + "name": "RabbitMqErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 94, - "col": 2, - "byteIndex": 2350 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "type": { + "type": "reference", + "target": 1831, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 1838, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1839, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 1837, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"RabbitMqError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 1840, + "name": "RabbitMqConnectionError" + }, + { + "type": "reference", + "target": 1851, + "name": "RabbitMqChannelError" + }, + { + "type": "reference", + "target": 1863, + "name": "RabbitMqNotFoundError" + }, + { + "type": "reference", + "target": 1875, + "name": "RabbitMqPreconditionFailedError" + } + ] + }, + { + "id": 1863, + "name": "RabbitMqNotFoundError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a RabbitMQ resource (queue or exchange) is not found." + } + ] + }, + "children": [ + { + "id": 1864, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 1865, + "name": "RabbitMqNotFoundError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 1866, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "repr": "RabbitMqConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConnectionConfig" + "id": 1867, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1860, + "name": "RabbitMqNotFoundErrorOptions", + "package": "@probitas-test/client-rabbitmq" } } - ] - }, - "typeParams": [] - }, - { - "name": "heartbeat", - "jsDoc": { - "doc": "Heartbeat interval in seconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 96, - "col": 2, - "byteIndex": 2440 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "prefetch", - "jsDoc": { - "doc": "Default prefetch count for channels" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 98, - "col": 2, - "byteIndex": 2516 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw errors instead of returning them in results.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 103, - "col": 2, - "byteIndex": 2645 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 1863, + "name": "RabbitMqNotFoundError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": 1833, + "name": "RabbitMqError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 1832, + "name": "RabbitMqError.constructor" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1871, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1838, + "name": "RabbitMqError.code" + } + }, + { + "id": 1869, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "not_found" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 1839, + "name": "RabbitMqError.kind" + } + }, + { + "id": 1868, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RabbitMqNotFoundError" + }, + "defaultValue": "\"RabbitMqNotFoundError\"", + "overwrites": { + "type": "reference", + "target": 1837, + "name": "RabbitMqError.name" + } + }, + { + "id": 1870, + "name": "resource", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1831, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 109, - "col": 0, - "byteIndex": 2730 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base options for RabbitMQ operations." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1875, + "name": "RabbitMqPreconditionFailedError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" + "kind": "text", + "text": "Error thrown when a RabbitMQ precondition check fails." + } + ] + }, + "children": [ + { + "id": 1876, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 1877, + "name": "RabbitMqPreconditionFailedError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 1878, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1879, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1872, + "name": "RabbitMqPreconditionFailedErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } + } + ], + "type": { + "type": "reference", + "target": 1875, + "name": "RabbitMqPreconditionFailedError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": 1833, + "name": "RabbitMqError.constructor" + } } + ], + "overwrites": { + "type": "reference", + "target": 1832, + "name": "RabbitMqError.constructor" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw errors instead of returning them in results.\nOverrides the client-level `throwOnError` setting." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 114, - "col": 2, - "byteIndex": 2924 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + }, + { + "id": 1883, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1838, + "name": "RabbitMqError.code" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1881, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "precondition_failed" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 1839, + "name": "RabbitMqError.kind" + } + }, + { + "id": 1880, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RabbitMqPreconditionFailedError" + }, + "defaultValue": "\"RabbitMqPreconditionFailedError\"", + "overwrites": { + "type": "reference", + "target": 1837, + "name": "RabbitMqError.name" + } + }, + { + "id": 1882, + "name": "reason", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1831, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqExchangeOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 120, - "col": 0, - "byteIndex": 2989 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exchange options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1933, + "name": "RabbitMqAckResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } + "kind": "text", + "text": "Ack result with RabbitMQ error." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "durable", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 121, - "col": 2, - "byteIndex": 3058 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "autoDelete", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 122, - "col": 2, - "byteIndex": 3088 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 1938, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] }, - { - "name": "internal", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 123, - "col": 2, - "byteIndex": 3121 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "arguments", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 124, - "col": 2, - "byteIndex": 3152 - }, - "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": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.duration" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqQueueOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 130, - "col": 0, - "byteIndex": 3227 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Queue options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "durable", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 131, - "col": 2, - "byteIndex": 3293 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "exclusive", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 132, - "col": 2, - "byteIndex": 3323 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + }, + { + "id": 1936, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] }, - { - "name": "autoDelete", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 133, - "col": 2, - "byteIndex": 3355 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 1884, + "name": "RabbitMqOperationError", + "package": "@probitas-test/client-rabbitmq" }, - { - "name": "arguments", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 134, - "col": 2, - "byteIndex": 3388 - }, - "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" + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.error" + } + }, + { + "id": 1937, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "messageTtl", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 135, - "col": 2, - "byteIndex": 3436 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "rabbitmq:ack" }, - { - "name": "maxLength", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 136, - "col": 2, - "byteIndex": 3468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.kind" + } + }, + { + "id": 1935, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "deadLetterExchange", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 137, - "col": 2, - "byteIndex": 3499 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "deadLetterRoutingKey", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 138, - "col": 2, - "byteIndex": 3539 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1934, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqAckResultBase" + }, + "name": "RabbitMqAckResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqPublishOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 144, - "col": 0, - "byteIndex": 3610 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Publish options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1939, + "name": "RabbitMqAckResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } + "kind": "text", + "text": "Ack result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "persistent", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 145, - "col": 2, - "byteIndex": 3678 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "contentType", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 146, - "col": 2, - "byteIndex": 3711 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "contentEncoding", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 147, - "col": 2, - "byteIndex": 3744 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 148, - "col": 2, - "byteIndex": 3781 - }, - "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" + ] + }, + "children": [ + { + "id": 1944, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "correlationId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 149, - "col": 2, - "byteIndex": 3827 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "replyTo", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 150, - "col": 2, - "byteIndex": 3862 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "expiration", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 151, - "col": 2, - "byteIndex": 3891 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.duration" + } + }, + { + "id": 1942, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] }, - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 152, - "col": 2, - "byteIndex": 3923 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 1885, + "name": "RabbitMqFailureError", + "package": "@probitas-test/client-rabbitmq" }, - { - "name": "priority", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 153, - "col": 2, - "byteIndex": 3954 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqConsumeOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 159, - "col": 0, - "byteIndex": 4013 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Consume options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.error" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "noAck", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 160, - "col": 2, - "byteIndex": 4081 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + }, + { + "id": 1943, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "exclusive", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 161, - "col": 2, - "byteIndex": 4109 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "rabbitmq:ack" }, - { - "name": "priority", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 162, - "col": 2, - "byteIndex": 4141 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqNackOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 168, - "col": 0, - "byteIndex": 4197 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Nack options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "requeue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 169, - "col": 2, - "byteIndex": 4262 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + }, + { + "id": 1941, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "allUpTo", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 170, - "col": 2, - "byteIndex": 4292 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqRejectOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 176, - "col": 0, - "byteIndex": 4350 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Reject options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "requeue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 177, - "col": 2, - "byteIndex": 4417 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqExchangeType", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 183, - "col": 0, - "byteIndex": 4474 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exchange type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "direct", - "kind": "literal", - "literal": { - "kind": "string", - "string": "direct" - } - }, - { - "repr": "topic", - "kind": "literal", - "literal": { - "kind": "string", - "string": "topic" - } - }, - { - "repr": "fanout", - "kind": "literal", - "literal": { - "kind": "string", - "string": "fanout" - } - }, - { - "repr": "headers", - "kind": "literal", - "literal": { - "kind": "string", - "string": "headers" - } - } - ] }, - "typeParams": [] - } + { + "id": 1940, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqAckResultBase" + }, + "name": "RabbitMqAckResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqChannel", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 188, - "col": 0, - "byteIndex": 4592 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ channel interface." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1927, + "name": "RabbitMqAckResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + "kind": "text", + "text": "Successful ack result." } - ], - "constructors": [], - "methods": [ - { - "name": "assertExchange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 190, - "col": 2, - "byteIndex": 4667 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] + }, + "children": [ + { + "id": 1932, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.duration" + } + }, + { + "id": 1930, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "type", - "optional": false, - "tsType": { - "repr": "RabbitMqExchangeType", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeType" - } - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqExchangeOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "deleteExchange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 195, - "col": 2, - "byteIndex": 4812 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.error" + } + }, + { + "id": 1931, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "assertQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 201, - "col": 2, - "byteIndex": 4929 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "literal", + "value": "rabbitmq:ack" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.kind" + } + }, + { + "id": 1929, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqQueueOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "deleteQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 205, - "col": 2, - "byteIndex": 5033 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.ok" + } + }, + { + "id": 1928, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqAckResultBase" + }, + "name": "RabbitMqAckResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 1753, + "name": "RabbitMqChannel", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ channel interface." + } + ] + }, + "children": [ + { + "id": 1806, + "name": "ack", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1807, + "name": "ack", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1808, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1672, + "name": "RabbitMqMessage", + "package": "@probitas-test/client-rabbitmq" + } + }, + { + "id": 1809, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" - } + "type": "reference", + "target": 1945, + "name": "RabbitMqAckResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "purgeQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 209, - "col": 2, - "byteIndex": 5132 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" + } + ] + }, + { + "id": 1754, + "name": "assertExchange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1755, + "name": "assertExchange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1756, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1757, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1752, + "name": "RabbitMqExchangeType", + "package": "@probitas-test/client-rabbitmq" + } + }, + { + "id": 1758, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1695, + "name": "RabbitMqExchangeOptions", + "package": "@probitas-test/client-rabbitmq" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" - } + "type": "reference", + "target": 1992, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "bindQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 213, - "col": 2, - "byteIndex": 5230 - }, - "params": [ - { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "exchange", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "routingKey", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" + } + ] + }, + { + "id": 1763, + "name": "assertQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1764, + "name": "assertQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1765, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1766, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1704, + "name": "RabbitMqQueueOptions", + "package": "@probitas-test/client-rabbitmq" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" - } + "type": "reference", + "target": 1973, + "name": "RabbitMqQueueResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "unbindQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 219, - "col": 2, - "byteIndex": 5377 - }, - "params": [ - { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "exchange", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "routingKey", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" + } + ] + }, + { + "id": 1775, + "name": "bindQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1776, + "name": "bindQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1777, + "name": "queue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1778, + "name": "exchange", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1779, + "name": "routingKey", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1780, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1992, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 1821, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1822, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" - } + "type": "intrinsic", + "name": "void" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "publish", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 227, - "col": 2, - "byteIndex": 5540 - }, - "params": [ - { - "kind": "identifier", - "name": "exchange", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "routingKey", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "content", - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + } + ] + }, + { + "id": 1802, + "name": "consume", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1803, + "name": "consume", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1804, + "name": "queue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqPublishOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishOptions" + }, + { + "id": 1805, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1731, + "name": "RabbitMqConsumeOptions", + "package": "@probitas-test/client-rabbitmq" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ { - "repr": "RabbitMqPublishResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResult" - } + "type": "reference", + "target": 1672, + "name": "RabbitMqMessage", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "AsyncIterable", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "sendToQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 233, - "col": 2, - "byteIndex": 5697 - }, - "params": [ - { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "content", - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + } + ] + }, + { + "id": 1759, + "name": "deleteExchange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1760, + "name": "deleteExchange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1761, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqPublishOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishOptions" + }, + { + "id": 1762, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqPublishResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResult" - } + "type": "reference", + "target": 1992, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "get", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 240, - "col": 2, - "byteIndex": 5845 - }, - "params": [ - { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" + } + ] + }, + { + "id": 1767, + "name": "deleteQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1768, + "name": "deleteQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1769, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1770, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqConsumeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResult" - } + "type": "reference", + "target": 1973, + "name": "RabbitMqQueueResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "consume", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 241, - "col": 2, - "byteIndex": 5926 - }, - "params": [ - { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqConsumeOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeOptions" + } + ] + }, + { + "id": 1798, + "name": "get", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1799, + "name": "get", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1800, + "name": "queue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1801, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" } } - } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } + "type": "reference", + "target": 1926, + "name": "RabbitMqConsumeResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "AsyncIterable" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "ack", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 247, - "col": 2, - "byteIndex": 6041 - }, - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" + } + ] + }, + { + "id": 1810, + "name": "nack", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1811, + "name": "nack", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1812, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1672, + "name": "RabbitMqMessage", + "package": "@probitas-test/client-rabbitmq" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" + }, + { + "id": 1813, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1739, + "name": "RabbitMqNackOptions", + "package": "@probitas-test/client-rabbitmq" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqAckResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResult" - } + "type": "reference", + "target": 1945, + "name": "RabbitMqAckResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "nack", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 251, - "col": 2, - "byteIndex": 6142 - }, - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqNackOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqNackOptions" + } + ] + }, + { + "id": 1818, + "name": "prefetch", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1819, + "name": "prefetch", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1820, + "name": "count", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqAckResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResult" - } + "type": "intrinsic", + "name": "void" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "reject", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 255, - "col": 2, - "byteIndex": 6248 - }, - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" + } + ] + }, + { + "id": 1787, + "name": "publish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1788, + "name": "publish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1789, + "name": "exchange", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqRejectOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqRejectOptions" + }, + { + "id": 1790, + "name": "routingKey", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1791, + "name": "content", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "name": "Uint8Array", + "package": "typescript" + } + }, + { + "id": 1792, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1717, + "name": "RabbitMqPublishOptions", + "package": "@probitas-test/client-rabbitmq" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqAckResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResult" - } + "type": "reference", + "target": 1904, + "name": "RabbitMqPublishResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "prefetch", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 261, - "col": 2, - "byteIndex": 6373 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + } + ] + }, + { + "id": 1771, + "name": "purgeQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1772, + "name": "purgeQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1773, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1774, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "type": "reference", + "target": 1973, + "name": "RabbitMqQueueResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "close", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 263, - "col": 2, - "byteIndex": 6416 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 1814, + "name": "reject", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1815, + "name": "reject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1816, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 1672, + "name": "RabbitMqMessage", + "package": "@probitas-test/client-rabbitmq" + } + }, + { + "id": 1817, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1746, + "name": "RabbitMqRejectOptions", + "package": "@probitas-test/client-rabbitmq" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "type": "reference", + "target": 1945, + "name": "RabbitMqAckResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 269, - "col": 0, - "byteIndex": 6481 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ client interface." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" } - } - ], - "constructors": [], - "methods": [ - { - "name": "channel", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 272, - "col": 2, - "byteIndex": 6583 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 1793, + "name": "sendToQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1794, + "name": "sendToQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1795, + "name": "queue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1796, + "name": "content", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "name": "Uint8Array", + "package": "typescript" + } + }, + { + "id": 1797, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1717, + "name": "RabbitMqPublishOptions", + "package": "@probitas-test/client-rabbitmq" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RabbitMqChannel", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqChannel" - } + "type": "reference", + "target": 1904, + "name": "RabbitMqPublishResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "close", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 274, - "col": 2, - "byteIndex": 6623 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 1781, + "name": "unbindQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1782, + "name": "unbindQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 1783, + "name": "queue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1784, + "name": "exchange", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1785, + "name": "routingKey", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1786, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "type": "reference", + "target": 1992, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "config", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 270, - "col": 2, - "byteIndex": 6541 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqClientConfig" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "RabbitMqErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 143 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for RabbitMQ errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1848, + "name": "RabbitMqChannelErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } + "kind": "text", + "text": "Options for RabbitMQ channel errors." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 11, - "col": 2, - "byteIndex": 206 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 1849, + "name": "channelId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1850, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1830, + "name": "RabbitMqErrorOptions.code" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1829, + "name": "RabbitMqErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 17, - "col": 0, - "byteIndex": 289 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for RabbitMQ client errors." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - "right": "rabbitmq", - "tsType": null - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 21, - "col": 2, - "byteIndex": 419 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 18, - "col": 2, - "byteIndex": 340 - } - }, + "id": 1823, + "name": "RabbitMqClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 19, - "col": 2, - "byteIndex": 392 - } + "kind": "text", + "text": "RabbitMQ client interface." } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RabbitMqConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 34, - "col": 0, - "byteIndex": 673 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a RabbitMQ connection cannot be established." + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqErrorOptions" + "children": [ + { + "id": 1824, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 1682, + "name": "RabbitMqClientConfig", + "package": "@probitas-test/client-rabbitmq" + } + }, + { + "id": 1825, + "name": "channel", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1826, + "name": "channel", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1753, + "name": "RabbitMqChannel", + "package": "@probitas-test/client-rabbitmq" } - } + ], + "name": "Promise", + "package": "typescript" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 38, - "col": 2, - "byteIndex": 841 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 35, - "col": 2, - "byteIndex": 736 } - }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + ] + }, + { + "id": 1827, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 1828, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 36, - "col": 2, - "byteIndex": 790 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "RabbitMqError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RabbitMqChannelErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 46, - "col": 0, - "byteIndex": 1002 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for RabbitMQ channel errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqErrorOptions" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "channelId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1080 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "RabbitMqChannelError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 53, - "col": 0, - "byteIndex": 1177 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a RabbitMQ channel operation fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 1682, + "name": "RabbitMqClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "RabbitMQ client configuration." + } + ] + }, + "children": [ + { + "id": 1684, + "name": "heartbeat", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqChannelErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqChannelErrorOptions" - } - } + "kind": "text", + "text": "Heartbeat interval in seconds" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 58, - "col": 2, - "byteIndex": 1367 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 54, - "col": 2, - "byteIndex": 1237 - } + }, + { + "id": 1685, + "name": "prefetch", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default prefetch count for channels" + } + ] }, - { - "tsType": { - "repr": "channel", - "kind": "literal", - "literal": { - "kind": "string", - "string": "channel" + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1689, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 55, - "col": 2, - "byteIndex": 1288 - } + ] }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "channelId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 56, - "col": 2, - "byteIndex": 1335 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "RabbitMqError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RabbitMqNotFoundErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 67, - "col": 0, - "byteIndex": 1575 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for RabbitMQ not found errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqErrorOptions" - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "resource", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 68, - "col": 2, - "byteIndex": 1654 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + }, + { + "id": 1688, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "typeParams": [] + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqNotFoundError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 74, - "col": 0, - "byteIndex": 1767 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a RabbitMQ resource (queue or exchange) is not found." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + }, + { + "id": 1686, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "RabbitMqNotFoundErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqNotFoundErrorOptions" - } - } + "kind": "text", + "text": "Whether to throw errors instead of returning them in results." } ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 79, - "col": 2, - "byteIndex": 1959 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 75, - "col": 2, - "byteIndex": 1828 - } + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] }, - { - "tsType": { - "repr": "not_found", - "kind": "literal", - "literal": { - "kind": "string", - "string": "not_found" + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1687, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1880 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "resource", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 77, - "col": 2, - "byteIndex": 1929 - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "indexSignatures": [], - "methods": [], - "extends": "RabbitMqError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1683, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ connection URL or configuration object." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "String URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = { url: \"amqp://localhost:5672\" };\n```" + } + ] + }, + { + "tag": "@example", + "name": "With credentials", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = {\n url: \"amqp://guest:guest@localhost:5672/%2F\",\n};\n```" + } + ] + }, + { + "tag": "@example", + "name": "Config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = {\n url: { port: 5672, username: \"guest\", password: \"guest\", vhost: \"/\" },\n};\n```" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 1676, + "name": "RabbitMqConnectionConfig", + "package": "@probitas-test/client-rabbitmq" + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "RabbitMqPreconditionFailedErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 88, - "col": 0, - "byteIndex": 2176 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for RabbitMQ precondition failed errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ + "id": 1676, + "name": "RabbitMqConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "reason", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 90, - "col": 2, - "byteIndex": 2267 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "RabbitMQ connection configuration.\n\nExtends CommonConnectionConfig with RabbitMQ-specific options." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqPreconditionFailedError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 96, - "col": 0, - "byteIndex": 2361 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a RabbitMQ precondition check fails." + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 1678, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "RabbitMqPreconditionFailedErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPreconditionFailedErrorOptions" - } - } + "kind": "text", + "text": "Hostname or IP address." } ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 101, - "col": 2, - "byteIndex": 2581 - } + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 97, - "col": 2, - "byteIndex": 2432 - } + }, + { + "id": 1681, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." + } + ] }, - { - "tsType": { - "repr": "precondition_failed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "precondition_failed" + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 1679, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 98, - "col": 2, - "byteIndex": 2494 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "reason", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 99, - "col": 2, - "byteIndex": 2553 - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" } - ], - "indexSignatures": [], - "methods": [], - "extends": "RabbitMqError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1680, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + }, + { + "id": 1677, + "name": "vhost", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Virtual host." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"/\"\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] }, { - "name": "RabbitMqOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 114, - "col": 0, - "byteIndex": 2903 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate a RabbitMQ operation error.\nThese are errors where the operation reached the server but failed." + "id": 1731, + "name": "RabbitMqConsumeOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Consume options." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqChannelError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqChannelError" - } - }, - { - "repr": "RabbitMqNotFoundError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqNotFoundError" + "children": [ + { + "id": 1733, + "name": "exclusive", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1732, + "name": "noAck", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1734, + "name": "priority", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1738, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - { - "repr": "RabbitMqPreconditionFailedError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPreconditionFailedError" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 1694, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 1737, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - { - "repr": "RabbitMqError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqError" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 1693, + "name": "RabbitMqOptions.signal" + } + }, + { + "id": 1735, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, + { + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 1691, + "name": "RabbitMqOptions.throwOnError" + } }, - "typeParams": [] - } + { + "id": 1736, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1692, + "name": "RabbitMqOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 124, - "col": 0, - "byteIndex": 3198 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the RabbitMQ server." + "id": 1912, + "name": "RabbitMqConsumeResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Consume result with RabbitMQ error." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConnectionError" + "children": [ + { + "id": 1918, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.duration" + } + }, + { + "id": 1915, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + ] + }, + "type": { + "type": "reference", + "target": 1884, + "name": "RabbitMqOperationError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.error" + } + }, + { + "id": 1917, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - } - ] + ] + }, + "type": { + "type": "literal", + "value": "rabbitmq:consume" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.kind" + } }, - "typeParams": [] - } - }, - { - "name": "RabbitMqPublishResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 19, - "col": 0, - "byteIndex": 586 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful publish result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqPublishResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultBase" - } + { + "id": 1916, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.message" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 21, - "col": 2, - "byteIndex": 672 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 1914, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 22, - "col": 2, - "byteIndex": 700 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 23, - "col": 2, - "byteIndex": 721 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1913, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqConsumeResultBase" + }, + "name": "RabbitMqConsumeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqPublishResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 29, - "col": 0, - "byteIndex": 793 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Publish result with RabbitMQ error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1919, + "name": "RabbitMqConsumeResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqPublishResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultBase" - } + "kind": "text", + "text": "Consume result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 30, - "col": 2, - "byteIndex": 875 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 1925, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 31, - "col": 2, - "byteIndex": 903 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.duration" + } + }, + { + "id": 1922, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 32, - "col": 2, - "byteIndex": 925 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" + "type": { + "type": "reference", + "target": 1885, + "name": "RabbitMqFailureError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.error" + } + }, + { + "id": 1924, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": "rabbitmq:consume" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqPublishResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 38, - "col": 0, - "byteIndex": 1019 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Publish result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqPublishResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultBase" - } + }, + { + "id": 1923, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.message" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 40, - "col": 2, - "byteIndex": 1105 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 1921, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 41, - "col": 2, - "byteIndex": 1134 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 42, - "col": 2, - "byteIndex": 1156 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqPublishResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 48, - "col": 0, - "byteIndex": 1224 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Publish result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqPublishResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultSuccess" - } - }, - { - "repr": "RabbitMqPublishResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultError" - } - }, - { - "repr": "RabbitMqPublishResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultFailure" - } - } - ] }, - "typeParams": [] - } + { + "id": 1920, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqConsumeResultBase" + }, + "name": "RabbitMqConsumeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { + "id": 1905, "name": "RabbitMqConsumeResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 68, - "col": 0, - "byteIndex": 1791 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful consume result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqConsumeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultBase" - } + "kind": "text", + "text": "Successful consume result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 70, - "col": 2, - "byteIndex": 1877 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 71, - "col": 2, - "byteIndex": 1905 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 1911, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 72, - "col": 2, - "byteIndex": 1926 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 73, - "col": 2, - "byteIndex": 1950 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqConsumeResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 79, - "col": 0, - "byteIndex": 2042 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Consume result with RabbitMQ error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqConsumeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultBase" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.duration" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 80, - "col": 2, - "byteIndex": 2124 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 1908, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 81, - "col": 2, - "byteIndex": 2152 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 82, - "col": 2, - "byteIndex": 2174 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.error" + } + }, + { + "id": 1910, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 83, - "col": 2, - "byteIndex": 2216 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqConsumeResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 89, - "col": 0, - "byteIndex": 2294 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Consume result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqConsumeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultBase" - } + "type": { + "type": "literal", + "value": "rabbitmq:consume" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 91, - "col": 2, - "byteIndex": 2380 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 1909, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 1672, + "name": "RabbitMqMessage", + "package": "@probitas-test/client-rabbitmq" + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 92, - "col": 2, - "byteIndex": 2409 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.message" + } + }, + { + "id": 1907, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 93, - "col": 2, - "byteIndex": 2431 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 94, - "col": 2, - "byteIndex": 2471 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1906, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqConsumeResultBase" + }, + "name": "RabbitMqConsumeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqConsumeResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 100, - "col": 0, - "byteIndex": 2552 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Consume result (single message retrieval)." + "id": 1829, + "name": "RabbitMqErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for RabbitMQ errors." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqConsumeResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultSuccess" - } - }, - { - "repr": "RabbitMqConsumeResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultError" - } - }, - { - "repr": "RabbitMqConsumeResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultFailure" - } - } - ] + "children": [ + { + "id": 1830, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 1848, + "name": "RabbitMqChannelErrorOptions" }, - "typeParams": [] - } + { + "type": "reference", + "target": 1860, + "name": "RabbitMqNotFoundErrorOptions" + }, + { + "type": "reference", + "target": 1872, + "name": "RabbitMqPreconditionFailedErrorOptions" + } + ] }, { - "name": "RabbitMqAckResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 119, - "col": 0, - "byteIndex": 3055 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful ack result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1695, + "name": "RabbitMqExchangeOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqAckResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultBase" - } + "kind": "text", + "text": "Exchange options." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 120, - "col": 2, - "byteIndex": 3131 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 121, - "col": 2, - "byteIndex": 3159 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 1699, + "name": "arguments", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 122, - "col": 2, - "byteIndex": 3180 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + ], + "name": "Record", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqAckResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 128, - "col": 0, - "byteIndex": 3248 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Ack result with RabbitMQ error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqAckResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultBase" - } + }, + { + "id": 1697, + "name": "autoDelete", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 129, - "col": 2, - "byteIndex": 3322 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 1696, + "name": "durable", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1698, + "name": "internal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1703, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 130, - "col": 2, - "byteIndex": 3350 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 1694, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 1702, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 131, - "col": 2, - "byteIndex": 3372 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 1693, + "name": "RabbitMqOptions.signal" + } + }, + { + "id": 1700, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, + { + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 1691, + "name": "RabbitMqOptions.throwOnError" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1701, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1692, + "name": "RabbitMqOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqAckResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 137, - "col": 0, - "byteIndex": 3462 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Ack result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1980, + "name": "RabbitMqExchangeResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqAckResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultBase" - } + "kind": "text", + "text": "Exchange result with RabbitMQ error." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 138, - "col": 2, - "byteIndex": 3538 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "children": [ + { + "id": 1985, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 139, - "col": 2, - "byteIndex": 3567 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 140, - "col": 2, - "byteIndex": 3589 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.duration" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqAckResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 146, - "col": 0, - "byteIndex": 3658 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Ack/Nack result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqAckResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultSuccess" - } - }, - { - "repr": "RabbitMqAckResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultError" - } - }, - { - "repr": "RabbitMqAckResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultFailure" - } - } - ] }, - "typeParams": [] - } - }, - { - "name": "RabbitMqQueueResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 168, - "col": 0, - "byteIndex": 4269 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful queue result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 169, - "col": 2, - "byteIndex": 4349 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + { + "id": 1983, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 170, - "col": 2, - "byteIndex": 4377 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "reference", + "target": 1884, + "name": "RabbitMqOperationError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.error" + } + }, + { + "id": 1984, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 171, - "col": 2, - "byteIndex": 4398 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "rabbitmq:exchange" }, - { - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 172, - "col": 2, - "byteIndex": 4422 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.kind" + } + }, + { + "id": 1982, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 173, - "col": 2, - "byteIndex": 4448 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 174, - "col": 2, - "byteIndex": 4481 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1981, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqExchangeResultBase" + }, + "name": "RabbitMqExchangeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqQueueResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 180, - "col": 0, - "byteIndex": 4561 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Queue result with RabbitMQ error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1986, + "name": "RabbitMqExchangeResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultBase" - } + "kind": "text", + "text": "Exchange result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 181, - "col": 2, - "byteIndex": 4639 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 1991, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 182, - "col": 2, - "byteIndex": 4667 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.duration" + } + }, + { + "id": 1989, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 183, - "col": 2, - "byteIndex": 4689 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" + "type": { + "type": "reference", + "target": 1885, + "name": "RabbitMqFailureError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.error" + } + }, + { + "id": 1990, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "rabbitmq:exchange" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.kind" + } + }, + { + "id": 1988, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] - }, - { - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 184, - "col": 2, - "byteIndex": 4731 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + ] }, - { - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 185, - "col": 2, - "byteIndex": 4755 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 186, - "col": 2, - "byteIndex": 4786 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1987, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqExchangeResultBase" + }, + "name": "RabbitMqExchangeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqQueueResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 192, - "col": 0, - "byteIndex": 4868 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Queue result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1974, + "name": "RabbitMqExchangeResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultBase" - } + "kind": "text", + "text": "Successful exchange result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 193, - "col": 2, - "byteIndex": 4948 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "children": [ + { + "id": 1979, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 194, - "col": 2, - "byteIndex": 4977 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 195, - "col": 2, - "byteIndex": 4999 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.duration" + } + }, + { + "id": 1977, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] - }, - { - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 196, - "col": 2, - "byteIndex": 5039 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + ] }, - { - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 197, - "col": 2, - "byteIndex": 5063 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 198, - "col": 2, - "byteIndex": 5094 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.error" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqQueueResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 204, - "col": 0, - "byteIndex": 5164 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Queue declaration result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultSuccess" - } - }, - { - "repr": "RabbitMqQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultError" - } - }, - { - "repr": "RabbitMqQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultFailure" - } - } - ] }, - "typeParams": [] - } - }, - { - "name": "RabbitMqExchangeResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 223, - "col": 0, - "byteIndex": 5684 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful exchange result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqExchangeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 225, - "col": 2, - "byteIndex": 5772 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + { + "id": 1978, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 226, - "col": 2, - "byteIndex": 5800 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": "rabbitmq:exchange" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.kind" + } + }, + { + "id": 1976, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 227, - "col": 2, - "byteIndex": 5821 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1975, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqExchangeResultBase" + }, + "name": "RabbitMqExchangeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqExchangeResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 233, - "col": 0, - "byteIndex": 5894 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exchange result with RabbitMQ error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1672, + "name": "RabbitMqMessage", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqExchangeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultBase" - } + "kind": "text", + "text": "RabbitMQ message." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 235, - "col": 2, - "byteIndex": 5980 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 236, - "col": 2, - "byteIndex": 6008 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 6030 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 1673, + "name": "content", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "name": "Uint8Array", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1675, + "name": "fields", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 1667, + "name": "RabbitMqMessageFields", + "package": "@probitas-test/client-rabbitmq" + } + }, + { + "id": 1674, + "name": "properties", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 1653, + "name": "RabbitMqMessageProperties", + "package": "@probitas-test/client-rabbitmq" + } + } + ] }, { - "name": "RabbitMqExchangeResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 243, - "col": 0, - "byteIndex": 6125 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exchange result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 1667, + "name": "RabbitMqMessageFields", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqExchangeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultBase" - } + "kind": "text", + "text": "RabbitMQ message fields." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 245, - "col": 2, - "byteIndex": 6213 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 246, - "col": 2, - "byteIndex": 6242 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 247, - "col": 2, - "byteIndex": 6264 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 1668, + "name": "deliveryTag", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "bigint" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 1670, + "name": "exchange", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1669, + "name": "redelivered", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1671, + "name": "routingKey", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "RabbitMqExchangeResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 253, - "col": 0, - "byteIndex": 6345 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exchange declaration result." + "id": 1653, + "name": "RabbitMqMessageProperties", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ message properties." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqExchangeResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultSuccess" + "children": [ + { + "id": 1666, + "name": "appId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1655, + "name": "contentEncoding", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1654, + "name": "contentType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1659, + "name": "correlationId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1657, + "name": "deliveryMode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "1: non-persistent, 2: persistent" } - }, - { - "repr": "RabbitMqExchangeResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultError" + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": 1 + }, + { + "type": "literal", + "value": 2 } - }, - { - "repr": "RabbitMqExchangeResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultFailure" + ] + } + }, + { + "id": 1661, + "name": "expiration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1656, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } - } - ] + ], + "name": "Record", + "package": "typescript" + } }, - "typeParams": [] - } + { + "id": 1662, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1658, + "name": "priority", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1660, + "name": "replyTo", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1663, + "name": "timestamp", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1664, + "name": "type", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1665, + "name": "userId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "RabbitMqResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 265, - "col": 0, - "byteIndex": 6706 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union of all RabbitMQ result types." + "id": 1739, + "name": "RabbitMqNackOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Nack options." + } + ] }, - "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" + "children": [ + { + "id": 1741, + "name": "allUpTo", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1740, + "name": "requeue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1745, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 1694, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 1744, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 1693, + "name": "RabbitMqOptions.signal" + } + }, + { + "id": 1742, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, + { + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 1691, + "name": "RabbitMqOptions.throwOnError" + } }, - "typeParams": [] - } + { + "id": 1743, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1692, + "name": "RabbitMqOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqPublishResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 280, - "col": 0, - "byteIndex": 7135 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqPublishResultSuccess.", - "tags": [ + "id": 1860, + "name": "RabbitMqNotFoundErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Options for RabbitMQ not found errors." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 288, - "col": 2, - "byteIndex": 7398 - } + "children": [ + { + "id": 1862, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1830, + "name": "RabbitMqErrorOptions.code" } - ], - "properties": [ + }, + { + "id": 1861, + "name": "resource", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1829, + "name": "RabbitMqErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 1690, + "name": "RabbitMqOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "rabbitmq:publish", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:publish" + "kind": "text", + "text": "Base options for RabbitMQ operations." + } + ] + }, + "children": [ + { + "id": 1694, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 282, - "col": 2, - "byteIndex": 7227 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 283, - "col": 2, - "byteIndex": 7274 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 1693, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 284, - "col": 2, - "byteIndex": 7312 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 285, - "col": 2, - "byteIndex": 7343 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 286, - "col": 2, - "byteIndex": 7368 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqPublishResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultSuccess" - } + }, + { + "id": 1691, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, + { + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1692, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 1695, + "name": "RabbitMqExchangeOptions" + }, + { + "type": "reference", + "target": 1704, + "name": "RabbitMqQueueOptions" + }, + { + "type": "reference", + "target": 1717, + "name": "RabbitMqPublishOptions" + }, + { + "type": "reference", + "target": 1731, + "name": "RabbitMqConsumeOptions" + }, + { + "type": "reference", + "target": 1739, + "name": "RabbitMqNackOptions" + }, + { + "type": "reference", + "target": 1746, + "name": "RabbitMqRejectOptions" + } + ] }, { - "name": "RabbitMqPublishResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 297, - "col": 0, - "byteIndex": 7544 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqPublishResultError.", - "tags": [ + "id": 1872, + "name": "RabbitMqPreconditionFailedErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Options for RabbitMQ precondition failed errors." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "children": [ + { + "id": 1874, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1830, + "name": "RabbitMqErrorOptions.code" + } + }, + { + "id": 1873, + "name": "reason", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1829, + "name": "RabbitMqErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 1717, + "name": "RabbitMqPublishOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - } + "kind": "text", + "text": "Publish options." + } + ] + }, + "children": [ + { + "id": 1720, + "name": "contentEncoding", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1719, + "name": "contentType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1722, + "name": "correlationId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1724, + "name": "expiration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1721, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "unknown" } ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 305, - "col": 2, - "byteIndex": 7821 - } + "name": "Record", + "package": "typescript" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:publish", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:publish" + }, + { + "id": 1725, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1718, + "name": "persistent", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1726, + "name": "priority", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1723, + "name": "replyTo", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1730, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 299, - "col": 2, - "byteIndex": 7632 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 300, - "col": 2, - "byteIndex": 7679 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": 1694, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 1729, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 301, - "col": 2, - "byteIndex": 7717 - } + ] }, - { - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 302, - "col": 2, - "byteIndex": 7749 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 303, - "col": 2, - "byteIndex": 7791 - } + "inheritedFrom": { + "type": "reference", + "target": 1693, + "name": "RabbitMqOptions.signal" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqPublishResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultError" - } + }, + { + "id": 1727, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, + { + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 1691, + "name": "RabbitMqOptions.throwOnError" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1728, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1692, + "name": "RabbitMqOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqPublishResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 315, - "col": 0, - "byteIndex": 8024 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqPublishResultFailure.", - "tags": [ + "id": 1892, + "name": "RabbitMqPublishResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Publish result with RabbitMQ error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - } - }, + "children": [ + { + "id": 1897, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 323, - "col": 2, - "byteIndex": 8304 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:publish", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:publish" + }, + { + "id": 1895, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 317, - "col": 2, - "byteIndex": 8116 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 318, - "col": 2, - "byteIndex": 8163 - } + "type": { + "type": "reference", + "target": 1884, + "name": "RabbitMqOperationError", + "package": "@probitas-test/client-rabbitmq" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.error" + } + }, + { + "id": 1896, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 319, - "col": 2, - "byteIndex": 8202 - } + ] }, - { - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 320, - "col": 2, - "byteIndex": 8234 - } + "type": { + "type": "literal", + "value": "rabbitmq:publish" }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 321, - "col": 2, - "byteIndex": 8274 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqPublishResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultFailure" - } + }, + { + "id": 1894, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.ok" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1893, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqPublishResultBase" + }, + "name": "RabbitMqPublishResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqConsumeResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 333, - "col": 0, - "byteIndex": 8505 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqConsumeResultSuccess.", - "tags": [ + "id": 1898, + "name": "RabbitMqPublishResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Publish result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } + "children": [ + { + "id": 1903, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.duration" + } + }, + { + "id": 1901, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 342, - "col": 2, - "byteIndex": 8812 - } + ] + }, + "type": { + "type": "reference", + "target": 1885, + "name": "RabbitMqFailureError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:consume", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:consume" + }, + { + "id": 1902, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 335, - "col": 2, - "byteIndex": 8597 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 336, - "col": 2, - "byteIndex": 8644 - } + "type": { + "type": "literal", + "value": "rabbitmq:publish" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.kind" + } + }, + { + "id": 1900, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 337, - "col": 2, - "byteIndex": 8682 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 338, - "col": 2, - "byteIndex": 8713 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 339, - "col": 2, - "byteIndex": 8738 - } + "type": { + "type": "literal", + "value": false }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 340, - "col": 2, - "byteIndex": 8782 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqConsumeResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultSuccess" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.ok" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1899, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqPublishResultBase" + }, + "name": "RabbitMqPublishResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqConsumeResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 352, - "col": 0, - "byteIndex": 9019 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqConsumeResultError.", - "tags": [ + "id": 1886, + "name": "RabbitMqPublishResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful publish result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - } - }, + "children": [ + { + "id": 1891, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 361, - "col": 2, - "byteIndex": 9323 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:consume", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:consume" + }, + { + "id": 1889, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 354, - "col": 2, - "byteIndex": 9107 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 355, - "col": 2, - "byteIndex": 9154 - } + "type": { + "type": "literal", + "value": null }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.error" + } + }, + { + "id": 1890, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 356, - "col": 2, - "byteIndex": 9192 - } + ] }, - { - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" + "type": { + "type": "literal", + "value": "rabbitmq:publish" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.kind" + } + }, + { + "id": 1888, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 357, - "col": 2, - "byteIndex": 9224 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 358, - "col": 2, - "byteIndex": 9266 - } + "type": { + "type": "literal", + "value": true }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 359, - "col": 2, - "byteIndex": 9293 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.ok" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqConsumeResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultError" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1887, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqPublishResultBase" + }, + "name": "RabbitMqPublishResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqConsumeResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 371, - "col": 0, - "byteIndex": 9526 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqConsumeResultFailure.", - "tags": [ + "id": 1704, + "name": "RabbitMqQueueOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Queue options." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - } + "children": [ + { + "id": 1708, + "name": "arguments", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "unknown" } ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 380, - "col": 2, - "byteIndex": 9833 - } + "name": "Record", + "package": "typescript" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:consume", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:consume" + }, + { + "id": 1707, + "name": "autoDelete", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1711, + "name": "deadLetterExchange", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1712, + "name": "deadLetterRoutingKey", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1705, + "name": "durable", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1706, + "name": "exclusive", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1710, + "name": "maxLength", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1709, + "name": "messageTtl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1716, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 373, - "col": 2, - "byteIndex": 9618 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 374, - "col": 2, - "byteIndex": 9665 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": 1694, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 1715, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 375, - "col": 2, - "byteIndex": 9704 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" + "inheritedFrom": { + "type": "reference", + "target": 1693, + "name": "RabbitMqOptions.signal" + } + }, + { + "id": 1713, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, + { + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 376, - "col": 2, - "byteIndex": 9736 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 377, - "col": 2, - "byteIndex": 9776 - } + "type": { + "type": "intrinsic", + "name": "boolean" }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 378, - "col": 2, - "byteIndex": 9803 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqConsumeResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultFailure" - } + "inheritedFrom": { + "type": "reference", + "target": 1691, + "name": "RabbitMqOptions.throwOnError" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1714, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1692, + "name": "RabbitMqOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqAckResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 390, - "col": 0, - "byteIndex": 10030 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqAckResultSuccess.", - "tags": [ + "id": 1955, + "name": "RabbitMqQueueResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Queue result with RabbitMQ error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "children": [ + { + "id": 1961, + "name": "consumerCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.consumerCount" + } + }, + { + "id": 1963, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 397, - "col": 2, - "byteIndex": 10279 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:ack", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:ack" + }, + { + "id": 1958, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 391, - "col": 2, - "byteIndex": 10112 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "reference", + "target": 1884, + "name": "RabbitMqOperationError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.error" + } + }, + { + "id": 1962, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 392, - "col": 2, - "byteIndex": 10155 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": "rabbitmq:queue" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.kind" + } + }, + { + "id": 1960, + "name": "messageCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.messageCount" + } + }, + { + "id": 1957, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 393, - "col": 2, - "byteIndex": 10193 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 394, - "col": 2, - "byteIndex": 10224 - } + "type": { + "type": "literal", + "value": false }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 395, - "col": 2, - "byteIndex": 10249 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.ok" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqAckResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultSuccess" - } + }, + { + "id": 1956, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1959, + "name": "queue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.queue" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqQueueResultBase" + }, + "name": "RabbitMqQueueResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqAckResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 406, - "col": 0, - "byteIndex": 10421 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqAckResultError.", - "tags": [ + "id": 1964, + "name": "RabbitMqQueueResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Queue result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - } - }, + "children": [ + { + "id": 1970, + "name": "consumerCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.consumerCount" + } + }, + { + "id": 1972, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 413, - "col": 2, - "byteIndex": 10684 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:ack", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:ack" + }, + { + "id": 1967, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 407, - "col": 2, - "byteIndex": 10499 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 408, - "col": 2, - "byteIndex": 10542 - } + "type": { + "type": "reference", + "target": 1885, + "name": "RabbitMqFailureError", + "package": "@probitas-test/client-rabbitmq" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.error" + } + }, + { + "id": 1971, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 409, - "col": 2, - "byteIndex": 10580 - } + ] }, - { - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 410, - "col": 2, - "byteIndex": 10612 - } + "type": { + "type": "literal", + "value": "rabbitmq:queue" }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 411, - "col": 2, - "byteIndex": 10654 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqAckResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultError" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.kind" } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RabbitMqAckResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 423, - "col": 0, - "byteIndex": 10883 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqAckResultFailure.", - "tags": [ - { - "kind": "internal" + }, + { + "id": 1969, + "name": "messageCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.messageCount" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - } + }, + { + "id": 1966, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 430, - "col": 2, - "byteIndex": 11149 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:ack", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:ack" + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 424, - "col": 2, - "byteIndex": 10965 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 425, - "col": 2, - "byteIndex": 11008 - } + "type": { + "type": "literal", + "value": false }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.ok" + } + }, + { + "id": 1965, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 426, - "col": 2, - "byteIndex": 11047 - } + ] }, - { - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 427, - "col": 2, - "byteIndex": 11079 - } + "type": { + "type": "literal", + "value": false }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 428, - "col": 2, - "byteIndex": 11119 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqAckResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultFailure" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1968, + "name": "queue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.queue" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqQueueResultBase" + }, + "name": "RabbitMqQueueResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqQueueResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 440, - "col": 0, - "byteIndex": 11348 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqQueueResultSuccess.", - "tags": [ + "id": 1946, + "name": "RabbitMqQueueResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful queue result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "children": [ + { + "id": 1952, + "name": "consumerCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.consumerCount" + } + }, + { + "id": 1954, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.duration" + } + }, + { + "id": 1949, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "messageCount", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "consumerCount", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " is " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 451, - "col": 2, - "byteIndex": 11698 - } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:queue" + }, + { + "id": 1953, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 442, - "col": 2, - "byteIndex": 11436 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 443, - "col": 2, - "byteIndex": 11481 - } + "type": { + "type": "literal", + "value": "rabbitmq:queue" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.kind" + } + }, + { + "id": 1951, + "name": "messageCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.messageCount" + } + }, + { + "id": 1948, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 444, - "col": 2, - "byteIndex": 11519 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 445, - "col": 2, - "byteIndex": 11550 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 446, - "col": 2, - "byteIndex": 11575 - } + "type": { + "type": "literal", + "value": true }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 447, - "col": 2, - "byteIndex": 11601 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.ok" + } + }, + { + "id": 1947, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 448, - "col": 2, - "byteIndex": 11634 - } + "type": { + "type": "literal", + "value": true }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 449, - "col": 2, - "byteIndex": 11668 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultSuccess" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 1950, + "name": "queue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.queue" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "result.ts", + "qualifiedName": "RabbitMqQueueResultBase" + }, + "name": "RabbitMqQueueResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RabbitMqQueueResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 468, - "col": 0, - "byteIndex": 12025 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqQueueResultError.", - "tags": [ + "id": 1746, + "name": "RabbitMqRejectOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Reject options." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 478, - "col": 2, - "byteIndex": 12384 - } + "children": [ + { + "id": 1747, + "name": "requeue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:queue" + }, + { + "id": 1751, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 469, - "col": 2, - "byteIndex": 12107 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 470, - "col": 2, - "byteIndex": 12152 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": 1694, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 1750, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 471, - "col": 2, - "byteIndex": 12190 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" + "inheritedFrom": { + "type": "reference", + "target": 1693, + "name": "RabbitMqOptions.signal" + } + }, + { + "id": 1748, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, + { + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 472, - "col": 2, - "byteIndex": 12222 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 473, - "col": 2, - "byteIndex": 12264 - } + "type": { + "type": "intrinsic", + "name": "boolean" }, + "inheritedFrom": { + "type": "reference", + "target": 1691, + "name": "RabbitMqOptions.throwOnError" + } + }, + { + "id": 1749, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 1692, + "name": "RabbitMqOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 1690, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 1945, + "name": "RabbitMqAckResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 474, - "col": 2, - "byteIndex": 12289 - } - }, + "kind": "text", + "text": "Ack/Nack result." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 475, - "col": 2, - "byteIndex": 12321 - } + "type": "reference", + "target": 1927, + "name": "RabbitMqAckResultSuccess", + "package": "@probitas-test/client-rabbitmq" }, { - "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-rabbitmq/0.5.1/result.ts", - "line": 476, - "col": 2, - "byteIndex": 12354 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 1933, + "name": "RabbitMqAckResultError", + "package": "@probitas-test/client-rabbitmq" + }, { - "repr": "RabbitMqQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultError" - } + "type": "reference", + "target": 1939, + "name": "RabbitMqAckResultFailure", + "package": "@probitas-test/client-rabbitmq" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqQueueResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 488, - "col": 0, - "byteIndex": 12585 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqQueueResultFailure.", - "tags": [ + "id": 1926, + "name": "RabbitMqConsumeResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Consume result (single message retrieval)." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 499, - "col": 2, - "byteIndex": 12949 - } - } - ], - "properties": [ + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "rabbitmq:queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 490, - "col": 2, - "byteIndex": 12673 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 491, - "col": 2, - "byteIndex": 12718 - } + "type": "reference", + "target": 1905, + "name": "RabbitMqConsumeResultSuccess", + "package": "@probitas-test/client-rabbitmq" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 492, - "col": 2, - "byteIndex": 12757 - } + "type": "reference", + "target": 1912, + "name": "RabbitMqConsumeResultError", + "package": "@probitas-test/client-rabbitmq" }, { - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 493, - "col": 2, - "byteIndex": 12789 - } - }, + "type": "reference", + "target": 1919, + "name": "RabbitMqConsumeResultFailure", + "package": "@probitas-test/client-rabbitmq" + } + ] + } + }, + { + "id": 1992, + "name": "RabbitMqExchangeResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 494, - "col": 2, - "byteIndex": 12829 - } - }, + "kind": "text", + "text": "Exchange declaration result." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 495, - "col": 2, - "byteIndex": 12854 - } + "type": "reference", + "target": 1974, + "name": "RabbitMqExchangeResultSuccess", + "package": "@probitas-test/client-rabbitmq" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 496, - "col": 2, - "byteIndex": 12886 - } + "type": "reference", + "target": 1980, + "name": "RabbitMqExchangeResultError", + "package": "@probitas-test/client-rabbitmq" }, { - "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-rabbitmq/0.5.1/result.ts", - "line": 497, - "col": 2, - "byteIndex": 12919 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultFailure" - } + "type": "reference", + "target": 1986, + "name": "RabbitMqExchangeResultFailure", + "package": "@probitas-test/client-rabbitmq" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqExchangeResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 509, - "col": 0, - "byteIndex": 13151 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqExchangeResultSuccess.", - "tags": [ + "id": 1752, + "name": "RabbitMqExchangeType", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Exchange type." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 517, - "col": 2, - "byteIndex": 13417 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:exchange", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:exchange" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 511, - "col": 2, - "byteIndex": 13245 - } - }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 512, - "col": 2, - "byteIndex": 13293 - } + "type": "literal", + "value": "direct" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 513, - "col": 2, - "byteIndex": 13331 - } + "type": "literal", + "value": "topic" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 514, - "col": 2, - "byteIndex": 13362 - } + "type": "literal", + "value": "fanout" }, { - "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-rabbitmq/0.5.1/result.ts", - "line": 515, - "col": 2, - "byteIndex": 13387 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqExchangeResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultSuccess" - } + "type": "literal", + "value": "headers" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqExchangeResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 526, - "col": 0, - "byteIndex": 13564 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqExchangeResultError.", - "tags": [ + "id": 1885, + "name": "RabbitMqFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the RabbitMQ server." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 534, - "col": 2, - "byteIndex": 13844 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:exchange", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:exchange" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 528, - "col": 2, - "byteIndex": 13654 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 529, - "col": 2, - "byteIndex": 13702 - } - }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 530, - "col": 2, - "byteIndex": 13740 - } + "type": "reference", + "target": 1840, + "name": "RabbitMqConnectionError", + "package": "@probitas-test/client-rabbitmq" }, { - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 531, - "col": 2, - "byteIndex": 13772 - } + "name": "AbortError", + "package": "@probitas-test/client" }, { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 532, - "col": 2, - "byteIndex": 13814 - } + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqExchangeResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultError" - } - } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqExchangeResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 544, - "col": 0, - "byteIndex": 14048 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqExchangeResultFailure.", - "tags": [ + "id": 1884, + "name": "RabbitMqOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Error types that indicate a RabbitMQ operation error.\nThese are errors where the operation reached the server but failed." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 552, - "col": 2, - "byteIndex": 14331 - } - } - ], - "properties": [ + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "rabbitmq:exchange", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:exchange" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 546, - "col": 2, - "byteIndex": 14142 - } + "type": "reference", + "target": 1851, + "name": "RabbitMqChannelError", + "package": "@probitas-test/client-rabbitmq" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 547, - "col": 2, - "byteIndex": 14190 - } + "type": "reference", + "target": 1863, + "name": "RabbitMqNotFoundError", + "package": "@probitas-test/client-rabbitmq" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 548, - "col": 2, - "byteIndex": 14229 - } + "type": "reference", + "target": 1875, + "name": "RabbitMqPreconditionFailedError", + "package": "@probitas-test/client-rabbitmq" }, { - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 549, - "col": 2, - "byteIndex": 14261 - } - }, + "type": "reference", + "target": 1831, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + } + ] + } + }, + { + "id": 1904, + "name": "RabbitMqPublishResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "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-rabbitmq/0.5.1/result.ts", - "line": 550, - "col": 2, - "byteIndex": 14301 - } + "kind": "text", + "text": "Publish result." } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "repr": "RabbitMqExchangeResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultFailure" - } + "type": "reference", + "target": 1886, + "name": "RabbitMqPublishResultSuccess", + "package": "@probitas-test/client-rabbitmq" + }, + { + "type": "reference", + "target": 1892, + "name": "RabbitMqPublishResultError", + "package": "@probitas-test/client-rabbitmq" + }, + { + "type": "reference", + "target": 1898, + "name": "RabbitMqPublishResultFailure", + "package": "@probitas-test/client-rabbitmq" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "createRabbitMqClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/client.ts", - "line": 416, - "col": 0, - "byteIndex": 11698 + "id": 1973, + "name": "RabbitMqQueueResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Queue declaration result." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new RabbitMQ client instance.\n\nThe client provides queue and exchange management, message publishing\nand consumption, and acknowledgment handling via AMQP protocol.\n", - "tags": [ + "type": { + "type": "union", + "types": [ { - "kind": "param", - "name": "config", - "doc": "- RabbitMQ client configuration" + "type": "reference", + "target": 1946, + "name": "RabbitMqQueueResultSuccess", + "package": "@probitas-test/client-rabbitmq" }, { - "kind": "return", - "doc": "A promise resolving to a new RabbitMQ client instance\n" + "type": "reference", + "target": 1955, + "name": "RabbitMqQueueResultError", + "package": "@probitas-test/client-rabbitmq" }, { - "kind": "example", - "doc": "Basic usage with string URL\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({\n url: \"amqp://guest:guest@localhost:5672\",\n});\n\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\", { durable: true });\n\nconst content = new TextEncoder().encode(JSON.stringify({ type: \"ORDER\" }));\nawait channel.sendToQueue(\"my-queue\", content, { persistent: true });\n\nawait channel.close();\nawait rabbit.close();\n```\n" - }, + "type": "reference", + "target": 1964, + "name": "RabbitMqQueueResultFailure", + "package": "@probitas-test/client-rabbitmq" + } + ] + } + }, + { + "id": 1993, + "name": "RabbitMqResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Union of all RabbitMQ result types." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "kind": "example", - "doc": "With connection config object\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({\n url: {\n host: \"localhost\",\n port: 5672,\n username: \"guest\",\n password: \"guest\",\n vhost: \"/\",\n },\n});\n\nawait rabbit.close();\n```\n" + "type": "reference", + "target": 1904, + "name": "RabbitMqPublishResult", + "package": "@probitas-test/client-rabbitmq" }, { - "kind": "example", - "doc": "Exchange and binding\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\n\n// Create exchange and queue\nawait channel.assertExchange(\"events\", \"topic\", { durable: true });\nawait channel.assertQueue(\"user-events\");\nawait channel.bindQueue(\"user-events\", \"events\", \"user.*\");\n\n// Publish to exchange\nconst content = new TextEncoder().encode(JSON.stringify({ id: 1 }));\nawait channel.publish(\"events\", \"user.created\", content);\n\nawait rabbit.close();\n```\n" + "type": "reference", + "target": 1926, + "name": "RabbitMqConsumeResult", + "package": "@probitas-test/client-rabbitmq" }, { - "kind": "example", - "doc": "Consuming messages\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\");\n\nfor await (const message of channel.consume(\"my-queue\")) {\n console.log(\"Received:\", new TextDecoder().decode(message.content));\n await channel.ack(message);\n break;\n}\n\nawait rabbit.close();\n```\n" + "type": "reference", + "target": 1945, + "name": "RabbitMqAckResult", + "package": "@probitas-test/client-rabbitmq" }, { - "kind": "example", - "doc": "Get single message (polling)\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\");\n\nconst result = await channel.get(\"my-queue\");\nif (result.message) {\n await channel.ack(result.message);\n}\n\nawait rabbit.close();\n```\n" + "type": "reference", + "target": 1973, + "name": "RabbitMqQueueResult", + "package": "@probitas-test/client-rabbitmq" }, { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nawait using rabbit = await createRabbitMqClient({\n url: \"amqp://localhost:5672\",\n});\n\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"test\");\n// Client automatically closed when scope exits\n```" + "type": "reference", + "target": 1992, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" } ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "RabbitMqClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqClientConfig" + } + }, + { + "id": 2155, + "name": "createRabbitMqClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 2156, + "name": "createRabbitMqClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new RabbitMQ client instance.\n\nThe client provides queue and exchange management, message publishing\nand consumption, and acknowledgment handling via AMQP protocol." } - } - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqClient" - } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new RabbitMQ client instance" + } + ] + }, + { + "tag": "@example", + "name": "Basic usage with string URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({\n url: \"amqp://guest:guest@localhost:5672\",\n});\n\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\", { durable: true });\n\nconst content = new TextEncoder().encode(JSON.stringify({ type: \"ORDER\" }));\nawait channel.sendToQueue(\"my-queue\", content, { persistent: true });\n\nawait channel.close();\nawait rabbit.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "With connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({\n url: {\n host: \"localhost\",\n port: 5672,\n username: \"guest\",\n password: \"guest\",\n vhost: \"/\",\n },\n});\n\nawait rabbit.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Exchange and binding", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\n\n// Create exchange and queue\nawait channel.assertExchange(\"events\", \"topic\", { durable: true });\nawait channel.assertQueue(\"user-events\");\nawait channel.bindQueue(\"user-events\", \"events\", \"user.*\");\n\n// Publish to exchange\nconst content = new TextEncoder().encode(JSON.stringify({ id: 1 }));\nawait channel.publish(\"events\", \"user.created\", content);\n\nawait rabbit.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Consuming messages", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\");\n\nfor await (const message of channel.consume(\"my-queue\")) {\n console.log(\"Received:\", new TextDecoder().decode(message.content));\n await channel.ack(message);\n break;\n}\n\nawait rabbit.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Get single message (polling)", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\");\n\nconst result = await channel.get(\"my-queue\");\nif (result.message) {\n await channel.ack(result.message);\n}\n\nawait rabbit.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nawait using rabbit = await createRabbitMqClient({\n url: \"amqp://localhost:5672\",\n});\n\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"test\");\n// Client automatically closed when scope exits\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 2157, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 1682, + "name": "RabbitMqClientConfig", + "package": "@probitas-test/client-rabbitmq" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1823, + "name": "RabbitMqClient", + "package": "@probitas-test/client-rabbitmq" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-rabbitmq", + "packageVersion": "0.5.2" } diff --git a/data/api/client-redis.json b/data/api/client-redis.json index 2cb32e0..9dcedad 100644 --- a/data/api/client-redis.json +++ b/data/api/client-redis.json @@ -1,10514 +1,9738 @@ { - "name": "client-redis", - "specifier": "@probitas/client-redis", - "version": "0.5.1", - "moduleDoc": "Redis client for [Probitas](https://github.com/probitas-test/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-test/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\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\n// Atomic transaction\nconst tx = client.multi();\ntx.incr(\"counter\");\ntx.get(\"counter\");\nawait tx.exec();\n\nawait client.close();\n```\n\n## Pub/Sub\n\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\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\nawait client.close();\n```\n\n## Connection Configuration\n\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\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\nawait client1.close();\nawait client2.close();\nawait client3.close();\n```\n\n## Using with `using` Statement\n\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\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\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [Redis](https://redis.io/)\n", - "exports": [ - { - "name": "RedisFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 89, - "col": 0, - "byteIndex": 2108 + "schemaVersion": "2.0", + "id": 2158, + "name": "@probitas-test/client-redis", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redis client for [Probitas](https://github.com/probitas-test/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 " }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the Redis server." + { + "kind": "code", + "text": "`command()`" }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisConnectionError" - } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" - } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" - } - } - ] - }, - "typeParams": [] - } - }, - { - "name": "RedisOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 98, - "col": 0, - "byteIndex": 2326 + { + "kind": "text", + "text": "\n- **Resource Management**: Implements " }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was processed but failed.\nThese are errors returned by the Redis server." + { + "kind": "code", + "text": "`AsyncDisposable`" }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisCommandError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandError" - } - }, - { - "repr": "RedisScriptError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisScriptError" - } - }, - { - "repr": "RedisError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisError" - } - } - ] - }, - "typeParams": [] - } - }, - { - "name": "RedisCommandOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 22, - "col": 0, - "byteIndex": 458 + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis command options.\n\nExtends CommonOptions with Redis-specific behavior options." + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-redis\n```" }, - "kind": "interface", - "interfaceDef": { - "extends": [ + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/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```" + }, + { + "kind": "text", + "text": "\n\n## Transactions\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\n// Atomic transaction\nconst tx = client.multi();\ntx.incr(\"counter\");\ntx.get(\"counter\");\nawait tx.exec();\n\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Pub/Sub\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\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\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Connection Configuration\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\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\nawait client1.close();\nawait client2.close();\nawait client3.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\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```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client) | Core utilities and types |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [Redis](https://redis.io/)" + } + ] + }, + "children": [ + { + "id": 2780, + "name": "RedisCommandError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "kind": "text", + "text": "Error thrown when a Redis command fails." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error when the operation fails.\n\nWhen `true`, failures will throw an error instead of returning a result\nwith `ok: false`.\n", - "tags": [ + ] + }, + "children": [ + { + "id": 2781, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2782, + "name": "RedisCommandError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 2783, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "unsupported", - "value": "@default false (inherited from client config or defaults to false)" + "id": 2784, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 2777, + "name": "RedisCommandErrorOptions", + "package": "@probitas-test/client-redis" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 31, - "col": 2, - "byteIndex": 772 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisSetOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 37, - "col": 0, - "byteIndex": 837 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis SET options" - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + ], + "type": { + "type": "reference", + "target": 2780, + "name": "RedisCommandError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": 2762, + "name": "RedisError.constructor" + } } + ], + "overwrites": { + "type": "reference", + "target": 2761, + "name": "RedisError.constructor" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "ex", - "jsDoc": { - "doc": "Expiration in seconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 39, - "col": 2, - "byteIndex": 933 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "px", - "jsDoc": { - "doc": "Expiration in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 41, - "col": 2, - "byteIndex": 993 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "nx", - "jsDoc": { - "doc": "Only set if key does not exist" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 43, - "col": 2, - "byteIndex": 1057 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "xx", - "jsDoc": { - "doc": "Only set if key exists" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 45, - "col": 2, - "byteIndex": 1114 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + }, + { + "id": 2788, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 2767, + "name": "RedisError.code" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisMessage", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 51, - "col": 0, - "byteIndex": 1173 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis Pub/Sub message" - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "channel", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 52, - "col": 2, - "byteIndex": 1207 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 53, - "col": 2, - "byteIndex": 1235 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 2787, + "name": "command", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 2786, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "command" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 2768, + "name": "RedisError.kind" + } + }, + { + "id": 2785, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RedisCommandError" + }, + "defaultValue": "\"RedisCommandError\"", + "overwrites": { + "type": "reference", + "target": 2766, + "name": "RedisError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 2760, + "name": "RedisError", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 61, - "col": 0, - "byteIndex": 1373 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis connection configuration.\n\nExtends CommonConnectionConfig with Redis-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 2769, + "name": "RedisConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" - } + "kind": "text", + "text": "Error thrown when a Redis connection cannot be established." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "db", - "jsDoc": { - "doc": "Database index.", - "tags": [ + ] + }, + "children": [ + { + "id": 2770, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2771, + "name": "RedisConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 2772, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "unsupported", - "value": "@default 0" + "id": 2773, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2758, + "name": "RedisErrorOptions", + "package": "@probitas-test/client-redis" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 66, - "col": 2, - "byteIndex": 1496 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 2769, + "name": "RedisConnectionError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": 2762, + "name": "RedisError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 2761, + "name": "RedisError.constructor" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 2776, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 2767, + "name": "RedisError.code" + } + }, + { + "id": 2775, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 2768, + "name": "RedisError.kind" + } + }, + { + "id": 2774, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RedisConnectionError" + }, + "defaultValue": "\"RedisConnectionError\"", + "overwrites": { + "type": "reference", + "target": 2766, + "name": "RedisError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 2760, + "name": "RedisError", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 72, - "col": 0, - "byteIndex": 1560 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis client configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 2760, + "name": "RedisError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "kind": "text", + "text": "Base error class for Redis client errors." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "Redis connection URL or configuration object.\n", - "tags": [ + ] + }, + "children": [ + { + "id": 2761, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2762, + "name": "RedisError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "example", - "doc": "String URL\n```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = { url: \"redis://localhost:6379\" };\n```\n" + "id": 2763, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "With password\n```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = { url: \"redis://:password@localhost:6379/0\" };\n```\n" + "id": 2764, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"redis\"" }, { - "kind": "example", - "doc": "Config object\n```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = {\n url: { port: 6379, password: \"secret\", db: 1 },\n};\n```" + "id": 2765, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2758, + "name": "RedisErrorOptions", + "package": "@probitas-test/client-redis" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 96, - "col": 2, - "byteIndex": 2329 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "type": { + "type": "reference", + "target": 2760, + "name": "RedisError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 2767, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2768, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 2766, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"RedisError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 2769, + "name": "RedisConnectionError" + }, + { + "type": "reference", + "target": 2780, + "name": "RedisCommandError" + }, + { + "type": "reference", + "target": 2792, + "name": "RedisScriptError" + } + ] + }, + { + "id": 2792, + "name": "RedisScriptError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a Redis Lua script fails." + } + ] + }, + "children": [ + { + "id": 2793, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2794, + "name": "RedisScriptError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 2795, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "repr": "RedisConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisConnectionConfig" + "id": 2796, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 2789, + "name": "RedisScriptErrorOptions", + "package": "@probitas-test/client-redis" } } - ] - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error when operations fail.\n\nWhen `true`, failures will throw an error instead of returning a result\nwith `ok: false`. This can be overridden per-command.\n", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 106, - "col": 2, - "byteIndex": 2609 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 2792, + "name": "RedisScriptError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": 2762, + "name": "RedisError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 2761, + "name": "RedisError.constructor" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 2800, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 2767, + "name": "RedisError.code" + } + }, + { + "id": 2798, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "script" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 2768, + "name": "RedisError.kind" + } + }, + { + "id": 2797, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RedisScriptError" + }, + "defaultValue": "\"RedisScriptError\"", + "overwrites": { + "type": "reference", + "target": 2766, + "name": "RedisError.name" + } + }, + { + "id": 2799, + "name": "script", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 2760, + "name": "RedisError", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisTransaction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 112, - "col": 0, - "byteIndex": 2684 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis transaction interface" - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ + "id": 2481, + "name": "RedisArrayResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "get", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 113, - "col": 2, - "byteIndex": 2722 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Array result with Redis error." + } + ] + }, + "children": [ + { + "id": 2488, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "set", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 114, - "col": 2, - "byteIndex": 2748 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.duration" + } + }, + { + "id": 2485, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisSetOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "del", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 115, - "col": 2, - "byteIndex": 2816 - }, - "params": [ + "kind": "text", + "text": " is " + }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "keys", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "incr", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 116, - "col": 2, - "byteIndex": 2848 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "decr", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 117, - "col": 2, - "byteIndex": 2875 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 2805, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" }, - { - "name": "hget", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 118, - "col": 2, - "byteIndex": 2902 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.error" + } + }, + { + "id": 2487, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:array" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.kind" + } + }, + { + "id": 2484, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "kind": "identifier", - "name": "field", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hset", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 119, - "col": 2, - "byteIndex": 2944 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "field", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "hgetall", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 120, - "col": 2, - "byteIndex": 3001 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "hdel", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 121, - "col": 2, - "byteIndex": 3031 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.ok" + } + }, + { + "id": 2483, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "fields", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "lpush", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 122, - "col": 2, - "byteIndex": 3079 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`true`" }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rpush", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 123, - "col": 2, - "byteIndex": 3128 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "lpop", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 124, - "col": 2, - "byteIndex": 3177 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.processed" + } + }, + { + "id": 2486, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "typeParameters": [ + { + "id": 2482, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisArrayResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2482, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisArrayResultError.T", + "refersToTypeParameter": true + } + ], + "name": "RedisArrayResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 2489, + "name": "RedisArrayResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "rpop", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 125, - "col": 2, - "byteIndex": 3204 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Array result with connection failure." + } + ] + }, + "children": [ + { + "id": 2496, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "lrange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 126, - "col": 2, - "byteIndex": 3231 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.duration" + } + }, + { + "id": 2493, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "start", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "stop", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "llen", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 127, - "col": 2, - "byteIndex": 3289 - }, - "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": "sadd", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 128, - "col": 2, - "byteIndex": 3316 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " is " }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "members", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "srem", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 129, - "col": 2, - "byteIndex": 3365 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "members", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "smembers", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 130, - "col": 2, - "byteIndex": 3414 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 2804, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" }, - { - "name": "sismember", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 131, - "col": 2, - "byteIndex": 3445 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.error" + } + }, + { + "id": 2495, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:array" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.kind" + } + }, + { + "id": 2492, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "kind": "identifier", - "name": "member", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "zadd", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 132, - "col": 2, - "byteIndex": 3493 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "entries", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "score", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 132, - "col": 34, - "byteIndex": 3525 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "member", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 132, - "col": 49, - "byteIndex": 3540 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "zrange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 133, - "col": 2, - "byteIndex": 3569 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "start", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`processed`" }, { - "kind": "identifier", - "name": "stop", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "zscore", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 134, - "col": 2, - "byteIndex": 3627 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.ok" + } + }, + { + "id": 2491, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " }, { - "kind": "identifier", - "name": "member", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "exec", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 135, - "col": 2, - "byteIndex": 3672 - }, - "params": [ - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "RedisArrayResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "discard", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 136, - "col": 2, - "byteIndex": 3747 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.processed" } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 2494, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "typeParameters": [ + { + "id": 2490, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisArrayResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2490, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisArrayResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "RedisArrayResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 142, - "col": 0, - "byteIndex": 3801 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis client interface" - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 2473, + "name": "RedisArrayResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + "kind": "text", + "text": "Successful array result." } - ], - "constructors": [], - "methods": [ - { - "name": "get", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 146, - "col": 2, - "byteIndex": 3910 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResult" - } - } - ], - "typeName": "Promise" + ] + }, + "children": [ + { + "id": 2480, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "set", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 147, - "col": 2, - "byteIndex": 3986 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.duration" + } + }, + { + "id": 2477, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisSetOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisSetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "del", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 152, - "col": 2, - "byteIndex": 4090 - }, - "params": [ - { - "kind": "identifier", - "name": "keys", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "text", + "text": " is " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "incr", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 153, - "col": 2, - "byteIndex": 4171 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + ] }, - { - "name": "decr", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 154, - "col": 2, - "byteIndex": 4250 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.error" + } + }, + { + "id": 2479, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:array" + }, + "inheritedFrom": { + "type": "reference", + "target": 2487, + "name": "RedisArrayResultBase.kind", + "package": "@probitas-test/client-redis" + } + }, + { + "id": 2476, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "hget", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 157, - "col": 2, - "byteIndex": 4342 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "field", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "hset", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 162, - "col": 2, - "byteIndex": 4451 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`processed`" }, { - "kind": "identifier", - "name": "field", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " is " }, { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "hgetall", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 168, - "col": 2, - "byteIndex": 4581 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.ok" + } + }, + { + "id": 2475, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisHashResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "hdel", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 169, - "col": 2, - "byteIndex": 4662 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "fields", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.processed" + } + }, + { + "id": 2478, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 2474, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisArrayResultSuccess.T", + "refersToTypeParameter": true + } + } + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "typeParameters": [ + { + "id": 2474, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisArrayResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2474, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisArrayResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "RedisArrayResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 2280, + "name": "RedisClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redis client interface" + } + ] + }, + "children": [ + { + "id": 2281, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 2182, + "name": "RedisClientConfig", + "package": "@probitas-test/client-redis" + } + }, + { + "id": 2405, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2406, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + "type": "intrinsic", + "name": "void" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "lpush", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 176, - "col": 2, - "byteIndex": 4788 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 2399, + "name": "command", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2400, + "name": "command", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 2401, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + ], + "parameters": [ + { + "id": 2402, + "name": "cmd", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2403, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 2404, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + "type": "reference", + "target": 2545, + "typeArguments": [ + { + "type": "reference", + "target": 2401, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "rpush", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 181, - "col": 2, - "byteIndex": 4903 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 2299, + "name": "decr", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2300, + "name": "decr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2301, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + }, + { + "id": 2302, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "lpop", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 186, - "col": 2, - "byteIndex": 5018 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + } + ] + }, + { + "id": 2291, + "name": "del", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2292, + "name": "del", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2293, + "name": "keys", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 2294, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResult" - } + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "rpop", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 187, - "col": 2, - "byteIndex": 5095 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + } + ] + }, + { + "id": 2282, + "name": "get", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2283, + "name": "get", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2284, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2285, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResult" - } + "type": "reference", + "target": 2428, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "lrange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 188, - "col": 2, - "byteIndex": 5172 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "start", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "stop", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + } + ] + }, + { + "id": 2318, + "name": "hdel", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2319, + "name": "hdel", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2320, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisArrayResult" + }, + { + "id": 2321, + "name": "fields", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "llen", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 194, - "col": 2, - "byteIndex": 5303 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + }, + { + "id": 2322, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "sadd", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 197, - "col": 2, - "byteIndex": 5393 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "members", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 2303, + "name": "hget", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2304, + "name": "hget", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2305, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + }, + { + "id": 2306, + "name": "field", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2307, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + "type": "reference", + "target": 2428, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "srem", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 202, - "col": 2, - "byteIndex": 5508 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "members", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 2314, + "name": "hgetall", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2315, + "name": "hgetall", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2316, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + }, + { + "id": 2317, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + "type": "reference", + "target": 2520, + "name": "RedisHashResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "smembers", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 207, - "col": 2, - "byteIndex": 5623 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + } + ] + }, + { + "id": 2308, + "name": "hset", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2309, + "name": "hset", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2310, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2311, + "name": "field", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2312, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2313, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisArrayResult" - } + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "sismember", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 211, - "col": 2, - "byteIndex": 5719 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "member", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + } + ] + }, + { + "id": 2295, + "name": "incr", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2296, + "name": "incr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2297, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2298, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisCommonResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - } - ], - "typeName": "RedisCommonResult" - } + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "zadd", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 218, - "col": 2, - "byteIndex": 5864 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "entries", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "score", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 220, - "col": 15, - "byteIndex": 5902 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "member", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 220, - "col": 30, - "byteIndex": 5917 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } + } + ] + }, + { + "id": 2347, + "name": "llen", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2348, + "name": "llen", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2349, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + }, + { + "id": 2350, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "zrange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 223, - "col": 2, - "byteIndex": 6006 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "start", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "stop", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + } + ] + }, + { + "id": 2333, + "name": "lpop", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2334, + "name": "lpop", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2335, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2336, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisArrayResult" - } + "type": "reference", + "target": 2428, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "zscore", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 229, - "col": 2, - "byteIndex": 6137 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "member", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + } + ] + }, + { + "id": 2323, + "name": "lpush", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2324, + "name": "lpush", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2325, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCommonResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } - ], - "typeName": "RedisCommonResult" + }, + { + "id": 2326, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "publish", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 236, - "col": 2, - "byteIndex": 6281 - }, - "params": [ - { - "kind": "identifier", - "name": "channel", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + }, + { + "id": 2327, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "subscribe", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 241, - "col": 2, - "byteIndex": 6401 - }, - "params": [ - { - "kind": "identifier", - "name": "channel", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 2341, + "name": "lrange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2342, + "name": "lrange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2343, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2344, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 2345, + "name": "stop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 2346, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } - } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisMessage" - } + "type": "reference", + "target": 2497, + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "AsyncIterable" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "multi", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 244, - "col": 2, - "byteIndex": 6478 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "RedisTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisTransaction" + } + ] + }, + { + "id": 2397, + "name": "multi", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2398, + "name": "multi", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": 2188, + "name": "RedisTransaction", + "package": "@probitas-test/client-redis" } - }, - "typeParams": [] - }, - { - "name": "command", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 248, - "col": 2, - "byteIndex": 6644 - }, - "params": [ - { - "kind": "identifier", - "name": "cmd", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 2389, + "name": "publish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2390, + "name": "publish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2391, + "name": "channel", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + }, + { + "id": 2392, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2393, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "RedisCommonResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResult" - } + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "name": "Promise", + "package": "typescript" } - ] - }, - { - "name": "close", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 254, - "col": 2, - "byteIndex": 6774 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" + } + ] + }, + { + "id": 2337, + "name": "rpop", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2338, + "name": "rpop", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2339, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2340, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2428, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "config", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 143, - "col": 2, - "byteIndex": 3858 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisClientConfig" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisGetResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 32, - "col": 0, - "byteIndex": 952 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful GET result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisGetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 33, - "col": 2, - "byteIndex": 1022 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 34, - "col": 2, - "byteIndex": 1050 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 35, - "col": 2, - "byteIndex": 1071 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 36, - "col": 2, - "byteIndex": 1095 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ] + }, + { + "id": 2328, + "name": "rpush", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2329, + "name": "rpush", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 2330, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2331, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 2332, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisGetResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 42, - "col": 0, - "byteIndex": 1169 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GET result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisGetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 43, - "col": 2, - "byteIndex": 1237 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 44, - "col": 2, - "byteIndex": 1265 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 45, - "col": 2, - "byteIndex": 1287 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 46, - "col": 2, - "byteIndex": 1326 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisGetResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 52, - "col": 0, - "byteIndex": 1398 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GET result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisGetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 53, - "col": 2, - "byteIndex": 1468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 54, - "col": 2, - "byteIndex": 1497 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 55, - "col": 2, - "byteIndex": 1519 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 56, - "col": 2, - "byteIndex": 1556 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisGetResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 62, - "col": 0, - "byteIndex": 1610 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis GET result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisGetResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultSuccess" - } - }, - { - "repr": "RedisGetResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultError" - } - }, + ] + }, + { + "id": 2351, + "name": "sadd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisGetResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultFailure" + "id": 2352, + "name": "sadd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2353, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2354, + "name": "members", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 2355, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [] - } - }, - { - "name": "RedisSetResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 82, - "col": 0, - "byteIndex": 2123 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful SET result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisSetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 83, - "col": 2, - "byteIndex": 2193 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 84, - "col": 2, - "byteIndex": 2221 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 85, - "col": 2, - "byteIndex": 2242 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 86, - "col": 2, - "byteIndex": 2266 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "OK", - "kind": "literal", - "literal": { - "kind": "string", - "string": "OK" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisSetResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 92, - "col": 0, - "byteIndex": 2331 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SET result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisSetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 93, - "col": 2, - "byteIndex": 2399 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 94, - "col": 2, - "byteIndex": 2427 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 95, - "col": 2, - "byteIndex": 2449 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 96, - "col": 2, - "byteIndex": 2488 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisSetResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 102, - "col": 0, - "byteIndex": 2560 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SET result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisSetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 103, - "col": 2, - "byteIndex": 2630 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 104, - "col": 2, - "byteIndex": 2659 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 105, - "col": 2, - "byteIndex": 2681 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 106, - "col": 2, - "byteIndex": 2718 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisSetResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 112, - "col": 0, - "byteIndex": 2772 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis SET result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisSetResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultSuccess" - } - }, - { - "repr": "RedisSetResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultError" - } - }, + { + "id": 2286, + "name": "set", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisSetResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultFailure" + "id": 2287, + "name": "set", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2288, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2289, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2290, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2164, + "name": "RedisSetOptions", + "package": "@probitas-test/client-redis" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2450, + "name": "RedisSetResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [] - } - }, - { - "name": "RedisCountResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 132, - "col": 0, - "byteIndex": 3299 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful count result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 133, - "col": 2, - "byteIndex": 3373 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 134, - "col": 2, - "byteIndex": 3401 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 135, - "col": 2, - "byteIndex": 3422 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 136, - "col": 2, - "byteIndex": 3446 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisCountResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 142, - "col": 0, - "byteIndex": 3515 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Count result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 143, - "col": 2, - "byteIndex": 3587 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 144, - "col": 2, - "byteIndex": 3615 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 145, - "col": 2, - "byteIndex": 3637 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 146, - "col": 2, - "byteIndex": 3676 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisCountResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 152, - "col": 0, - "byteIndex": 3750 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Count result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 153, - "col": 2, - "byteIndex": 3824 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 154, - "col": 2, - "byteIndex": 3853 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 155, - "col": 2, - "byteIndex": 3875 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 156, - "col": 2, - "byteIndex": 3912 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisCountResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 162, - "col": 0, - "byteIndex": 3995 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis numeric result (DEL, LPUSH, SADD, etc.)." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisCountResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultSuccess" - } - }, + { + "id": 2365, + "name": "sismember", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisCountResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultError" - } - }, - { - "repr": "RedisCountResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultFailure" + "id": 2366, + "name": "sismember", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2367, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2368, + "name": "member", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2369, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2545, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "RedisCommonResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [] - } - }, - { - "name": "RedisArrayResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 183, - "col": 0, - "byteIndex": 4550 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful array result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisArrayResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + { + "id": 2361, + "name": "smembers", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2362, + "name": "smembers", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 2363, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2364, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } ], - "typeName": "RedisArrayResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 185, - "col": 2, - "byteIndex": 4641 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 186, - "col": 2, - "byteIndex": 4669 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 187, - "col": 2, - "byteIndex": 4690 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 188, - "col": 2, - "byteIndex": 4714 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2497, + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" } - } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" } - } - ] - } - }, - { - "name": "RedisArrayResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 194, - "col": 0, - "byteIndex": 4789 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Array result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisArrayResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 2356, + "name": "srem", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2357, + "name": "srem", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2358, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2359, + "name": "members", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 2360, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } ], - "typeName": "RedisArrayResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 196, - "col": 2, - "byteIndex": 4878 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 197, - "col": 2, - "byteIndex": 4906 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 198, - "col": 2, - "byteIndex": 4928 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 199, - "col": 2, - "byteIndex": 4967 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" } - } - ] - } - }, - { - "name": "RedisArrayResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 205, - "col": 0, - "byteIndex": 5041 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Array result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisArrayResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 2394, + "name": "subscribe", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2395, + "name": "subscribe", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 2396, + "name": "channel", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } } ], - "typeName": "RedisArrayResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 207, - "col": 2, - "byteIndex": 5132 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 208, - "col": 2, - "byteIndex": 5161 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 209, - "col": 2, - "byteIndex": 5183 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2173, + "name": "RedisMessage", + "package": "@probitas-test/client-redis" + } + ], + "name": "AsyncIterable", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 210, - "col": 2, - "byteIndex": 5220 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" } - } - ] - } - }, - { - "name": "RedisArrayResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 216, - "col": 0, - "byteIndex": 5301 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis array result (LRANGE, SMEMBERS, etc.)." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ] + }, + { + "id": 2370, + "name": "zadd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisArrayResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 2371, + "name": "zadd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2372, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2373, + "name": "entries", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 2374, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 2376, + "name": "member", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2375, + "name": "score", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } } } + }, + { + "id": 2377, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } ], - "typeName": "RedisArrayResultSuccess" + "name": "Promise", + "package": "typescript" } - }, + } + ] + }, + { + "id": 2378, + "name": "zrange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisArrayResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 2379, + "name": "zrange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2380, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2381, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 2382, + "name": "stop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 2383, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 2497, + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "RedisArrayResultError" + "name": "Promise", + "package": "typescript" } - }, + } + ] + }, + { + "id": 2384, + "name": "zscore", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisArrayResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 2385, + "name": "zscore", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2386, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2387, + "name": "member", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2388, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 2545, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "RedisCommonResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "RedisArrayResultFailure" + "name": "Promise", + "package": "typescript" } } ] - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "RedisHashResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 236, - "col": 0, - "byteIndex": 5867 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful hash result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 2182, + "name": "RedisClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RedisHashResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultBase" - } + "kind": "text", + "text": "Redis client configuration." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 5939 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 2187, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 238, - "col": 2, - "byteIndex": 5967 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 2186, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 239, - "col": 2, - "byteIndex": 5988 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "name": "AbortSignal", + "package": "typescript" }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 240, - "col": 2, - "byteIndex": 6012 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 2184, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error when operations fail.\n\nWhen " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ", failures will throw an error instead of returning a result\nwith " + }, + { + "kind": "code", + "text": "`ok: false`" + }, + { + "kind": "text", + "text": ". This can be overridden per-command." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 2185, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + }, + { + "id": 2183, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redis connection URL or configuration object." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "String URL", + "content": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "code", + "text": "```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = { url: \"redis://localhost:6379\" };\n```" } - ], - "typeName": "Record" + ] + }, + { + "tag": "@example", + "name": "With password", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = { url: \"redis://:password@localhost:6379/0\" };\n```" + } + ] + }, + { + "tag": "@example", + "name": "Config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = {\n url: { port: 6379, password: \"secret\", db: 1 },\n};\n```" + } + ] } - }, - "typeParams": [] + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 2176, + "name": "RedisConnectionConfig", + "package": "@probitas-test/client-redis" + } + ] } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "RedisHashResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 246, - "col": 0, - "byteIndex": 6096 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Hash result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 2777, + "name": "RedisCommandErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RedisHashResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultBase" - } + "kind": "text", + "text": "Options for Redis command errors." + } + ] + }, + "children": [ + { + "id": 2779, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 2759, + "name": "RedisErrorOptions.code" } - ], - "constructors": [], - "methods": [], - "properties": [ + }, + { + "id": 2778, + "name": "command", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 2758, + "name": "RedisErrorOptions", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 2159, + "name": "RedisCommandOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 247, - "col": 2, - "byteIndex": 6166 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "kind": "text", + "text": "Redis command options.\n\nExtends CommonOptions with Redis-specific behavior options." + } + ] + }, + "children": [ + { + "id": 2163, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 248, - "col": 2, - "byteIndex": 6194 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 2162, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 249, - "col": 2, - "byteIndex": 6216 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 2160, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error when the operation fails.\n\nWhen " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ", failures will throw an error instead of returning a result\nwith " + }, + { + "kind": "code", + "text": "`ok: false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config or defaults to false)\n```" + } + ] + } + ] }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 250, - "col": 2, - "byteIndex": 6255 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 2161, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 2164, + "name": "RedisSetOptions" + } + ] }, { - "name": "RedisHashResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 256, - "col": 0, - "byteIndex": 6328 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Hash result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 2529, + "name": "RedisCommonResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RedisHashResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultBase" - } + "kind": "text", + "text": "Common result with Redis error." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 257, - "col": 2, - "byteIndex": 6400 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "children": [ + { + "id": 2536, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 258, - "col": 2, - "byteIndex": 6429 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 259, - "col": 2, - "byteIndex": 6451 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.duration" + } + }, + { + "id": 2533, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 260, - "col": 2, - "byteIndex": 6488 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 2805, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.error" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisHashResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 266, - "col": 0, - "byteIndex": 6553 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis hash result (HGETALL)." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisHashResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultSuccess" - } - }, - { - "repr": "RedisHashResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultError" - } - }, - { - "repr": "RedisHashResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultFailure" - } - } - ] }, - "typeParams": [] - } - }, - { - "name": "RedisCommonResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 287, - "col": 0, - "byteIndex": 7205 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful common result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCommonResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResultBase" - } + { + "id": 2535, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:common" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 289, - "col": 2, - "byteIndex": 7295 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 2532, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 290, - "col": 2, - "byteIndex": 7323 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.ok" + } + }, + { + "id": 2531, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 291, - "col": 2, - "byteIndex": 7344 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 292, - "col": 2, - "byteIndex": 7368 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ + }, + { + "id": 2534, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "typeParameters": [ + { + "id": 2530, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisCommonResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2530, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisCommonResultError.T", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 2537, + "name": "RedisCommonResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "Common result with connection failure." } ] - } - }, - { - "name": "RedisCommonResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 299, - "col": 0, - "byteIndex": 7550 }, - "declarationKind": "export", - "jsDoc": { - "doc": "Common result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCommonResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResultBase" - } + "children": [ + { + "id": 2544, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.duration" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 301, - "col": 2, - "byteIndex": 7638 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 2541, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 302, - "col": 2, - "byteIndex": 7666 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "reference", + "target": 2804, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.error" + } + }, + { + "id": 2543, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:common" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.kind" + } + }, + { + "id": 2540, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 303, - "col": 2, - "byteIndex": 7688 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.ok" + } + }, + { + "id": 2539, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 304, - "col": 2, - "byteIndex": 7727 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ + }, + { + "id": 2542, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "typeParameters": [ + { + "id": 2538, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisCommonResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2538, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisCommonResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 2521, + "name": "RedisCommonResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "Successful common result." } ] - } - }, - { - "name": "RedisCommonResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 311, - "col": 0, - "byteIndex": 7919 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Common result with connection failure." }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCommonResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResultBase" - } + "children": [ + { + "id": 2528, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.duration" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 313, - "col": 2, - "byteIndex": 8009 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 2525, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 314, - "col": 2, - "byteIndex": 8038 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.error" + } + }, + { + "id": 2527, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:common" + }, + "inheritedFrom": { + "type": "reference", + "target": 2535, + "name": "RedisCommonResultBase.kind", + "package": "@probitas-test/client-redis" + } + }, + { + "id": 2524, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 315, - "col": 2, - "byteIndex": 8060 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.ok" + } + }, + { + "id": 2523, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": true }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 316, - "col": 2, - "byteIndex": 8097 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { + }, + { + "id": 2526, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 2522, "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisCommonResultSuccess.T", + "refersToTypeParameter": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "typeParameters": [ + { + "id": 2522, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisCommonResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2522, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisCommonResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisCommonResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 325, - "col": 0, - "byteIndex": 8354 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis operation result (common/generic).\n\nUsed for operations without a more specific result type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisCommonResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResultSuccess" - } - }, - { - "repr": "RedisCommonResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResultError" - } - }, - { - "repr": "RedisCommonResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResultFailure" - } - } - ] - }, - "typeParams": [ + "id": 2176, + "name": "RedisConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "Redis connection configuration.\n\nExtends CommonConnectionConfig with Redis-specific options." } ] - } - }, - { - "name": "RedisResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 338, - "col": 0, - "byteIndex": 8827 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union of all Redis result types." }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisCommonResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "children": [ + { + "id": 2177, + "name": "db", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Database index." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "code", + "text": "```ts\n0\n```" } - ], - "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" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 2178, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Hostname or IP address." } - }, - { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "code", + "text": "```ts\n\"localhost\"\n```" } - ], - "typeName": "RedisArrayResult" + ] } - }, - { - "repr": "RedisHashResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResult" + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" + } + }, + { + "id": 2181, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + { + "id": 2179, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" } - ] - } + }, + { + "id": 2180, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] }, { - "name": "RedisGetResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 353, - "col": 0, - "byteIndex": 9197 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2458, + "name": "RedisCountResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Count result with Redis error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } + "children": [ + { + "id": 2464, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.duration" + } + }, + { + "id": 2461, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 361, - "col": 2, - "byteIndex": 9470 - } + ] + }, + "type": { + "type": "reference", + "target": 2805, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:get", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:get" + }, + { + "id": 2463, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:count" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.kind" + } + }, + { + "id": 2460, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 354, - "col": 2, - "byteIndex": 9273 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.ok" + } + }, + { + "id": 2459, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 355, - "col": 2, - "byteIndex": 9313 - } + ] + }, + "type": { + "type": "literal", + "value": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.processed" + } + }, + { + "id": 2462, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisCountResultBase" + }, + "name": "RedisCountResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 2465, + "name": "RedisCountResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "kind": "text", + "text": "Count result with connection failure." + } + ] + }, + "children": [ + { + "id": 2471, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 356, - "col": 2, - "byteIndex": 9351 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 357, - "col": 2, - "byteIndex": 9382 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 358, - "col": 2, - "byteIndex": 9407 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.duration" + } + }, + { + "id": 2468, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] }, - { - "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-redis/0.5.1/result.ts", - "line": 359, - "col": 2, - "byteIndex": 9440 - } + "type": { + "type": "reference", + "target": 2804, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.error" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisGetResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultSuccess" - } + }, + { + "id": 2470, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:count" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.kind" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 2467, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.ok" + } + }, + { + "id": 2466, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.processed" + } + }, + { + "id": 2469, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisCountResultBase" + }, + "name": "RedisCountResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisGetResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 370, - "col": 0, - "byteIndex": 9606 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2451, + "name": "RedisCountResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful count result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - } + "children": [ + { + "id": 2457, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.duration" + } + }, + { + "id": 2454, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.error" + } + }, + { + "id": 2456, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:count" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.kind" + } + }, + { + "id": 2453, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 378, - "col": 2, - "byteIndex": 9882 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:get", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:get" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 371, - "col": 2, - "byteIndex": 9678 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 372, - "col": 2, - "byteIndex": 9718 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 373, - "col": 2, - "byteIndex": 9756 - } + "type": { + "type": "literal", + "value": true }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.ok" + } + }, + { + "id": 2452, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 374, - "col": 2, - "byteIndex": 9788 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 375, - "col": 2, - "byteIndex": 9827 - } + "type": { + "type": "literal", + "value": true }, - { - "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-redis/0.5.1/result.ts", - "line": 376, - "col": 2, - "byteIndex": 9852 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.processed" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + }, + { + "id": 2455, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisCountResultBase" + }, + "name": "RedisCountResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 2758, + "name": "RedisErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RedisGetResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultError" - } + "kind": "text", + "text": "Options for Redis errors." } - ], - "typeParams": [], - "superTypeParams": [] - } + ] + }, + "children": [ + { + "id": 2759, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 2777, + "name": "RedisCommandErrorOptions" + }, + { + "type": "reference", + "target": 2789, + "name": "RedisScriptErrorOptions" + } + ] }, { - "name": "RedisGetResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 387, - "col": 0, - "byteIndex": 10024 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2414, + "name": "RedisGetResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "GET result with Redis error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "children": [ + { + "id": 2420, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 395, - "col": 2, - "byteIndex": 10303 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 2420, + "name": "RedisGetResultBase.duration", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:get", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:get" + }, + { + "id": 2417, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 388, - "col": 2, - "byteIndex": 10100 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 389, - "col": 2, - "byteIndex": 10140 - } + "type": { + "type": "reference", + "target": 2805, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.error" + } + }, + { + "id": 2419, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:get" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.kind" + } + }, + { + "id": 2416, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 390, - "col": 2, - "byteIndex": 10179 - } + ] }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.ok" + } + }, + { + "id": 2415, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 391, - "col": 2, - "byteIndex": 10211 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 392, - "col": 2, - "byteIndex": 10248 - } + "type": { + "type": "literal", + "value": true }, - { - "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-redis/0.5.1/result.ts", - "line": 393, - "col": 2, - "byteIndex": 10273 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisGetResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultFailure" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 2418, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisGetResultBase" + }, + "name": "RedisGetResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisSetResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 404, - "col": 0, - "byteIndex": 10443 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2421, + "name": "RedisGetResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "GET result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "children": [ + { + "id": 2427, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 412, - "col": 2, - "byteIndex": 10717 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 2420, + "name": "RedisGetResultBase.duration", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:set", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:set" + }, + { + "id": 2424, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 405, - "col": 2, - "byteIndex": 10519 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 406, - "col": 2, - "byteIndex": 10559 - } + "type": { + "type": "reference", + "target": 2804, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.error" + } + }, + { + "id": 2426, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:get" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.kind" + } + }, + { + "id": 2423, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 407, - "col": 2, - "byteIndex": 10597 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 408, - "col": 2, - "byteIndex": 10628 - } + "type": { + "type": "literal", + "value": false }, - { - "tsType": { - "repr": "OK", - "kind": "literal", - "literal": { - "kind": "string", - "string": "OK" + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.ok" + } + }, + { + "id": 2422, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 409, - "col": 2, - "byteIndex": 10653 - } + ] }, - { - "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-redis/0.5.1/result.ts", - "line": 410, - "col": 2, - "byteIndex": 10687 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisSetResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultSuccess" - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 2425, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisGetResultBase" + }, + "name": "RedisGetResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisSetResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 420, - "col": 0, - "byteIndex": 10807 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2407, + "name": "RedisGetResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful GET result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - } + "children": [ + { + "id": 2413, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 2420, + "name": "RedisGetResultBase.duration", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisResultBase.duration" + } + }, + { + "id": 2410, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 428, - "col": 2, - "byteIndex": 11083 - } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:set", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:set" + }, + { + "id": 2412, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:get" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.kind" + } + }, + { + "id": 2409, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 421, - "col": 2, - "byteIndex": 10879 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.ok" + } + }, + { + "id": 2408, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 422, - "col": 2, - "byteIndex": 10919 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 423, - "col": 2, - "byteIndex": 10957 - } + "type": { + "type": "literal", + "value": true }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.processed" + } + }, + { + "id": 2411, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 424, - "col": 2, - "byteIndex": 10989 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 425, - "col": 2, - "byteIndex": 11028 - } + ] }, - { - "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-redis/0.5.1/result.ts", - "line": 426, - "col": 2, - "byteIndex": 11053 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisSetResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultError" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisGetResultBase" + }, + "name": "RedisGetResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisSetResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 437, - "col": 0, - "byteIndex": 11225 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2506, + "name": "RedisHashResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Hash result with Redis error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "children": [ + { + "id": 2512, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 445, - "col": 2, - "byteIndex": 11504 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:set", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:set" + }, + { + "id": 2509, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 438, - "col": 2, - "byteIndex": 11301 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 439, - "col": 2, - "byteIndex": 11341 - } + "type": { + "type": "reference", + "target": 2805, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.error" + } + }, + { + "id": 2511, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:hash" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.kind" + } + }, + { + "id": 2508, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 440, - "col": 2, - "byteIndex": 11380 - } + ] }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.ok" + } + }, + { + "id": 2507, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 441, - "col": 2, - "byteIndex": 11412 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 442, - "col": 2, - "byteIndex": 11449 - } + "type": { + "type": "literal", + "value": true }, - { - "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-redis/0.5.1/result.ts", - "line": 443, - "col": 2, - "byteIndex": 11474 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisSetResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultFailure" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 2510, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisHashResultBase" + }, + "name": "RedisHashResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisCountResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 454, - "col": 0, - "byteIndex": 11644 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2513, + "name": "RedisHashResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Hash result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "children": [ + { + "id": 2519, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.duration" + } + }, + { + "id": 2516, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 462, - "col": 2, - "byteIndex": 11916 - } + ] + }, + "type": { + "type": "reference", + "target": 2804, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:count" + }, + { + "id": 2518, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:hash" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.kind" + } + }, + { + "id": 2515, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 455, - "col": 2, - "byteIndex": 11724 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 456, - "col": 2, - "byteIndex": 11766 - } + "type": { + "type": "literal", + "value": false }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.ok" + } + }, + { + "id": 2514, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 457, - "col": 2, - "byteIndex": 11804 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 458, - "col": 2, - "byteIndex": 11835 - } + ] }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 459, - "col": 2, - "byteIndex": 11860 - } + "type": { + "type": "literal", + "value": false }, - { - "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-redis/0.5.1/result.ts", - "line": 460, - "col": 2, - "byteIndex": 11886 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.processed" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCountResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultSuccess" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 2517, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisHashResultBase" + }, + "name": "RedisHashResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisCountResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 471, - "col": 0, - "byteIndex": 12045 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2499, + "name": "RedisHashResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful hash result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "children": [ + { + "id": 2505, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 479, - "col": 2, - "byteIndex": 12327 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:count" + }, + { + "id": 2502, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 472, - "col": 2, - "byteIndex": 12121 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 473, - "col": 2, - "byteIndex": 12163 - } + "type": { + "type": "literal", + "value": null }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.error" + } + }, + { + "id": 2504, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:hash" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.kind" + } + }, + { + "id": 2501, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 474, - "col": 2, - "byteIndex": 12201 - } + ] }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.ok" + } + }, + { + "id": 2500, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 475, - "col": 2, - "byteIndex": 12233 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 476, - "col": 2, - "byteIndex": 12272 - } + "type": { + "type": "literal", + "value": true }, - { - "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-redis/0.5.1/result.ts", - "line": 477, - "col": 2, - "byteIndex": 12297 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.processed" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + }, + { + "id": 2503, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisHashResultBase" + }, + "name": "RedisHashResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 2173, + "name": "RedisMessage", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RedisCountResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultError" - } + "kind": "text", + "text": "Redis Pub/Sub message" } - ], - "typeParams": [], - "superTypeParams": [] - } + ] + }, + "children": [ + { + "id": 2174, + "name": "channel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2175, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "RedisCountResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 488, - "col": 0, - "byteIndex": 12469 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2789, + "name": "RedisScriptErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Options for Redis script errors." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "children": [ + { + "id": 2791, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 2759, + "name": "RedisErrorOptions.code" + } + }, + { + "id": 2790, + "name": "script", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 2758, + "name": "RedisErrorOptions", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 2164, + "name": "RedisSetOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Redis SET options" + } + ] + }, + "children": [ + { + "id": 2165, + "name": "ex", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Expiration in seconds" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 496, - "col": 2, - "byteIndex": 12754 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:count" + }, + { + "id": 2167, + "name": "nx", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Only set if key does not exist" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 489, - "col": 2, - "byteIndex": 12549 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 2166, + "name": "px", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Expiration in milliseconds" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 490, - "col": 2, - "byteIndex": 12591 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 2172, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 491, - "col": 2, - "byteIndex": 12630 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + "inheritedFrom": { + "type": "reference", + "target": 2163, + "name": "RedisCommandOptions.retry" + } + }, + { + "id": 2171, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 492, - "col": 2, - "byteIndex": 12662 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 493, - "col": 2, - "byteIndex": 12699 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "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-redis/0.5.1/result.ts", - "line": 494, - "col": 2, - "byteIndex": 12724 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCountResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultFailure" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisArrayResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 505, - "col": 0, - "byteIndex": 12894 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" + "inheritedFrom": { + "type": "reference", + "target": 2162, + "name": "RedisCommandOptions.signal" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - } + }, + { + "id": 2169, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error when the operation fails.\n\nWhen " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ", failures will throw an error instead of returning a result\nwith " + }, + { + "kind": "code", + "text": "`ok: false`" + }, + { + "kind": "text", + "text": "." } ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 514, - "col": 2, - "byteIndex": 13189 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:array", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:array" + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config or defaults to false)\n```" + } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 507, - "col": 2, - "byteIndex": 12991 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 508, - "col": 2, - "byteIndex": 13033 - } + "type": { + "type": "intrinsic", + "name": "boolean" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "inheritedFrom": { + "type": "reference", + "target": 2160, + "name": "RedisCommandOptions.throwOnError" + } + }, + { + "id": 2170, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 509, - "col": 2, - "byteIndex": 13071 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 510, - "col": 2, - "byteIndex": 13102 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } + "inheritedFrom": { + "type": "reference", + "target": 2161, + "name": "RedisCommandOptions.timeout" + } + }, + { + "id": 2168, + "name": "xx", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Only set if key exists" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 511, - "col": 2, - "byteIndex": 13127 - } + ] }, - { - "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-redis/0.5.1/result.ts", - "line": 512, - "col": 2, - "byteIndex": 13159 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisArrayResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResultSuccess" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "superTypeParams": [] - } + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisArrayResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 523, - "col": 0, - "byteIndex": 13324 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2436, + "name": "RedisSetResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "SET result with Redis error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - } + "children": [ + { + "id": 2442, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.duration" + } + }, + { + "id": 2439, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 532, - "col": 2, - "byteIndex": 13623 - } + ] + }, + "type": { + "type": "reference", + "target": 2805, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:array", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:array" + }, + { + "id": 2441, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:set" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.kind" + } + }, + { + "id": 2438, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 525, - "col": 2, - "byteIndex": 13417 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.ok" + } + }, + { + "id": 2437, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 526, - "col": 2, - "byteIndex": 13459 - } + ] + }, + "type": { + "type": "literal", + "value": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.processed" + } + }, + { + "id": 2440, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisSetResultBase" + }, + "name": "RedisSetResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 2443, + "name": "RedisSetResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "kind": "text", + "text": "SET result with connection failure." + } + ] + }, + "children": [ + { + "id": 2449, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 527, - "col": 2, - "byteIndex": 13497 - } + ] }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.duration" + } + }, + { + "id": 2446, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 528, - "col": 2, - "byteIndex": 13529 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 529, - "col": 2, - "byteIndex": 13568 - } + "type": { + "type": "reference", + "target": 2804, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" }, - { - "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-redis/0.5.1/result.ts", - "line": 530, - "col": 2, - "byteIndex": 13593 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.error" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisArrayResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResultError" - } + }, + { + "id": 2448, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:set" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.kind" } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + }, + { + "id": 2445, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.ok" + } + }, + { + "id": 2444, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.processed" } - ], - "superTypeParams": [] - } + }, + { + "id": 2447, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisSetResultBase" + }, + "name": "RedisSetResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisArrayResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 541, - "col": 0, - "byteIndex": 13765 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2429, + "name": "RedisSetResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful SET result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "children": [ + { + "id": 2435, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 550, - "col": 2, - "byteIndex": 14067 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:array", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:array" + }, + { + "id": 2432, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 543, - "col": 2, - "byteIndex": 13862 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 544, - "col": 2, - "byteIndex": 13904 - } + "type": { + "type": "literal", + "value": null }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.error" + } + }, + { + "id": 2434, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:set" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.kind" + } + }, + { + "id": 2431, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 545, - "col": 2, - "byteIndex": 13943 - } + ] }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.ok" + } + }, + { + "id": 2430, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 546, - "col": 2, - "byteIndex": 13975 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 547, - "col": 2, - "byteIndex": 14012 - } + "type": { + "type": "literal", + "value": true }, - { - "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-redis/0.5.1/result.ts", - "line": 548, - "col": 2, - "byteIndex": 14037 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisArrayResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResultFailure" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.processed" } - ], - "superTypeParams": [] - } + }, + { + "id": 2433, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "OK" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "result.ts", + "qualifiedName": "RedisSetResultBase" + }, + "name": "RedisSetResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisHashResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 559, - "col": 0, - "byteIndex": 14207 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2188, + "name": "RedisTransaction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Redis transaction interface" } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ], - "typeName": "Record" + "children": [ + { + "id": 2203, + "name": "decr", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2204, + "name": "decr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2205, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 567, - "col": 2, - "byteIndex": 14492 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:hash", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:hash" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 560, - "col": 2, - "byteIndex": 14285 } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 2197, + "name": "del", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2198, + "name": "del", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2199, + "name": "keys", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 561, - "col": 2, - "byteIndex": 14326 } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 2278, + "name": "discard", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2279, + "name": "discard", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 562, - "col": 2, - "byteIndex": 14364 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 563, - "col": 2, - "byteIndex": 14395 } - }, - { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ] + }, + { + "id": 2275, + "name": "exec", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2276, + "name": "exec", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2277, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true }, + "type": { + "type": "reference", + "target": 2159, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "reference", + "target": 2497, + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" } ], - "typeName": "Record" + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 564, - "col": 2, - "byteIndex": 14420 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 565, - "col": 2, - "byteIndex": 14462 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisHashResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultSuccess" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisHashResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 576, - "col": 0, - "byteIndex": 14637 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + ] + }, + { + "id": 2189, + "name": "get", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2190, + "name": "get", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2191, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 584, - "col": 2, - "byteIndex": 14916 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:hash", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:hash" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 577, - "col": 2, - "byteIndex": 14711 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 578, - "col": 2, - "byteIndex": 14752 } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + { + "id": 2218, + "name": "hdel", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2219, + "name": "hdel", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2220, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2221, + "name": "fields", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 579, - "col": 2, - "byteIndex": 14790 } - }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + ] + }, + { + "id": 2206, + "name": "hget", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2207, + "name": "hget", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2208, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2209, + "name": "field", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 580, - "col": 2, - "byteIndex": 14822 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 581, - "col": 2, - "byteIndex": 14861 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 582, - "col": 2, - "byteIndex": 14886 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisHashResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultError" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisHashResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 593, - "col": 0, - "byteIndex": 15058 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + ] + }, + { + "id": 2215, + "name": "hgetall", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2216, + "name": "hgetall", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2217, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 601, - "col": 2, - "byteIndex": 15340 } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:hash", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:hash" + ] + }, + { + "id": 2210, + "name": "hset", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2211, + "name": "hset", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2212, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2213, + "name": "field", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2214, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 594, - "col": 2, - "byteIndex": 15136 } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + { + "id": 2200, + "name": "incr", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2201, + "name": "incr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2202, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 595, - "col": 2, - "byteIndex": 15177 } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + { + "id": 2241, + "name": "llen", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2242, + "name": "llen", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2243, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 596, - "col": 2, - "byteIndex": 15216 } - }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + ] + }, + { + "id": 2230, + "name": "lpop", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2231, + "name": "lpop", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2232, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 597, - "col": 2, - "byteIndex": 15248 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 598, - "col": 2, - "byteIndex": 15285 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 599, - "col": 2, - "byteIndex": 15310 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisHashResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultFailure" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisCommonResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 610, - "col": 0, - "byteIndex": 15480 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ] + }, + { + "id": 2222, + "name": "lpush", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2223, + "name": "lpush", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2224, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2225, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 619, - "col": 2, - "byteIndex": 15758 } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:common", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:common" + ] + }, + { + "id": 2236, + "name": "lrange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2237, + "name": "lrange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2238, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2239, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 2240, + "name": "stop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 612, - "col": 2, - "byteIndex": 15570 } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 2233, + "name": "rpop", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2234, + "name": "rpop", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2235, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 613, - "col": 2, - "byteIndex": 15613 } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 2226, + "name": "rpush", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2227, + "name": "rpush", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2228, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2229, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 614, - "col": 2, - "byteIndex": 15651 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 615, - "col": 2, - "byteIndex": 15682 } - }, - { - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ] + }, + { + "id": 2244, + "name": "sadd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2245, + "name": "sadd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2246, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2247, + "name": "members", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 616, - "col": 2, - "byteIndex": 15707 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 617, - "col": 2, - "byteIndex": 15728 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCommonResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 2192, + "name": "set", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2193, + "name": "set", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2194, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2195, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 2196, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2164, + "name": "RedisSetOptions", + "package": "@probitas-test/client-redis" } } ], - "typeName": "RedisCommonResultSuccess" + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } - }, - { - "name": "RedisCommonResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 628, - "col": 0, - "byteIndex": 15882 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + ] + }, + { + "id": 2255, + "name": "sismember", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2256, + "name": "sismember", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2257, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2258, + "name": "member", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 637, - "col": 2, - "byteIndex": 16175 } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:common", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:common" + ] + }, + { + "id": 2252, + "name": "smembers", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2253, + "name": "smembers", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2254, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 630, - "col": 2, - "byteIndex": 15968 } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 2248, + "name": "srem", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2249, + "name": "srem", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2250, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2251, + "name": "members", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 631, - "col": 2, - "byteIndex": 16011 } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + { + "id": 2259, + "name": "zadd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2260, + "name": "zadd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2261, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2262, + "name": "entries", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 2263, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 2265, + "name": "member", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2264, + "name": "score", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 632, - "col": 2, - "byteIndex": 16049 } - }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + ] + }, + { + "id": 2266, + "name": "zrange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2267, + "name": "zrange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2268, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2269, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 2270, + "name": "stop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 633, - "col": 2, - "byteIndex": 16081 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 634, - "col": 2, - "byteIndex": 16120 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 635, - "col": 2, - "byteIndex": 16145 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCommonResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 2271, + "name": "zscore", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2272, + "name": "zscore", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 2273, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2274, + "name": "member", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } } ], - "typeName": "RedisCommonResultError" - } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] }, { - "name": "RedisCommonResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 646, - "col": 0, - "byteIndex": 16317 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 2497, + "name": "RedisArrayResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Redis array result (LRANGE, SMEMBERS, etc.)." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "typeParameters": [ + { + "id": 2498, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 2473, + "typeArguments": [ + { + "type": "reference", + "target": 2498, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 655, - "col": 2, - "byteIndex": 16613 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:common", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:common" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 648, - "col": 2, - "byteIndex": 16407 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 649, - "col": 2, - "byteIndex": 16450 - } + "name": "RedisArrayResultSuccess", + "package": "@probitas-test/client-redis" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": "reference", + "target": 2481, + "typeArguments": [ + { + "type": "reference", + "target": 2498, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 650, - "col": 2, - "byteIndex": 16489 - } + ], + "name": "RedisArrayResultError", + "package": "@probitas-test/client-redis" }, { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + "type": "reference", + "target": 2489, + "typeArguments": [ + { + "type": "reference", + "target": 2498, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 651, - "col": 2, - "byteIndex": 16521 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 652, - "col": 2, - "byteIndex": 16558 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 653, - "col": 2, - "byteIndex": 16583 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCommonResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResultFailure" - } - } - ], - "typeParams": [ - { - "name": "T" + ], + "name": "RedisArrayResultFailure", + "package": "@probitas-test/client-redis" } - ], - "superTypeParams": [] + ] } }, { - "name": "RedisErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 140 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for Redis errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ + "id": 2545, + "name": "RedisCommonResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 11, - "col": 2, - "byteIndex": 200 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "Redis operation result (common/generic).\n\nUsed for operations without a more specific result type." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 17, - "col": 0, - "byteIndex": 280 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for Redis client errors." + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "typeParameters": [ + { + "id": 2546, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 2521, + "typeArguments": [ + { + "type": "reference", + "target": 2546, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResultSuccess", + "package": "@probitas-test/client-redis" + }, { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "type": "reference", + "target": 2529, + "typeArguments": [ { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - "right": "redis", - "tsType": null - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisErrorOptions" - } - } + "type": "reference", + "target": 2546, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 21, - "col": 2, - "byteIndex": 404 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 18, - "col": 2, - "byteIndex": 328 - } + "name": "RedisCommonResultError", + "package": "@probitas-test/client-redis" }, { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 19, - "col": 2, - "byteIndex": 377 - } + "type": "reference", + "target": 2537, + "typeArguments": [ + { + "type": "reference", + "target": 2546, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResultFailure", + "package": "@probitas-test/client-redis" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RedisConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 34, - "col": 0, - "byteIndex": 649 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a Redis connection cannot be established." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 2472, + "name": "RedisCountResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 38, - "col": 2, - "byteIndex": 808 - } + "kind": "text", + "text": "Redis numeric result (DEL, LPUSH, SADD, etc.)." } - ], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 35, - "col": 2, - "byteIndex": 706 - } + "type": "reference", + "target": 2451, + "name": "RedisCountResultSuccess", + "package": "@probitas-test/client-redis" }, { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 36, - "col": 2, - "byteIndex": 757 - } + "type": "reference", + "target": 2458, + "name": "RedisCountResultError", + "package": "@probitas-test/client-redis" + }, + { + "type": "reference", + "target": 2465, + "name": "RedisCountResultFailure", + "package": "@probitas-test/client-redis" } - ], - "indexSignatures": [], - "methods": [], - "extends": "RedisError", - "implements": [], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RedisCommandErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 46, - "col": 0, - "byteIndex": 963 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for Redis command errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 2804, + "name": "RedisFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RedisErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisErrorOptions" - } + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the Redis server." } - ], - "constructors": [], - "methods": [], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 2769, + "name": "RedisConnectionError", + "package": "@probitas-test/client-redis" + }, { - "name": "command", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1035 + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "name": "AbortError", + "package": "@probitas-test/client" + }, + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "typeParams": [] + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RedisCommandError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 53, - "col": 0, - "byteIndex": 1116 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a Redis command fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 2428, + "name": "RedisGetResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "RedisCommandErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 58, - "col": 2, - "byteIndex": 1294 - } + "kind": "text", + "text": "Redis GET result." } - ], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 54, - "col": 2, - "byteIndex": 1170 - } + "type": "reference", + "target": 2407, + "name": "RedisGetResultSuccess", + "package": "@probitas-test/client-redis" }, { - "tsType": { - "repr": "command", - "kind": "literal", - "literal": { - "kind": "string", - "string": "command" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 55, - "col": 2, - "byteIndex": 1218 - } + "type": "reference", + "target": 2414, + "name": "RedisGetResultError", + "package": "@probitas-test/client-redis" }, { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "command", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 56, - "col": 2, - "byteIndex": 1265 - } + "type": "reference", + "target": 2421, + "name": "RedisGetResultFailure", + "package": "@probitas-test/client-redis" } - ], - "indexSignatures": [], - "methods": [], - "extends": "RedisError", - "implements": [], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RedisScriptErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 67, - "col": 0, - "byteIndex": 1487 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for Redis script errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 2520, + "name": "RedisHashResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RedisErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisErrorOptions" - } + "kind": "text", + "text": "Redis hash result (HGETALL)." } - ], - "constructors": [], - "methods": [], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "script", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 68, - "col": 2, - "byteIndex": 1558 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": "reference", + "target": 2499, + "name": "RedisHashResultSuccess", + "package": "@probitas-test/client-redis" + }, + { + "type": "reference", + "target": 2506, + "name": "RedisHashResultError", + "package": "@probitas-test/client-redis" + }, + { + "type": "reference", + "target": 2513, + "name": "RedisHashResultFailure", + "package": "@probitas-test/client-redis" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RedisScriptError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 74, - "col": 0, - "byteIndex": 1641 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a Redis Lua script fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 2805, + "name": "RedisOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "RedisScriptErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisScriptErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 79, - "col": 2, - "byteIndex": 1815 - } + "kind": "text", + "text": "Error types that indicate the operation was processed but failed.\nThese are errors returned by the Redis server." } - ], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 75, - "col": 2, - "byteIndex": 1694 - } + "type": "reference", + "target": 2780, + "name": "RedisCommandError", + "package": "@probitas-test/client-redis" }, { - "tsType": { - "repr": "script", - "kind": "literal", - "literal": { - "kind": "string", - "string": "script" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1741 - } + "type": "reference", + "target": 2792, + "name": "RedisScriptError", + "package": "@probitas-test/client-redis" }, { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "script", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 77, - "col": 2, - "byteIndex": 1787 - } + "type": "reference", + "target": 2760, + "name": "RedisError", + "package": "@probitas-test/client-redis" } - ], - "indexSignatures": [], - "methods": [], - "extends": "RedisError", - "implements": [], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "createRedisClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/client.ts", - "line": 312, - "col": 0, - "byteIndex": 8521 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new Redis client instance.\n\nThe client provides comprehensive Redis data structure support including strings,\nhashes, lists, sets, sorted sets, pub/sub, and transactions.\n", - "tags": [ + "id": 2547, + "name": "RedisResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "param", - "name": "config", - "doc": "- Redis client configuration" + "kind": "text", + "text": "Union of all Redis result types." + } + ] + }, + "typeParameters": [ + { + "id": 2548, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 2545, + "typeArguments": [ + { + "type": "reference", + "target": 2548, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResult", + "package": "@probitas-test/client-redis" }, { - "kind": "return", - "doc": "A promise resolving to a new Redis client instance\n" + "type": "reference", + "target": 2428, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" }, { - "kind": "example", - "doc": "Using URL string\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({\n url: \"redis://localhost:6379/0\",\n});\n\nawait client.set(\"key\", \"value\");\nconst result = await client.get(\"key\");\nif (result.ok) {\n console.log(result.value); // \"value\"\n}\n\nawait client.close();\n```\n" + "type": "reference", + "target": 2450, + "name": "RedisSetResult", + "package": "@probitas-test/client-redis" }, { - "kind": "example", - "doc": "Using connection config object\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({\n url: {\n host: \"localhost\",\n port: 6379,\n password: \"secret\",\n db: 0,\n },\n});\nawait client.close();\n```\n" + "type": "reference", + "target": 2472, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" }, { - "kind": "example", - "doc": "Set with expiration\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\nconst sessionData = JSON.stringify({ userId: \"123\" });\nconst data = \"temporary value\";\n\n// Set key with 1 hour TTL\nawait client.set(\"session\", sessionData, { ex: 3600 });\n\n// Set key with 5 second TTL in milliseconds\nawait client.set(\"temp\", data, { px: 5000 });\n\nawait client.close();\n```\n" + "type": "reference", + "target": 2497, + "typeArguments": [ + { + "type": "reference", + "target": 2548, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true + } + ], + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" }, { - "kind": "example", - "doc": "Hash operations\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\nawait client.hset(\"user:123\", \"name\", \"Alice\");\nawait client.hset(\"user:123\", \"email\", \"alice@example.com\");\n\nconst user = await client.hgetall(\"user:123\");\nif (user.ok) {\n console.log(user.value); // { name: \"Alice\", email: \"alice@example.com\" }\n}\n\nawait client.close();\n```\n" + "type": "reference", + "target": 2520, + "name": "RedisHashResult", + "package": "@probitas-test/client-redis" + } + ] + } + }, + { + "id": 2450, + "name": "RedisSetResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redis SET result." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 2429, + "name": "RedisSetResultSuccess", + "package": "@probitas-test/client-redis" }, { - "kind": "example", - "doc": "Pub/Sub\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\n// Subscribe to channel (this would run indefinitely in practice)\n// for await (const message of client.subscribe(\"events\")) {\n// console.log(\"Received:\", message.message);\n// }\n\n// Publish to channel\nawait client.publish(\"events\", JSON.stringify({ type: \"user.created\" }));\n\nawait client.close();\n```\n" + "type": "reference", + "target": 2436, + "name": "RedisSetResultError", + "package": "@probitas-test/client-redis" }, { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nawait using client = await createRedisClient({\n url: \"redis://localhost:6379\",\n});\n\nawait client.set(\"test\", \"value\");\n// Client automatically closed when scope exits\n```" + "type": "reference", + "target": 2443, + "name": "RedisSetResultFailure", + "package": "@probitas-test/client-redis" } ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "RedisClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisClientConfig" + } + }, + { + "id": 2801, + "name": "createRedisClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 2802, + "name": "createRedisClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new Redis client instance.\n\nThe client provides comprehensive Redis data structure support including strings,\nhashes, lists, sets, sorted sets, pub/sub, and transactions." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new Redis client instance" + } + ] + }, + { + "tag": "@example", + "name": "Using URL string", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({\n url: \"redis://localhost:6379/0\",\n});\n\nawait client.set(\"key\", \"value\");\nconst result = await client.get(\"key\");\nif (result.ok) {\n console.log(result.value); // \"value\"\n}\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({\n url: {\n host: \"localhost\",\n port: 6379,\n password: \"secret\",\n db: 0,\n },\n});\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Set with expiration", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\nconst sessionData = JSON.stringify({ userId: \"123\" });\nconst data = \"temporary value\";\n\n// Set key with 1 hour TTL\nawait client.set(\"session\", sessionData, { ex: 3600 });\n\n// Set key with 5 second TTL in milliseconds\nawait client.set(\"temp\", data, { px: 5000 });\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Hash operations", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\nawait client.hset(\"user:123\", \"name\", \"Alice\");\nawait client.hset(\"user:123\", \"email\", \"alice@example.com\");\n\nconst user = await client.hgetall(\"user:123\");\nif (user.ok) {\n console.log(user.value); // { name: \"Alice\", email: \"alice@example.com\" }\n}\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Pub/Sub", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\n// Subscribe to channel (this would run indefinitely in practice)\n// for await (const message of client.subscribe(\"events\")) {\n// console.log(\"Received:\", message.message);\n// }\n\n// Publish to channel\nawait client.publish(\"events\", JSON.stringify({ type: \"user.created\" }));\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nawait using client = await createRedisClient({\n url: \"redis://localhost:6379\",\n});\n\nawait client.set(\"test\", \"value\");\n// Client automatically closed when scope exits\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 2803, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redis client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 2182, + "name": "RedisClientConfig", + "package": "@probitas-test/client-redis" } } - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisClient" - } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2280, + "name": "RedisClient", + "package": "@probitas-test/client-redis" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-redis", + "packageVersion": "0.5.2" } diff --git a/data/api/client-sql-duckdb.json b/data/api/client-sql-duckdb.json index 0d6cd3c..bfe3775 100644 --- a/data/api/client-sql-duckdb.json +++ b/data/api/client-sql-duckdb.json @@ -1,5455 +1,6035 @@ { - "name": "client-sql-duckdb", - "specifier": "@probitas/client-sql-duckdb", - "version": "0.5.1", - "moduleDoc": "DuckDB client for [Probitas](https://github.com/probitas-test/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-test/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\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createDuckDbClient({ path: \":memory:\" });\nawait client.transaction(async (tx: SqlTransaction) => {\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});\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [DuckDB](https://duckdb.org/)\n", - "exports": [ - { - "name": "DuckDbClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/client.ts", - "line": 25, - "col": 0, - "byteIndex": 691 + "schemaVersion": "2.0", + "id": 3053, + "name": "@probitas-test/client-sql-duckdb", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "DuckDB client for [Probitas](https://github.com/probitas-test/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 " }, - "declarationKind": "export", - "jsDoc": { - "doc": "DuckDB client interface." + { + "kind": "code", + "text": "`AsyncDisposable`" }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-sql-duckdb\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createDuckDbClient } from \"@probitas-test/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```" + }, + { + "kind": "text", + "text": "\n\n## Transactions\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createDuckDbClient({ path: \":memory:\" });\nawait client.transaction(async (tx: SqlTransaction) => {\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});\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\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```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql) | Common SQL types and utilities |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-postgres`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-postgres) | PostgreSQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-mysql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-mysql) | MySQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-sqlite`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-sqlite) | SQLite client |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [DuckDB](https://duckdb.org/)" + } + ] + }, + "children": [ + { + "id": 3154, + "name": "CatalogError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown for catalog errors (table not found, etc.)." + } + ] + }, + "children": [ + { + "id": 3155, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3156, + "name": "CatalogError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3157, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3158, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3132, + "name": "DuckDbErrorOptions", + "package": "@probitas-test/client-sql-duckdb" + } + } + ], + "type": { + "type": "reference", + "target": 3154, + "name": "CatalogError", + "package": "@probitas-test/client-sql-duckdb" + }, + "overwrites": { + "type": "reference", + "target": 3137, + "name": "DuckDbError.constructor" + } } + ], + "overwrites": { + "type": "reference", + "target": 3136, + "name": "DuckDbError.constructor" } - ], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a SQL query.", - "tags": [ + }, + { + "id": 3160, + "name": "duckdbKind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "catalog" + }, + "defaultValue": "..." + }, + { + "id": 3161, + "name": "errorType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 3141, + "name": "DuckDbError.errorType" + } + }, + { + "id": 3162, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "reference", + "target": 3189, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 3142, + "name": "DuckDbError.kind" + } + }, + { + "id": 3159, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "CatalogError" + }, + "defaultValue": "\"CatalogError\"", + "overwrites": { + "type": "reference", + "target": 3140, + "name": "DuckDbError.name" + } + }, + { + "id": 3163, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3143, + "name": "DuckDbError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3135, + "name": "DuckDbError", + "package": "@probitas-test/client-sql-duckdb" + } + ] + }, + { + "id": 3209, + "name": "ConstraintError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a constraint violation occurs." + } + ] + }, + "children": [ + { + "id": 3210, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3211, + "name": "ConstraintError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" + "id": 3212, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" + "id": 3213, + "name": "constraint", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3214, "name": "options", - "doc": "- Optional query options" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3190, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/client.ts", - "line": 39, - "col": 2, - "byteIndex": 1176 - }, - "params": [ + ], + "type": { + "type": "reference", + "target": 3209, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 3194, + "name": "SqlError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 3193, + "name": "SqlError.constructor" + } + }, + { + "id": 3217, + "name": "constraint", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3216, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "constraint" + }, + "overwrites": { + "type": "reference", + "target": 3199, + "name": "SqlError.kind" + } + }, + { + "id": 3215, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "ConstraintError" + }, + "defaultValue": "\"ConstraintError\"", + "overwrites": { + "type": "reference", + "target": 3198, + "name": "SqlError.name" + } + }, + { + "id": 3218, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3200, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3192, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3219, + "name": "DeadlockError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a deadlock is detected." + } + ] + }, + "children": [ + { + "id": 3220, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3221, + "name": "DeadlockError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3222, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3223, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3190, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } + ], + "type": { + "type": "reference", + "target": 3219, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 3194, + "name": "SqlError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 3193, + "name": "SqlError.constructor" + } + }, + { + "id": 3225, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "deadlock" + }, + "overwrites": { + "type": "reference", + "target": 3199, + "name": "SqlError.kind" + } + }, + { + "id": 3224, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "DeadlockError" + }, + "defaultValue": "\"DeadlockError\"", + "overwrites": { + "type": "reference", + "target": 3198, + "name": "SqlError.name" + } + }, + { + "id": 3226, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3200, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3192, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3135, + "name": "DuckDbError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base error class for DuckDB-specific errors.\nExtends SqlError with DuckDB-specific properties." + } + ] + }, + "children": [ + { + "id": 3136, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3137, + "name": "DuckDbError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3138, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3139, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3132, + "name": "DuckDbErrorOptions", + "package": "@probitas-test/client-sql-duckdb" } } + ], + "type": { + "type": "reference", + "target": 3135, + "name": "DuckDbError", + "package": "@probitas-test/client-sql-duckdb" + }, + "overwrites": { + "type": "reference", + "target": 3194, + "name": "SqlError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ], + "overwrites": { + "type": "reference", + "target": 3193, + "name": "SqlError.constructor" + } + }, + { + "id": 3141, + "name": "errorType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3142, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "reference", + "target": 3189, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 3199, + "name": "SqlError.kind" + } + }, + { + "id": 3140, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"DuckDbError\"", + "overwrites": { + "type": "reference", + "target": 3198, + "name": "SqlError.name" + } + }, + { + "id": 3143, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3200, + "name": "SqlError.sqlState", + "package": "@probitas-test/client-sql" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3192, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 3144, + "name": "IoError" + }, + { + "type": "reference", + "target": 3154, + "name": "CatalogError" + } + ] + }, + { + "id": 3092, + "name": "DuckDbTransactionImpl", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." + } + ] + }, + "children": [ + { + "id": 3114, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3115, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } + "kind": "text", + "text": "Commit the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3186, + "name": "SqlTransaction.commit" } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ], + "implementationOf": { + "type": "reference", + "target": 3185, + "name": "SqlTransaction.commit" + } + }, + { + "id": 3102, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3103, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query within the transaction." + } + ] + }, + "typeParameters": [ + { + "id": 3104, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] - }, - { - "name": "queryOne", - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.", - "tags": [ + ], + "parameters": [ { - "kind": "param", + "id": 3105, "name": "sql", - "doc": "- SQL query string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3106, "name": "params", - "doc": "- Optional query parameters" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } }, { - "kind": "param", + "id": 3107, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/client.ts", - "line": 52, - "col": 2, - "byteIndex": 1634 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3164, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, + "type": "reference", + "target": 3312, + "typeArguments": [ { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" + "type": "reference", + "target": 3104, + "name": "T", + "package": "@probitas-test/client-sql-duckdb", + "refersToTypeParameter": true } - ] + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3174, + "name": "SqlTransaction.query" } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ], + "implementationOf": { + "type": "reference", + "target": 3173, + "name": "SqlTransaction.query" + } + }, + { + "id": 3108, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3109, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 3110, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] - }, - { - "name": "transaction", - "jsDoc": { - "doc": "Execute a function within a transaction.\nAutomatically commits on success or rolls back on error.", - "tags": [ - { - "kind": "param", - "name": "fn", - "doc": "- Function to execute within transaction" - }, + ], + "parameters": [ { - "kind": "param", - "name": "options", - "doc": "- Transaction options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/client.ts", - "line": 64, - "col": 2, - "byteIndex": 1991 - }, - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - "params": [ + "id": 3111, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "tx", - "optional": false, - "tsType": { - "repr": "SqlTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransaction" - } - } + "kind": "text", + "text": "SQL query string" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransactionOptions" - } - }, - { - "repr": "DuckDbTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDbTransactionOptions" + }, + { + "id": 3112, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } - ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "T" - } - ] - }, - { - "name": "queryParquet", - "jsDoc": { - "doc": "Query a Parquet file directly.\nDuckDB can read Parquet files without importing them.", - "tags": [ + }, { - "kind": "param", - "name": "path", - "doc": "- Path to the Parquet file" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/client.ts", - "line": 75, - "col": 2, - "byteIndex": 2405 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "id": 3113, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "kind": "text", + "text": "Optional query options" } - ], - "typeName": "Record" + ] + }, + "type": { + "type": "reference", + "target": 3164, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } - } - ] - }, - { - "name": "queryCsv", - "jsDoc": { - "doc": "Query a CSV file directly.\nDuckDB can read CSV files without importing them.", - "tags": [ - { - "kind": "param", - "name": "path", - "doc": "- Path to the CSV file" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/client.ts", - "line": 85, - "col": 2, - "byteIndex": 2756 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "type": "union", + "types": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "reference", + "target": 3110, + "name": "T", + "package": "@probitas-test/client-sql-duckdb", + "refersToTypeParameter": true }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "intrinsic", + "name": "undefined" } - ], - "typeName": "Record" + ] } - } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3180, + "name": "SqlTransaction.queryOne" } - ] - }, - { - "name": "close", - "jsDoc": { - "doc": "Close the database connection." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/client.ts", - "line": 90, - "col": 2, - "byteIndex": 2884 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ], + "implementationOf": { + "type": "reference", + "target": 3179, + "name": "SqlTransaction.queryOne" + } + }, + { + "id": 3116, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3117, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "type": "intrinsic", + "name": "void" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3188, + "name": "SqlTransaction.rollback" } - }, - "typeParams": [] + } + ], + "implementationOf": { + "type": "reference", + "target": 3187, + "name": "SqlTransaction.rollback" } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "The client configuration." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/client.ts", - "line": 27, - "col": 2, - "byteIndex": 784 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "DuckDbClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDbClientConfig" - } - }, - "typeParams": [] + }, + { + "id": 3093, + "name": "begin", + "variant": "declaration", + "kind": 2048, + "flags": { + "isStatic": true }, - { - "name": "dialect", - "jsDoc": { - "doc": "The SQL dialect identifier." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/client.ts", - "line": 30, - "col": 2, - "byteIndex": 861 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "duckdb", - "kind": "literal", - "literal": { - "kind": "string", - "string": "duckdb" + "signatures": [ + { + "id": 3094, + "name": "begin", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Begin a new transaction." + } + ] + }, + "parameters": [ + { + "id": 3095, + "name": "conn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@duckdb/node-api", + "packagePath": "lib/DuckDBConnection.d.ts", + "qualifiedName": "DuckDBConnection" + }, + "name": "DuckDBConnection", + "package": "@duckdb/node-api" + } + }, + { + "id": 3096, + "name": "_options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3090, + "name": "DuckDbTransactionOptions", + "package": "@probitas-test/client-sql-duckdb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3092, + "name": "DuckDbTransactionImpl", + "package": "@probitas-test/client-sql-duckdb" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] + } + ], + "implementedTypes": [ + { + "type": "reference", + "target": 3172, + "name": "SqlTransaction", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "createDuckDbClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/client.ts", - "line": 176, - "col": 0, - "byteIndex": 5351 + "id": 3144, + "name": "IoError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown for IO-related errors (file not found, permission denied, etc.)." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new DuckDB client instance.\n\nThe client provides parameterized queries, transaction support,\nand DuckDB-specific features like direct Parquet and CSV file querying.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- DuckDB client configuration" - }, - { - "kind": "return", - "doc": "A promise resolving to a new DuckDB client instance\n" + "children": [ + { + "id": 3145, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3146, + "name": "IoError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3147, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3148, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3132, + "name": "DuckDbErrorOptions", + "package": "@probitas-test/client-sql-duckdb" + } + } + ], + "type": { + "type": "reference", + "target": 3144, + "name": "IoError", + "package": "@probitas-test/client-sql-duckdb" + }, + "overwrites": { + "type": "reference", + "target": 3137, + "name": "DuckDbError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 3136, + "name": "DuckDbError.constructor" + } + }, + { + "id": 3150, + "name": "duckdbKind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "example", - "doc": "Using in-memory database (default)\n```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\nconst client = await createDuckDbClient({});\n\nconst result = await client.query(\"SELECT 42 as answer\");\nif (result.ok) {\n console.log(result.rows[0]); // { answer: 42 }\n}\n\nawait client.close();\n```\n" + "type": { + "type": "literal", + "value": "io" }, - { - "kind": "example", - "doc": "Using file-based database\n```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\nconst client = await createDuckDbClient({\n path: \"./data.duckdb\",\n});\nawait client.close();\n```\n" + "defaultValue": "..." + }, + { + "id": 3151, + "name": "errorType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "kind": "example", - "doc": "Query Parquet files directly\n```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\nconst client = await createDuckDbClient({ path: \":memory:\" });\n\n// Query directly from Parquet\nconst result = await client.queryParquet<{ id: number; value: string }>(\n \"./data/events.parquet\"\n);\n\nawait client.close();\n```\n" + "type": { + "type": "intrinsic", + "name": "string" }, - { - "kind": "example", - "doc": "Query CSV files directly\n```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\nconst client = await createDuckDbClient({ path: \":memory:\" });\n\nconst result = await client.queryCsv<{ name: string; age: number }>(\n \"./data/users.csv\"\n);\n\nawait client.close();\n```\n" + "inheritedFrom": { + "type": "reference", + "target": 3141, + "name": "DuckDbError.errorType" + } + }, + { + "id": 3152, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "kind": "example", - "doc": "Transaction with auto-commit/rollback\n```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createDuckDbClient({ path: \":memory:\" });\nawait client.transaction(async (tx: SqlTransaction) => {\n await tx.query(\"INSERT INTO users VALUES ($1, $2)\", [1, \"Alice\"]);\n await tx.query(\"INSERT INTO users VALUES ($1, $2)\", [2, \"Bob\"]);\n});\nawait client.close();\n```\n" + "type": { + "type": "reference", + "target": 3189, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\nawait using client = await createDuckDbClient({});\n\nconst result = await client.query(\"SELECT 1\");\n// Client automatically closed when scope exits\n```" + "inheritedFrom": { + "type": "reference", + "target": 3142, + "name": "DuckDbError.kind" } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "DuckDbClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDbClientConfig" - } - } + }, + { + "id": 3149, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "IoError" + }, + "defaultValue": "\"IoError\"", + "overwrites": { + "type": "reference", + "target": 3140, + "name": "DuckDbError.name" } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 3153, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "repr": "DuckDbClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDbClient" - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - ], - "typeName": "Promise" + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3143, + "name": "DuckDbError.sqlState" } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3135, + "name": "DuckDbError", + "package": "@probitas-test/client-sql-duckdb" + } + ] }, { - "name": "DuckDbTransactionOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/transaction.ts", - "line": 17, - "col": 0, - "byteIndex": 429 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "DuckDB-specific transaction options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransactionOptions" - } + "id": 3201, + "name": "QuerySyntaxError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a SQL query has syntax errors." } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "DuckDbTransactionImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/transaction.ts", - "line": 21, - "col": 0, - "byteIndex": 575 + ] }, - "declarationKind": "export", - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": "private", - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "conn", - "optional": false, - "tsType": { - "repr": "DuckDBConnection", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDBConnection" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/transaction.ts", - "line": 25, - "col": 2, - "byteIndex": 698 - } - } - ], - "properties": [], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Begin a new transaction." - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": true, - "name": "begin", - "kind": "method", - "functionDef": { - "params": [ + "children": [ + { + "id": 3202, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3203, + "name": "QuerySyntaxError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "identifier", - "name": "conn", - "optional": false, - "tsType": { - "repr": "DuckDBConnection", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDBConnection" - } + "id": 3204, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "kind": "identifier", - "name": "_options", - "optional": true, - "tsType": { - "repr": "DuckDbTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDbTransactionOptions" - } + "id": 3205, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3190, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "DuckDbTransactionImpl", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDbTransactionImpl" - } - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": 3201, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/transaction.ts", - "line": 32, - "col": 2, - "byteIndex": 816 + "overwrites": { + "type": "reference", + "target": 3194, + "name": "SqlError.constructor" + } } + ], + "overwrites": { + "type": "reference", + "target": 3193, + "name": "SqlError.constructor" + } + }, + { + "id": 3207, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "query", - "kind": "method", - "functionDef": { - "params": [ + "type": { + "type": "literal", + "value": "query" + }, + "overwrites": { + "type": "reference", + "target": 3199, + "name": "SqlError.kind" + } + }, + { + "id": 3206, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "QuerySyntaxError" + }, + "defaultValue": "\"QuerySyntaxError\"", + "overwrites": { + "type": "reference", + "target": 3198, + "name": "SqlError.name" + } + }, + { + "id": 3208, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3200, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3192, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3227, + "name": "SqlConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" + } + ] + }, + "children": [ + { + "id": 3228, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3229, + "name": "SqlConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 3230, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - }, - { - "kind": "identifier", + "id": 3231, "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3190, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": 3227, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" }, - "hasBody": true, - "isAsync": true, - "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" - } - } - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/transaction.ts", - "line": 48, - "col": 2, - "byteIndex": 1414 + "overwrites": { + "type": "reference", + "target": 3194, + "name": "SqlError.constructor" + } } + ], + "overwrites": { + "type": "reference", + "target": 3193, + "name": "SqlError.constructor" + } + }, + { + "id": 3233, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queryOne", - "kind": "method", - "functionDef": { - "params": [ + "type": { + "type": "literal", + "value": "connection" + }, + "overwrites": { + "type": "reference", + "target": 3199, + "name": "SqlError.kind" + } + }, + { + "id": 3232, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqlConnectionError" + }, + "defaultValue": "\"SqlConnectionError\"", + "overwrites": { + "type": "reference", + "target": 3198, + "name": "SqlError.name" + } + }, + { + "id": 3234, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3200, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3192, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3192, + "name": "SqlError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." + } + ] + }, + "children": [ + { + "id": 3193, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3194, + "name": "SqlError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 3195, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "id": 3196, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3189, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" } }, { - "kind": "identifier", + "id": 3197, "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3190, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": 3192, + "name": "SqlError", + "package": "@probitas-test/client-sql" }, - "hasBody": true, - "isAsync": true, - "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" - } - } - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/transaction.ts", - "line": 156, - "col": 2, - "byteIndex": 5327 + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 3199, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "commit", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/transaction.ts", - "line": 173, - "col": 2, - "byteIndex": 5792 - } + "type": { + "type": "reference", + "target": 3189, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rollback", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/transaction.ts", - "line": 186, - "col": 2, - "byteIndex": 6086 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransaction" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "DuckDbClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/types.ts", - "line": 6, - "col": 0, - "byteIndex": 122 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration for creating a DuckDB client." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "path", - "jsDoc": { - "doc": "Database file path.\nUse `:memory:` or omit for an in-memory database." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/types.ts", - "line": 11, - "col": 2, - "byteIndex": 276 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 3198, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "readonly", - "jsDoc": { - "doc": "Open the database in read-only mode.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/types.ts", - "line": 17, - "col": 2, - "byteIndex": 377 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.\nCan be overridden per-query via SqlQueryOptions.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/types.ts", - "line": 25, - "col": 2, - "byteIndex": 634 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "DuckDbErrorKind", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 12, - "col": 0, - "byteIndex": 189 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "DuckDB-specific error kinds." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "io", - "kind": "literal", - "literal": { - "kind": "string", - "string": "io" - } - }, - { - "repr": "catalog", - "kind": "literal", - "literal": { - "kind": "string", - "string": "catalog" - } - }, - { - "repr": "parser", - "kind": "literal", - "literal": { - "kind": "string", - "string": "parser" - } - }, - { - "repr": "binder", - "kind": "literal", - "literal": { - "kind": "string", - "string": "binder" - } - } - ] }, - "typeParams": [] - } - }, - { - "name": "DuckDbErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 17, - "col": 0, - "byteIndex": 308 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for DuckDbError constructor." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "errorType", - "jsDoc": { - "doc": "DuckDB error type if available." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 19, - "col": 2, - "byteIndex": 413 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "DuckDbError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 26, - "col": 0, - "byteIndex": 554 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for DuckDB-specific errors.\nExtends SqlError with DuckDB-specific properties." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + { + "id": 3200, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "DuckDbErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDbErrorOptions" - } - } + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 30, - "col": 2, - "byteIndex": 682 - } + ] } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 27, - "col": 2, - "byteIndex": 600 - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "errorType", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 28, - "col": 2, - "byteIndex": 650 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 3135, + "name": "DuckDbError" + }, + { + "type": "reference", + "target": 3201, + "name": "QuerySyntaxError" + }, + { + "type": "reference", + "target": 3209, + "name": "ConstraintError" + }, + { + "type": "reference", + "target": 3219, + "name": "DeadlockError" + }, + { + "type": "reference", + "target": 3227, + "name": "SqlConnectionError" + } + ] }, { - "name": "IoError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 42, - "col": 0, - "byteIndex": 933 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown for IO-related errors (file not found, permission denied, etc.)." + "id": 3057, + "name": "DuckDbClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "DuckDB client interface." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 3058, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "DuckDbErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDbErrorOptions" - } - } + "kind": "text", + "text": "The client configuration." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 46, - "col": 2, - "byteIndex": 1056 - } + ] + }, + "type": { + "type": "reference", + "target": 3118, + "name": "DuckDbClientConfig", + "package": "@probitas-test/client-sql-duckdb" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 43, - "col": 2, - "byteIndex": 978 - } + }, + { + "id": 3059, + "name": "dialect", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "io", - "kind": "literal", - "literal": { - "kind": "string", - "string": "io" + "comment": { + "summary": [ + { + "kind": "text", + "text": "The SQL dialect identifier." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "duckdbKind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 44, - "col": 2, - "byteIndex": 1016 - } + ] + }, + "type": { + "type": "literal", + "value": "duckdb" } - ], - "indexSignatures": [], - "methods": [], - "extends": "DuckDbError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "CatalogError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 54, - "col": 0, - "byteIndex": 1221 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown for catalog errors (table not found, etc.)." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + }, + { + "id": 3088, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3089, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the database connection." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "DuckDbErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DuckDbErrorOptions" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 58, - "col": 2, - "byteIndex": 1359 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 55, - "col": 2, - "byteIndex": 1271 - } - }, - { - "tsType": { - "repr": "catalog", - "kind": "literal", - "literal": { - "kind": "string", - "string": "catalog" + ], + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "duckdbKind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 56, - "col": 2, - "byteIndex": 1314 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "DuckDbError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "convertDuckDbError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 68, - "col": 0, - "byteIndex": 1592 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Convert a DuckDB error to the appropriate error class.\n\nDuckDB errors are classified based on message content analysis." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } - } - ], - "returnType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "isConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.5.1/errors.ts", - "line": 159, - "col": 0, - "byteIndex": 4083 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if an error is a connection-level error.\nThese are errors that indicate the database cannot be accessed at all,\nnot errors that occur during query execution." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "returnType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "SqlQueryOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 7, - "col": 0, - "byteIndex": 165 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual SQL queries." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.", - "tags": [ + { + "id": 3060, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3061, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a SQL query." + } + ] + }, + "typeParameters": [ { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" + "id": 3062, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 13, - "col": 2, - "byteIndex": 443 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlIsolationLevel", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 19, - "col": 0, - "byteIndex": 519 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Transaction isolation level." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "read_uncommitted", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_uncommitted" - } - }, - { - "repr": "read_committed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_committed" - } - }, - { - "repr": "repeatable_read", - "kind": "literal", - "literal": { - "kind": "string", - "string": "repeatable_read" - } - }, - { - "repr": "serializable", - "kind": "literal", - "literal": { - "kind": "string", - "string": "serializable" - } - } - ] - }, - "typeParams": [] - } - }, - { - "name": "SqlTransactionOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 28, - "col": 0, - "byteIndex": 685 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for starting a transaction." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "isolationLevel", - "jsDoc": { - "doc": "Isolation level for the transaction" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 30, - "col": 2, - "byteIndex": 773 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "SqlIsolationLevel", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlIsolationLevel" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlTransaction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 37, - "col": 0, - "byteIndex": 940 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a query within the transaction.", - "tags": [ + ], + "parameters": [ { - "kind": "param", + "id": 3063, "name": "sql", - "doc": "- SQL query string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3064, "name": "params", - "doc": "- Optional query parameters" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } }, { - "kind": "param", + "id": 3065, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 45, - "col": 2, - "byteIndex": 1279 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3164, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3312, + "typeArguments": [ + { + "type": "reference", + "target": 3062, + "name": "T", + "package": "@probitas-test/client-sql-duckdb", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3084, + "name": "queryCsv", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3085, + "name": "queryCsv", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query a CSV file directly.\nDuckDB can read CSV files without importing them." + } + ] }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "typeParameters": [ + { + "id": 3086, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" } } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + ], + "parameters": [ + { + "id": 3087, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Path to the CSV file" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } + "type": "reference", + "target": 3312, + "typeArguments": [ + { + "type": "reference", + "target": 3086, + "name": "T", + "package": "@probitas-test/client-sql-duckdb", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 3066, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3067, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 3068, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] - }, - { - "name": "queryOne", - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.", - "tags": [ + ], + "parameters": [ { - "kind": "param", + "id": 3069, "name": "sql", - "doc": "- SQL query string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3070, "name": "params", - "doc": "- Optional query parameters" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } }, { - "kind": "param", + "id": 3071, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 58, - "col": 2, - "byteIndex": 1737 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3164, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "", - "kind": "union", - "union": [ + "type": "union", + "types": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 3068, + "name": "T", + "package": "@probitas-test/client-sql-duckdb", + "refersToTypeParameter": true }, { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" + "type": "intrinsic", + "name": "undefined" } ] } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 3080, + "name": "queryParquet", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3081, + "name": "queryParquet", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query a Parquet file directly.\nDuckDB can read Parquet files without importing them." + } + ] + }, + "typeParameters": [ + { + "id": 3082, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] - }, - { - "name": "commit", - "jsDoc": { - "doc": "Commit the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 67, - "col": 2, - "byteIndex": 1917 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" + ], + "parameters": [ + { + "id": 3083, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Path to the Parquet file" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "rollback", - "jsDoc": { - "doc": "Rollback the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 72, - "col": 2, - "byteIndex": 1988 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "type": "reference", + "target": 3312, + "typeArguments": [ + { + "type": "reference", + "target": 3082, + "name": "T", + "package": "@probitas-test/client-sql-duckdb", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" } ], - "typeName": "Promise" - } - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlErrorKind", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 140 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL-specific error kinds." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" - } - }, - { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" - } - }, - { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" - } - }, - { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" - } - }, - { - "repr": "unknown", - "kind": "literal", - "literal": { - "kind": "string", - "string": "unknown" + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqlErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 20, - "col": 0, - "byteIndex": 289 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SqlError constructor." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "sqlState", - "jsDoc": { - "doc": "SQL State code (e.g., \"23505\" for unique violation)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 22, - "col": 2, - "byteIndex": 408 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 29, - "col": 0, - "byteIndex": 545 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" + { + "id": 3072, + "name": "transaction", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3073, + "name": "transaction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a function within a transaction.\nAutomatically commits on success or rolls back on error." } - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } + "typeParameters": [ + { + "id": 3074, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 34, - "col": 2, - "byteIndex": 715 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 30, - "col": 2, - "byteIndex": 591 - } - }, - { - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 31, - "col": 2, - "byteIndex": 638 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "parameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 3075, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function to execute within transaction" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 3076, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 3077, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 3078, + "name": "tx", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3172, + "name": "SqlTransaction", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3074, + "name": "T", + "package": "@probitas-test/client-sql-duckdb", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 3079, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Transaction options" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3170, + "name": "SqlTransactionOptions", + "package": "@probitas-test/client-sql" + }, + { + "type": "reference", + "target": 3090, + "name": "DuckDbTransactionOptions", + "package": "@probitas-test/client-sql-duckdb" + } + ] + } } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sqlState", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 32, - "col": 2, - "byteIndex": 678 + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3074, + "name": "T", + "package": "@probitas-test/client-sql-duckdb", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "QuerySyntaxError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 48, - "col": 0, - "byteIndex": 981 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a SQL query has syntax errors." + "id": 3118, + "name": "DuckDbClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Configuration for creating a DuckDB client." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 3119, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Database file path.\nUse " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "code", + "text": "`:memory:`" + }, + { + "kind": "text", + "text": " or omit for an in-memory database." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3120, + "name": "readonly", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Open the database in read-only mode." } ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 52, - "col": 2, - "byteIndex": 1125 - } + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 49, - "col": 2, - "byteIndex": 1032 - } + }, + { + "id": 3124, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 50, - "col": 2, - "byteIndex": 1079 - } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "ConstraintError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 60, - "col": 0, - "byteIndex": 1288 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a constraint violation occurs." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 3123, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 3121, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "constraint", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.\nCan be overridden per-query via SqlQueryOptions." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - } + ] } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 65, - "col": 2, - "byteIndex": 1466 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 61, - "col": 2, - "byteIndex": 1338 - } + }, + { + "id": 3122, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 62, - "col": 2, - "byteIndex": 1384 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "constraint", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 63, - "col": 2, - "byteIndex": 1434 - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "DeadlockError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 74, - "col": 0, - "byteIndex": 1681 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a deadlock is detected." + "id": 3132, + "name": "DuckDbErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for DuckDbError constructor." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 3133, + "name": "errorType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "DuckDB error type if available." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 78, - "col": 2, - "byteIndex": 1822 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 75, - "col": 2, - "byteIndex": 1729 - } + }, + { + "id": 3134, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL State code (e.g., \"23505\" for unique violation)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1773 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 3191, + "name": "SqlErrorOptions.sqlState" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3190, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 94, - "col": 0, - "byteIndex": 2195 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" + "id": 3090, + "name": "DuckDbTransactionOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "DuckDB-specific transaction options." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 3091, + "name": "isolationLevel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "Isolation level for the transaction" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 98, - "col": 2, - "byteIndex": 2348 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 95, - "col": 2, - "byteIndex": 2248 - } + ] }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 96, - "col": 2, - "byteIndex": 2297 - } + "type": { + "type": "reference", + "target": 3169, + "name": "SqlIsolationLevel", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 3171, + "name": "SqlTransactionOptions.isolationLevel" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3170, + "name": "SqlTransactionOptions", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 107, - "col": 0, - "byteIndex": 2597 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." + "id": 3190, + "name": "SqlErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for SqlError constructor." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "QuerySyntaxError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QuerySyntaxError" - } - }, - { - "repr": "ConstraintError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConstraintError" - } - }, - { - "repr": "DeadlockError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DeadlockError" - } - }, - { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + "children": [ + { + "id": 3191, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL State code (e.g., \"23505\" for unique violation)" } - } - ] - }, - "typeParams": [] - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 3132, + "name": "DuckDbErrorOptions" + } + ] }, { - "name": "SqlFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 117, - "col": 0, - "byteIndex": 2845 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." + "id": 3164, + "name": "SqlQueryOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for individual SQL queries." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlConnectionError" + "children": [ + { + "id": 3168, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 3167, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 3165, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure." } - } - ] + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } }, - "typeParams": [] - } + { + "id": 3166, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "SqlQueryResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 44, - "col": 0, - "byteIndex": 1310 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." + "id": 3262, + "name": "SqlQueryResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultBase" - } + "children": [ + { + "id": 3272, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 46, - "col": 2, - "byteIndex": 1429 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 3266, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the SQL error." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "jsDoc": { - "doc": "Query succeeded." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 49, - "col": 2, - "byteIndex": 1484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "reference", + "target": 3192, + "name": "SqlError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3271, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "No error for successful queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 52, - "col": 2, - "byteIndex": 1548 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sql" }, - { - "name": "rows", - "jsDoc": { - "doc": "Query result rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 55, - "col": 2, - "byteIndex": 1601 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" + } + }, + { + "id": 3269, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No lastInsertId for failed queries." } - }, - "typeParams": [] + ] }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 58, - "col": 2, - "byteIndex": 1667 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3265, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 61, - "col": 2, - "byteIndex": 1748 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3264, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the query." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3268, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Zero affected rows for failed queries." + } + ] + }, + "type": { + "type": "literal", + "value": 0 + } + }, + { + "id": 3267, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Empty rows for failed queries." + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + } + } + }, + { + "id": 3270, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No warnings for failed queries." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3280, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 3281, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "id": 3282, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 3283, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3284, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3285, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3286, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3263, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3257, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } } - ] - }, - "typeParams": [] + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3257, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3273, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 64, - "col": 2, - "byteIndex": 1843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "signatures": [ + { + "id": 3274, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 3275, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 3276, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3277, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 3278, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 3279, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3263, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3250, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } } - } + ] } } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3250, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ] - } + } + ], + "typeParameters": [ + { + "id": 3263, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3263, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlQueryResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 73, - "col": 0, - "byteIndex": 2182 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." + "id": 3287, + "name": "SqlQueryResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "children": [ + { + "id": 3297, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" + } + }, + { + "id": 3291, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the failure." + } + ] + }, + "type": { + "type": "reference", + "target": 3236, + "name": "SqlFailureError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3296, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." + } + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" + } + }, + { + "id": 3294, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No lastInsertId (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3290, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3289, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server did not process the query." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3293, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No row count (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3292, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No rows (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3295, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No warnings (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3305, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 3306, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 3307, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 3308, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3309, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3310, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3311, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3288, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3257, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } } } ], - "typeName": "SqlQueryResultBase" + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3257, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 75, - "col": 2, - "byteIndex": 2299 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + }, + { + "id": 3298, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 78, - "col": 2, - "byteIndex": 2351 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "signatures": [ + { + "id": 3299, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 3300, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 3301, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3302, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 3303, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 3304, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3288, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3250, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3250, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - }, - "typeParams": [] + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } + } + ], + "typeParameters": [ + { + "id": 3288, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the SQL error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 81, - "col": 2, - "byteIndex": 2415 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - }, - "typeParams": [] + "typeArguments": [ + { + "type": "reference", + "target": 3288, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3237, + "name": "SqlQueryResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." + } + ] + }, + "children": [ + { + "id": 3247, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "rows", - "jsDoc": { - "doc": "Empty rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 84, - "col": 2, - "byteIndex": 2484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Zero affected rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 87, - "col": 2, - "byteIndex": 2568 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 3272, + "name": "SqlQueryResultBase.duration", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3241, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No error for successful queries." } - }, - "typeParams": [] + ] }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 90, - "col": 2, - "byteIndex": 2638 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 93, - "col": 2, - "byteIndex": 2711 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" } - ] - } - }, - { - "name": "SqlQueryResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 103, - "col": 0, - "byteIndex": 3071 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultBase" - } + }, + { + "id": 3246, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." + } + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 3271, + "name": "SqlQueryResultBase.kind", + "package": "@probitas-test/client-sql" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server did not process the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 105, - "col": 2, - "byteIndex": 3196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 3244, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Last inserted ID (for INSERT statements)." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 108, - "col": 2, - "byteIndex": 3249 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "bigint" + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] + } + }, + { + "id": 3240, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the failure." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 111, - "col": 2, - "byteIndex": 3311 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query succeeded." } - }, - "typeParams": [] + ] }, - { - "name": "rows", - "jsDoc": { - "doc": "No rows (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 114, - "col": 2, - "byteIndex": 3393 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "rowCount", - "jsDoc": { - "doc": "No row count (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 117, - "col": 2, - "byteIndex": 3468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3239, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 120, - "col": 2, - "byteIndex": 3550 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the query." + } + ] }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 123, - "col": 2, - "byteIndex": 3632 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 3243, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of affected rows." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ] - } - }, - { - "name": "SqlQueryResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 164, - "col": 0, - "byteIndex": 5113 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result union type representing all possible result states.\n\n- **Success**: `processed: true, ok: true, error: null`\n- **Error**: `processed: true, ok: false, error: SqlError`\n- **Failure**: `processed: false, ok: false, error: SqlConnectionError`\n", - "tags": [ - { - "kind": "example", - "doc": "Type narrowing by ok\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```\n" + }, + { + "id": 3242, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "example", - "doc": "Type narrowing by processed\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query result rows." + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3238, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } } - ] - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + }, + { + "id": 3245, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Warning messages from the database." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "SqlQueryResultSuccess" + } + }, + { + "type": "literal", + "value": null } - }, + ] + } + }, + { + "id": 3255, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 3256, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 3257, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 3258, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3259, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3260, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3261, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3238, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3257, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] } } - ], - "typeName": "SqlQueryResultError" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3257, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - }, + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3248, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 3249, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 3250, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 3251, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3252, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 3253, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 3254, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3238, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3250, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] } } - ], - "typeName": "SqlQueryResultFailure" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3250, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } } - ] - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ] - } + } + ], + "typeParameters": [ + { + "id": 3238, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3238, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { + "id": 3314, "name": "SqlQueryResultSuccessParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 173, - "col": 0, - "byteIndex": 5415 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a SqlQueryResultSuccess." + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating a SqlQueryResultSuccess." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "rows", - "jsDoc": { - "doc": "The result rows" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 175, - "col": 2, - "byteIndex": 5498 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows (for INSERT/UPDATE/DELETE)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 178, - "col": 2, - "byteIndex": 5590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "children": [ + { + "id": 3318, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "duration", - "jsDoc": { - "doc": "Query execution duration in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 181, - "col": 2, - "byteIndex": 5670 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds" + } + ] }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 184, - "col": 2, - "byteIndex": 5750 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ] - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 3319, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 187, - "col": 2, - "byteIndex": 5838 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Last inserted ID (for INSERT statements)" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "SqlQueryResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 194, - "col": 0, - "byteIndex": 5945 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultSuccess.", - "tags": [ - { - "kind": "internal" + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "bigint" + } + ] } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 3317, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "SqlQueryResultSuccessParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccessParams" - } - } + "kind": "text", + "text": "Number of affected rows (for INSERT/UPDATE/DELETE)" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 205, - "col": 2, - "byteIndex": 6343 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" + }, + { + "id": 3316, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The result rows" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 195, - "col": 2, - "byteIndex": 6027 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3315, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccessParams.T", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 196, - "col": 2, - "byteIndex": 6061 } + } + }, + { + "id": 3320, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "comment": { + "summary": [ + { + "kind": "text", + "text": "Warning messages from the database" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 197, - "col": 2, - "byteIndex": 6099 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 198, - "col": 2, - "byteIndex": 6130 + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + } + } + ], + "typeParameters": [ + { + "id": 3315, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 3172, + "name": "SqlTransaction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." + } + ] + }, + "children": [ + { + "id": 3185, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3186, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Commit the transaction." } - } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 199, - "col": 2, - "byteIndex": 6155 } - }, - { - "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.5.1/result.ts", - "line": 200, - "col": 2, - "byteIndex": 6186 - } - }, - { - "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.5.1/result.ts", - "line": 201, - "col": 2, - "byteIndex": 6215 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ] + }, + { + "id": 3173, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3174, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query within the transaction." + } + ] + }, + "typeParameters": [ { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, + "id": 3175, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 3176, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 202, - "col": 2, - "byteIndex": 6244 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "id": 3177, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 203, - "col": 2, - "byteIndex": 6293 - } - } - ], - "indexSignatures": [], - "methods": [ - { - "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": [] - } + "id": 3178, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3164, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3312, + "typeArguments": [ + { + "type": "reference", + "target": 3175, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" } - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 213, - "col": 2, - "byteIndex": 6605 + ], + "name": "Promise", + "package": "typescript" + } } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "as", - "kind": "method", - "functionDef": { - "params": [ + ] + }, + { + "id": 3179, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3180, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ { - "kind": "identifier", - "name": "ctor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } + "id": 3181, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" } } ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + "parameters": [ + { + "id": 3182, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + }, { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 221, - "col": 2, - "byteIndex": 6769 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 3183, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 3184, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3164, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } ], - "typeName": "SqlQueryResultSuccess" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3181, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } + ] + }, + { + "id": 3187, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3188, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + ], + "implementedBy": [ + { + "type": "reference", + "target": 3092, + "name": "DuckDbTransactionImpl" + } + ] }, { - "name": "SqlQueryResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 234, - "col": 0, - "byteIndex": 6999 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultError.", - "tags": [ - { - "kind": "internal" + "id": 3170, + "name": "SqlTransactionOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for starting a transaction." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - } - }, + "children": [ + { + "id": 3171, + "name": "isolationLevel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Isolation level for the transaction" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 245, - "col": 2, - "byteIndex": 7373 - } + ] + }, + "type": { + "type": "reference", + "target": 3169, + "name": "SqlIsolationLevel", + "package": "@probitas-test/client-sql" } - ], - "properties": [ + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 3090, + "name": "DuckDbTransactionOptions" + } + ] + }, + { + "id": 3131, + "name": "DuckDbErrorKind", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "DuckDB-specific error kinds." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 235, - "col": 2, - "byteIndex": 7077 - } + "type": "literal", + "value": "io" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 236, - "col": 2, - "byteIndex": 7111 - } + "type": "literal", + "value": "catalog" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 7149 - } + "type": "literal", + "value": "parser" + }, + { + "type": "literal", + "value": "binder" + } + ] + } + }, + { + "id": 3189, + "name": "SqlErrorKind", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL-specific error kinds." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "query" }, { - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 238, - "col": 2, - "byteIndex": 7181 - } + "type": "literal", + "value": "constraint" }, { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 239, - "col": 2, - "byteIndex": 7209 - } + "type": "literal", + "value": "deadlock" }, { - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 240, - "col": 2, - "byteIndex": 7249 - } + "type": "literal", + "value": "connection" }, { - "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.5.1/result.ts", - "line": 241, - "col": 2, - "byteIndex": 7283 - } + "type": "literal", + "value": "unknown" + } + ] + } + }, + { + "id": 3236, + "name": "SqlFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3227, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 242, - "col": 2, - "byteIndex": 7312 - } + "name": "AbortError", + "package": "@probitas-test/client" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 243, - "col": 2, - "byteIndex": 7344 - } + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "indexSignatures": [], - "methods": [ + ] + } + }, + { + "id": 3169, + "name": "SqlIsolationLevel", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Transaction isolation level." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "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.5.1/result.ts", - "line": 250, - "col": 2, - "byteIndex": 7483 - } + "type": "literal", + "value": "read_uncommitted" }, { - "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.5.1/result.ts", - "line": 254, - "col": 2, - "byteIndex": 7543 - } - } - ], - "extends": null, - "implements": [ + "type": "literal", + "value": "read_committed" + }, { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultError" - } - } - ], - "typeParams": [ + "type": "literal", + "value": "repeatable_read" + }, { - "name": "T" + "type": "literal", + "value": "serializable" } - ], - "superTypeParams": [] + ] } }, { - "name": "SqlQueryResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 263, - "col": 0, - "byteIndex": 7669 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultFailure.", - "tags": [ - { - "kind": "internal" + "id": 3235, + "name": "SqlOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3201, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" + }, { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 274, - "col": 2, - "byteIndex": 8033 - } - } - ], - "properties": [ + "type": "reference", + "target": 3209, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" + }, { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 264, - "col": 2, - "byteIndex": 7751 - } + "type": "reference", + "target": 3219, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 265, - "col": 2, - "byteIndex": 7785 - } + "type": "reference", + "target": 3192, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 3312, + "name": "SqlQueryResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result union type representing all possible result states.\n\n- **Success**: " }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 266, - "col": 2, - "byteIndex": 7824 - } + "kind": "code", + "text": "`processed: true, ok: true, error: null`" }, { - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 267, - "col": 2, - "byteIndex": 7856 - } + "kind": "text", + "text": "\n- **Error**: " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 268, - "col": 2, - "byteIndex": 7891 - } + "kind": "code", + "text": "`processed: true, ok: false, error: SqlError`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 269, - "col": 2, - "byteIndex": 7915 - } + "kind": "text", + "text": "\n- **Failure**: " }, { - "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.5.1/result.ts", - "line": 270, - "col": 2, - "byteIndex": 7943 - } + "kind": "code", + "text": "`processed: false, ok: false, error: SqlConnectionError`" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Type narrowing by ok", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```" + } + ] }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 271, - "col": 2, - "byteIndex": 7972 - } + "tag": "@example", + "name": "Type narrowing by processed", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + } + ] + } + ] + }, + "typeParameters": [ + { + "id": 3313, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3237, + "typeArguments": [ + { + "type": "reference", + "target": 3313, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultSuccess", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 272, - "col": 2, - "byteIndex": 8004 + "type": "reference", + "target": 3262, + "typeArguments": [ + { + "type": "reference", + "target": 3313, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultError", + "package": "@probitas-test/client-sql" + }, + { + "type": "reference", + "target": 3287, + "typeArguments": [ + { + "type": "reference", + "target": 3313, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultFailure", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 3125, + "name": "convertDuckDbError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 3126, + "name": "convertDuckDbError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert a DuckDB error to the appropriate error class.\n\nDuckDB errors are classified based on message content analysis." + } + ] + }, + "parameters": [ + { + "id": 3127, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "reference", + "target": 3192, + "name": "SqlError", + "package": "@probitas-test/client-sql" } - ], - "indexSignatures": [], - "methods": [ - { - "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": [] - } + } + ] + }, + { + "id": 3054, + "name": "createDuckDbClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 3055, + "name": "createDuckDbClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new DuckDB client instance.\n\nThe client provides parameterized queries, transaction support,\nand DuckDB-specific features like direct Parquet and CSV file querying." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new DuckDB client instance" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + }, + { + "tag": "@example", + "name": "Using in-memory database (default)", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\nconst client = await createDuckDbClient({});\n\nconst result = await client.query(\"SELECT 42 as answer\");\nif (result.ok) {\n console.log(result.rows[0]); // { answer: 42 }\n}\n\nawait client.close();\n```" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 279, - "col": 2, - "byteIndex": 8150 - } - }, - { - "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": [] - } + { + "tag": "@example", + "name": "Using file-based database", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\nconst client = await createDuckDbClient({\n path: \"./data.duckdb\",\n});\nawait client.close();\n```" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + }, + { + "tag": "@example", + "name": "Query Parquet files directly", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\nconst client = await createDuckDbClient({ path: \":memory:\" });\n\n// Query directly from Parquet\nconst result = await client.queryParquet<{ id: number; value: string }>(\n \"./data/events.parquet\"\n);\n\nawait client.close();\n```" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 283, - "col": 2, - "byteIndex": 8210 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + { + "tag": "@example", + "name": "Query CSV files directly", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\nconst client = await createDuckDbClient({ path: \":memory:\" });\n\nconst result = await client.queryCsv<{ name: string; age: number }>(\n \"./data/users.csv\"\n);\n\nawait client.close();\n```" } - } - ], - "typeName": "SqlQueryResultFailure" + ] + }, + { + "tag": "@example", + "name": "Transaction with auto-commit/rollback", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createDuckDbClient({ path: \":memory:\" });\nawait client.transaction(async (tx: SqlTransaction) => {\n await tx.query(\"INSERT INTO users VALUES ($1, $2)\", [1, \"Alice\"]);\n await tx.query(\"INSERT INTO users VALUES ($1, $2)\", [2, \"Bob\"]);\n});\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createDuckDbClient } from \"@probitas-test/client-sql-duckdb\";\n\nawait using client = await createDuckDbClient({});\n\nconst result = await client.query(\"SELECT 1\");\n// Client automatically closed when scope exits\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 3056, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "DuckDB client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 3118, + "name": "DuckDbClientConfig", + "package": "@probitas-test/client-sql-duckdb" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3057, + "name": "DuckDbClient", + "package": "@probitas-test/client-sql-duckdb" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "typeParams": [ - { - "name": "T" + } + ] + }, + { + "id": 3128, + "name": "isConnectionError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 3129, + "name": "isConnectionError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if an error is a connection-level error.\nThese are errors that indicate the database cannot be accessed at all,\nnot errors that occur during query execution." + } + ] + }, + "parameters": [ + { + "id": 3130, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "superTypeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-sql-duckdb", + "packageVersion": "0.5.2" } diff --git a/data/api/client-sql-mysql.json b/data/api/client-sql-mysql.json index 04c2215..107cc63 100644 --- a/data/api/client-sql-mysql.json +++ b/data/api/client-sql-mysql.json @@ -1,5948 +1,7109 @@ { - "name": "client-sql-mysql", - "specifier": "@probitas/client-sql-mysql", - "version": "0.5.1", - "moduleDoc": "MySQL client for [Probitas](https://github.com/probitas-test/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-test/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\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createMySqlClient({ url: \"mysql://localhost:3306/testdb\" });\nawait client.transaction(async (tx: SqlTransaction) => {\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\" });\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\n\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [MySQL](https://www.mysql.com/)\n", - "exports": [ - { - "name": "MySqlClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/client.ts", - "line": 23, - "col": 0, - "byteIndex": 707 + "schemaVersion": "2.0", + "id": 3410, + "name": "@probitas-test/client-sql-mysql", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MySQL client for [Probitas](https://github.com/probitas-test/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 " }, - "declarationKind": "export", - "jsDoc": { - "doc": "MySQL client interface." + { + "kind": "code", + "text": "`AsyncDisposable`" }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-sql-mysql\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createMySqlClient } from \"@probitas-test/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```" + }, + { + "kind": "text", + "text": "\n\n## Transactions\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createMySqlClient({ url: \"mysql://localhost:3306/testdb\" });\nawait client.transaction(async (tx: SqlTransaction) => {\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\" });\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\n\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```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql) | Common SQL types and utilities |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-postgres`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-postgres) | PostgreSQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-sqlite`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-sqlite) | SQLite client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-duckdb`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [MySQL](https://www.mysql.com/)" + } + ] + }, + "children": [ + { + "id": 3549, + "name": "AccessDeniedError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when access is denied (wrong credentials)." } - ], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a SQL query.", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, + ] + }, + "children": [ + { + "id": 3550, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3551, + "name": "AccessDeniedError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" + "id": 3552, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3553, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/client.ts", - "line": 37, - "col": 2, - "byteIndex": 1189 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3537, + "name": "MySqlErrorOptions", + "package": "@probitas-test/client-sql-mysql" } } + ], + "type": { + "type": "reference", + "target": 3549, + "name": "AccessDeniedError", + "package": "@probitas-test/client-sql-mysql" }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } - } - ], - "typeName": "Promise" + "overwrites": { + "type": "reference", + "target": 3542, + "name": "MySqlError.constructor" } - }, - "typeParams": [ + } + ], + "overwrites": { + "type": "reference", + "target": 3541, + "name": "MySqlError.constructor" + } + }, + { + "id": 3556, + "name": "errno", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 3546, + "name": "MySqlError.errno" + } + }, + { + "id": 3557, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "reference", + "target": 3594, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 3547, + "name": "MySqlError.kind" + } + }, + { + "id": 3555, + "name": "mysqlKind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "access_denied" + }, + "defaultValue": "..." + }, + { + "id": 3554, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "AccessDeniedError" + }, + "defaultValue": "\"AccessDeniedError\"", + "overwrites": { + "type": "reference", + "target": 3545, + "name": "MySqlError.name" + } + }, + { + "id": 3558, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } ] }, - { - "name": "queryOne", - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, + "inheritedFrom": { + "type": "reference", + "target": 3548, + "name": "MySqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3540, + "name": "MySqlError", + "package": "@probitas-test/client-sql-mysql" + } + ] + }, + { + "id": 3559, + "name": "ConnectionRefusedError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when connection is refused." + } + ] + }, + "children": [ + { + "id": 3560, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3561, + "name": "ConnectionRefusedError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" + "id": 3562, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3563, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/client.ts", - "line": 50, - "col": 2, - "byteIndex": 1647 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3537, + "name": "MySqlErrorOptions", + "package": "@probitas-test/client-sql-mysql" } } + ], + "type": { + "type": "reference", + "target": 3559, + "name": "ConnectionRefusedError", + "package": "@probitas-test/client-sql-mysql" }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] - } - ], - "typeName": "Promise" + "overwrites": { + "type": "reference", + "target": 3542, + "name": "MySqlError.constructor" } - }, - "typeParams": [ + } + ], + "overwrites": { + "type": "reference", + "target": 3541, + "name": "MySqlError.constructor" + } + }, + { + "id": 3566, + "name": "errno", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 3546, + "name": "MySqlError.errno" + } + }, + { + "id": 3567, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "reference", + "target": 3594, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 3547, + "name": "MySqlError.kind" + } + }, + { + "id": 3565, + "name": "mysqlKind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection_refused" + }, + "defaultValue": "..." + }, + { + "id": 3564, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "ConnectionRefusedError" + }, + "defaultValue": "\"ConnectionRefusedError\"", + "overwrites": { + "type": "reference", + "target": 3545, + "name": "MySqlError.name" + } + }, + { + "id": 3568, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } ] }, - { - "name": "transaction", - "jsDoc": { - "doc": "Execute a function within a transaction.\nAutomatically commits on success or rolls back on error.", - "tags": [ + "inheritedFrom": { + "type": "reference", + "target": 3548, + "name": "MySqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3540, + "name": "MySqlError", + "package": "@probitas-test/client-sql-mysql" + } + ] + }, + { + "id": 3614, + "name": "ConstraintError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a constraint violation occurs." + } + ] + }, + "children": [ + { + "id": 3615, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3616, + "name": "ConstraintError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "fn", - "doc": "- Function to execute within transaction" + "id": 3617, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3618, + "name": "constraint", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3619, "name": "options", - "doc": "- Transaction options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/client.ts", - "line": 62, - "col": 2, - "byteIndex": 2004 - }, - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - "params": [ - { - "kind": "identifier", - "name": "tx", - "optional": false, - "tsType": { - "repr": "SqlTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransaction" - } - } - } - ], - "typeParams": [] + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3595, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } + ], + "type": { + "type": "reference", + "target": 3614, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransactionOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "T" - } - ] - }, - { - "name": "close", - "jsDoc": { - "doc": "Close the client and release all connections." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/client.ts", - "line": 70, - "col": 2, - "byteIndex": 2184 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + "overwrites": { + "type": "reference", + "target": 3599, + "name": "SqlError.constructor" } - }, - "typeParams": [] + } + ], + "overwrites": { + "type": "reference", + "target": 3598, + "name": "SqlError.constructor" } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "The client configuration." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/client.ts", - "line": 25, - "col": 2, - "byteIndex": 799 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MySqlClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlClientConfig" - } - }, - "typeParams": [] + }, + { + "id": 3622, + "name": "constraint", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "dialect", - "jsDoc": { - "doc": "The SQL dialect identifier." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/client.ts", - "line": 28, - "col": 2, - "byteIndex": 875 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "mysql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mysql" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "createMySqlClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/client.ts", - "line": 193, - "col": 0, - "byteIndex": 5719 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new MySQL client instance with connection pooling.\n\nThe client provides connection pooling, parameterized queries, transaction support,\nand automatic result type mapping.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- MySQL client configuration" - }, - { - "kind": "return", - "doc": "A promise resolving to a new MySQL client instance\n" + }, + { + "id": 3621, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "example", - "doc": "Using URL string\n```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\n\nconst client = await createMySqlClient({\n url: \"mysql://user:password@localhost:3306/testdb\",\n});\n\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT * FROM users WHERE id = ?\",\n [1],\n);\nif (result.ok) {\n console.log(result.rows[0]); // { id: 1, name: \"Alice\" }\n}\n\nawait client.close();\n```\n" + "type": { + "type": "literal", + "value": "constraint" }, - { - "kind": "example", - "doc": "Using connection config object\n```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\n\nconst client = await createMySqlClient({\n url: {\n host: \"localhost\",\n port: 3306,\n username: \"root\",\n password: \"password\",\n database: \"testdb\",\n },\n pool: { connectionLimit: 20 },\n});\nawait client.close();\n```\n" + "overwrites": { + "type": "reference", + "target": 3604, + "name": "SqlError.kind" + } + }, + { + "id": 3620, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "example", - "doc": "Transaction with auto-commit/rollback\n```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createMySqlClient({ url: \"mysql://localhost:3306/testdb\" });\nconst user = await client.transaction(async (tx: SqlTransaction) => {\n await tx.query(\"INSERT INTO users (name) VALUES (?)\", [\"Alice\"]);\n return await tx.queryOne(\"SELECT LAST_INSERT_ID() as id\");\n});\nawait client.close();\n```\n" + "type": { + "type": "literal", + "value": "ConstraintError" }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\n\nawait using client = await createMySqlClient({\n url: \"mysql://localhost:3306/testdb\",\n});\n\nconst result = await client.query(\"SELECT 1\");\n// Client automatically closed when scope exits\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "MySqlClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlClientConfig" - } - } + "defaultValue": "\"ConstraintError\"", + "overwrites": { + "type": "reference", + "target": 3603, + "name": "SqlError.name" } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 3623, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "repr": "MySqlClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlClient" - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - ], - "typeName": "Promise" + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3605, + "name": "SqlError.sqlState" } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3597, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "MySqlTransaction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 19, - "col": 0, - "byteIndex": 492 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MySQL-specific transaction interface.\nExtends SqlTransaction with MySQL-specific features." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransaction" - } + "id": 3624, + "name": "DeadlockError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a deadlock is detected." } - ], - "constructors": [], - "methods": [ - { - "name": "savepoint", - "jsDoc": { - "doc": "Create a savepoint.", - "tags": [ - { - "kind": "param", - "name": "name", - "doc": "- Savepoint name" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 24, - "col": 2, - "byteIndex": 624 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" + ] + }, + "children": [ + { + "id": 3625, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3626, + "name": "DeadlockError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3627, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "rollbackToSavepoint", - "jsDoc": { - "doc": "Rollback to a savepoint.", - "tags": [ + }, { - "kind": "param", - "name": "name", - "doc": "- Savepoint name" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 30, - "col": 2, - "byteIndex": 743 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 3628, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3595, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } } + ], + "type": { + "type": "reference", + "target": 3624, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 3599, + "name": "SqlError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + } + ], + "overwrites": { + "type": "reference", + "target": 3598, + "name": "SqlError.constructor" + } + }, + { + "id": 3630, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "deadlock" + }, + "overwrites": { + "type": "reference", + "target": 3604, + "name": "SqlError.kind" + } + }, + { + "id": 3629, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "DeadlockError" + }, + "defaultValue": "\"DeadlockError\"", + "overwrites": { + "type": "reference", + "target": 3603, + "name": "SqlError.name" + } + }, + { + "id": 3631, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] }, - { - "name": "releaseSavepoint", - "jsDoc": { - "doc": "Release a savepoint.", - "tags": [ + "inheritedFrom": { + "type": "reference", + "target": 3605, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3597, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3540, + "name": "MySqlError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base error class for MySQL-specific errors.\nExtends SqlError with MySQL-specific properties like errno." + } + ] + }, + "children": [ + { + "id": 3541, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3542, + "name": "MySqlError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "name", - "doc": "- Savepoint name" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 36, - "col": 2, - "byteIndex": 868 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 3543, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3544, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3537, + "name": "MySqlErrorOptions", + "package": "@probitas-test/client-sql-mysql" + } } + ], + "type": { + "type": "reference", + "target": 3540, + "name": "MySqlError", + "package": "@probitas-test/client-sql-mysql" + }, + "overwrites": { + "type": "reference", + "target": 3599, + "name": "SqlError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + } + ], + "overwrites": { + "type": "reference", + "target": 3598, + "name": "SqlError.constructor" + } + }, + { + "id": 3546, + "name": "errno", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 3547, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "reference", + "target": 3594, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 3604, + "name": "SqlError.kind" + } + }, + { + "id": 3545, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"MySqlError\"", + "overwrites": { + "type": "reference", + "target": 3603, + "name": "SqlError.name" + } + }, + { + "id": 3548, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3605, + "name": "SqlError.sqlState", + "package": "@probitas-test/client-sql" } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3597, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 3549, + "name": "AccessDeniedError" + }, + { + "type": "reference", + "target": 3559, + "name": "ConnectionRefusedError" + } + ] }, { + "id": 3465, "name": "MySqlTransactionImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 49, - "col": 0, - "byteIndex": 1304 + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MySQL-specific transaction interface.\nExtends SqlTransaction with MySQL-specific features." + } + ] }, - "declarationKind": "export", - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": "private", - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "connection", - "optional": false, - "tsType": { - "repr": "AnyPoolConnection", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AnyPoolConnection" + "children": [ + { + "id": 3487, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3488, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Commit the transaction." } - } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3462, + "name": "MySqlTransaction.commit" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 53, - "col": 2, - "byteIndex": 1435 } + ], + "implementationOf": { + "type": "reference", + "target": 3461, + "name": "MySqlTransaction.commit" } - ], - "properties": [], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Begin a new transaction." - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": true, - "name": "begin", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "connection", - "optional": false, - "tsType": { - "repr": "AnyPoolConnection", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AnyPoolConnection" - } + }, + { + "id": 3475, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3476, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query within the transaction." } - }, + ] + }, + "typeParameters": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransactionOptions" - } + "id": 3477, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MySqlTransactionImpl", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlTransactionImpl" - } - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 60, - "col": 2, - "byteIndex": 1572 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "query", - "kind": "method", - "functionDef": { - "params": [ + "parameters": [ { - "kind": "identifier", + "id": 3478, "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "kind": "identifier", + "id": 3479, "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } }, { - "kind": "identifier", + "id": 3480, "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3569, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3717, + "typeArguments": [ + { + "type": "reference", + "target": 3477, + "name": "T", + "package": "@probitas-test/client-sql-mysql", + "refersToTypeParameter": true } - } - ], - "typeName": "Promise" - } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3450, + "name": "MySqlTransaction.query" + } + } + ], + "implementationOf": { + "type": "reference", + "target": 3449, + "name": "MySqlTransaction.query" + } + }, + { + "id": 3481, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3482, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [ + "typeParameters": [ { + "id": 3483, "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 81, - "col": 2, - "byteIndex": 2327 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queryOne", - "kind": "method", - "functionDef": { - "params": [ + ], + "parameters": [ { - "kind": "identifier", + "id": 3484, "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "kind": "identifier", + "id": 3485, "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } }, { - "kind": "identifier", + "id": 3486, "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3569, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "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" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3483, + "name": "T", + "package": "@probitas-test/client-sql-mysql", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] } - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 145, - "col": 2, - "byteIndex": 4454 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "commit", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + ], + "name": "Promise", + "package": "typescript" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 162, - "col": 2, - "byteIndex": 4919 + "implementationOf": { + "type": "reference", + "target": 3456, + "name": "MySqlTransaction.queryOne" + } } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rollback", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + ], + "implementationOf": { + "type": "reference", + "target": 3455, + "name": "MySqlTransaction.queryOne" + } + }, + { + "id": 3497, + "name": "releaseSavepoint", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3498, + "name": "releaseSavepoint", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Release a savepoint." + } + ] }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 177, - "col": 2, - "byteIndex": 5262 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "savepoint", - "kind": "method", - "functionDef": { - "params": [ + "parameters": [ { - "kind": "identifier", + "id": 3499, "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Savepoint name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 192, - "col": 2, - "byteIndex": 5609 + "implementationOf": { + "type": "reference", + "target": 3447, + "name": "MySqlTransaction.releaseSavepoint" + } } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rollbackToSavepoint", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + ], + "implementationOf": { + "type": "reference", + "target": 3446, + "name": "MySqlTransaction.releaseSavepoint" + } + }, + { + "id": 3489, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3490, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback the transaction." + } + ] }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 205, - "col": 2, - "byteIndex": 6010 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3464, + "name": "MySqlTransaction.rollback" + } } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "releaseSavepoint", - "kind": "method", - "functionDef": { - "params": [ + ], + "implementationOf": { + "type": "reference", + "target": 3463, + "name": "MySqlTransaction.rollback" + } + }, + { + "id": 3494, + "name": "rollbackToSavepoint", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3495, + "name": "rollbackToSavepoint", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback to a savepoint." + } + ] + }, + "parameters": [ { - "kind": "identifier", + "id": 3496, "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Savepoint name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/transaction.ts", - "line": 220, - "col": 2, - "byteIndex": 6452 + "implementationOf": { + "type": "reference", + "target": 3444, + "name": "MySqlTransaction.rollbackToSavepoint" + } } + ], + "implementationOf": { + "type": "reference", + "target": 3443, + "name": "MySqlTransaction.rollbackToSavepoint" } - ], - "extends": null, - "implements": [ - { - "repr": "MySqlTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlTransaction" + }, + { + "id": 3491, + "name": "savepoint", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3492, + "name": "savepoint", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a savepoint." + } + ] + }, + "parameters": [ + { + "id": 3493, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Savepoint name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3441, + "name": "MySqlTransaction.savepoint" + } } + ], + "implementationOf": { + "type": "reference", + "target": 3440, + "name": "MySqlTransaction.savepoint" } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MySqlTlsConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 9, - "col": 0, - "byteIndex": 152 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "TLS/SSL configuration for MySQL connections." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "ca", - "jsDoc": { - "doc": "Root CA certificate (PEM format)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 11, - "col": 2, - "byteIndex": 231 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "cert", - "jsDoc": { - "doc": "Client certificate (PEM format)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 13, - "col": 2, - "byteIndex": 297 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "key", - "jsDoc": { - "doc": "Client private key (PEM format)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 15, - "col": 2, - "byteIndex": 365 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 3466, + "name": "begin", + "variant": "declaration", + "kind": 2048, + "flags": { + "isStatic": true }, - { - "name": "rejectUnauthorized", - "jsDoc": { - "doc": "Skip server certificate verification (use only for testing)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 17, - "col": 2, - "byteIndex": 460 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + "signatures": [ + { + "id": 3467, + "name": "begin", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Begin a new transaction." + } + ] + }, + "parameters": [ + { + "id": 3468, + "name": "connection", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 3469, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3575, + "name": "SqlTransactionOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3465, + "name": "MySqlTransactionImpl", + "package": "@probitas-test/client-sql-mysql" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + ], + "implementedTypes": [ + { + "type": "reference", + "target": 3439, + "name": "MySqlTransaction", + "package": "@probitas-test/client-sql-mysql" + } + ] }, { - "name": "MySqlPoolConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 23, - "col": 0, - "byteIndex": 544 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Connection pool configuration." + "id": 3606, + "name": "QuerySyntaxError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a SQL query has syntax errors." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "connectionLimit", - "jsDoc": { - "doc": "Maximum number of connections in the pool.", - "tags": [ - { - "kind": "unsupported", - "value": "@default 10" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 28, - "col": 2, - "byteIndex": 658 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "minConnections", - "jsDoc": { - "doc": "Minimum number of idle connections.", - "tags": [ + "children": [ + { + "id": 3607, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3608, + "name": "QuerySyntaxError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "unsupported", - "value": "@default 0" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 34, - "col": 2, - "byteIndex": 765 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "queueLimit", - "jsDoc": { - "doc": "Maximum number of connection requests the pool will queue.", - "tags": [ + "id": 3609, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "unsupported", - "value": "@default 0 (unlimited)" + "id": 3610, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3595, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 40, - "col": 2, - "byteIndex": 906 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 3606, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 3599, + "name": "SqlError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 3598, + "name": "SqlError.constructor" + } + }, + { + "id": 3612, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "waitForConnections", - "jsDoc": { - "doc": "Whether to wait for connections to become available.", - "tags": [ - { - "kind": "unsupported", - "value": "@default true" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 46, - "col": 2, - "byteIndex": 1028 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "query" }, - { - "name": "idleTimeout", - "jsDoc": { - "doc": "Time in milliseconds before connection is considered idle.", - "tags": [ - { - "kind": "unsupported", - "value": "@default 10000" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 52, - "col": 2, - "byteIndex": 1166 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": 3604, + "name": "SqlError.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MySqlConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 60, - "col": 0, - "byteIndex": 1309 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MySQL connection configuration.\n\nExtends CommonConnectionConfig with MySQL-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" - } + }, + { + "id": 3611, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "QuerySyntaxError" + }, + "defaultValue": "\"QuerySyntaxError\"", + "overwrites": { + "type": "reference", + "target": 3603, + "name": "SqlError.name" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "database", - "jsDoc": { - "doc": "Database name to connect to." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 64, - "col": 2, - "byteIndex": 1429 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 3613, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "tls", - "jsDoc": { - "doc": "TLS configuration." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 69, - "col": 2, - "byteIndex": 1496 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "MySqlTlsConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlTlsConfig" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] }, - { - "name": "charset", - "jsDoc": { - "doc": "Character set." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 74, - "col": 2, - "byteIndex": 1562 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 3605, + "name": "SqlError.sqlState" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3597, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "MySqlClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 80, - "col": 0, - "byteIndex": 1646 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration for creating a MySQL client." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "id": 3632, + "name": "SqlConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "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.5.1/types.ts", - "line": 87, - "col": 2, - "byteIndex": 1894 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ] + }, + "children": [ + { + "id": 3633, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3634, + "name": "SqlConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 3635, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "repr": "MySqlConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlConnectionConfig" + "id": 3636, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3595, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } - ] - }, - "typeParams": [] - }, - { - "name": "pool", - "jsDoc": { - "doc": "Connection pool configuration." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 90, - "col": 2, - "byteIndex": 1983 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "MySqlPoolConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlPoolConfig" + ], + "type": { + "type": "reference", + "target": 3632, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 3599, + "name": "SqlError.constructor" } - }, - "typeParams": [] + } + ], + "overwrites": { + "type": "reference", + "target": 3598, + "name": "SqlError.constructor" + } + }, + { + "id": 3638, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "timezone", - "jsDoc": { - "doc": "Timezone for the connection." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 93, - "col": 2, - "byteIndex": 2057 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "connection" }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.\nCan be overridden per-query via SqlQueryOptions.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/types.ts", - "line": 101, - "col": 2, - "byteIndex": 2313 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": 3604, + "name": "SqlError.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 3637, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqlConnectionError" + }, + "defaultValue": "\"SqlConnectionError\"", + "overwrites": { + "type": "reference", + "target": 3603, + "name": "SqlError.name" + } + }, + { + "id": 3639, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3605, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3597, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "MySqlErrorKind", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 13, - "col": 0, - "byteIndex": 205 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MySQL-specific error kinds." + "id": 3597, + "name": "SqlError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "access_denied", - "kind": "literal", - "literal": { - "kind": "string", - "string": "access_denied" - } - }, + "children": [ + { + "id": 3598, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "connection_refused", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection_refused" + "id": 3599, + "name": "SqlError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3600, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3601, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3594, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3602, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3595, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": 3597, + "name": "SqlError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } } - ] + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } }, - "typeParams": [] - } - }, - { - "name": "MySqlErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 18, - "col": 0, - "byteIndex": 322 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for MySqlError constructor." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } + { + "id": 3604, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 3594, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "errno", - "jsDoc": { - "doc": "MySQL error code (e.g., 1045, 1062)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 20, - "col": 2, - "byteIndex": 431 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + }, + { + "id": 3603, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MySqlError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 27, - "col": 0, - "byteIndex": 577 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for MySQL-specific errors.\nExtends SqlError with MySQL-specific properties like errno." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 3605, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MySqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlErrorOptions" - } - } + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 31, - "col": 2, - "byteIndex": 699 - } + ] } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 28, - "col": 2, - "byteIndex": 622 - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "errno", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 29, - "col": 2, - "byteIndex": 671 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 3540, + "name": "MySqlError" + }, + { + "type": "reference", + "target": 3606, + "name": "QuerySyntaxError" + }, + { + "type": "reference", + "target": 3614, + "name": "ConstraintError" + }, + { + "type": "reference", + "target": 3624, + "name": "DeadlockError" + }, + { + "type": "reference", + "target": 3632, + "name": "SqlConnectionError" + } + ] }, { - "name": "AccessDeniedError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 43, - "col": 0, - "byteIndex": 919 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when access is denied (wrong credentials)." + "id": 3414, + "name": "MySqlClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MySQL client interface." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 3415, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MySqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlErrorOptions" - } - } + "kind": "text", + "text": "The client configuration." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1071 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 44, - "col": 2, - "byteIndex": 973 - } + ] }, - { - "tsType": { - "repr": "access_denied", - "kind": "literal", - "literal": { - "kind": "string", - "string": "access_denied" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "mysqlKind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 45, - "col": 2, - "byteIndex": 1021 - } + "type": { + "type": "reference", + "target": 3522, + "name": "MySqlClientConfig", + "package": "@probitas-test/client-sql-mysql" } - ], - "indexSignatures": [], - "methods": [], - "extends": "MySqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "ConnectionRefusedError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 55, - "col": 0, - "byteIndex": 1219 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when connection is refused." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + }, + { + "id": 3416, + "name": "dialect", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MySqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MySqlErrorOptions" - } - } + "kind": "text", + "text": "The SQL dialect identifier." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 59, - "col": 2, - "byteIndex": 1386 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 56, - "col": 2, - "byteIndex": 1278 - } + ] }, - { - "tsType": { - "repr": "connection_refused", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection_refused" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "mysqlKind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 57, - "col": 2, - "byteIndex": 1331 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "MySqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "isConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 83, - "col": 0, - "byteIndex": 2150 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if an error is a connection-level error." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "returnType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "convertMySqlError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.5.1/errors.ts", - "line": 138, - "col": 0, - "byteIndex": 3353 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Convert a mysql2 error to the appropriate error class." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "returnType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + "type": { + "type": "literal", + "value": "mysql" } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "SqlQueryOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 7, - "col": 0, - "byteIndex": 165 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual SQL queries." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 13, - "col": 2, - "byteIndex": 443 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlIsolationLevel", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 19, - "col": 0, - "byteIndex": 519 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Transaction isolation level." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + { + "id": 3437, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "read_uncommitted", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_uncommitted" - } - }, - { - "repr": "read_committed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_committed" - } - }, - { - "repr": "repeatable_read", - "kind": "literal", - "literal": { - "kind": "string", - "string": "repeatable_read" - } - }, - { - "repr": "serializable", - "kind": "literal", - "literal": { - "kind": "string", - "string": "serializable" + "id": 3438, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the client and release all connections." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqlTransactionOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 28, - "col": 0, - "byteIndex": 685 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for starting a transaction." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "isolationLevel", - "jsDoc": { - "doc": "Isolation level for the transaction" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 30, - "col": 2, - "byteIndex": 773 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "SqlIsolationLevel", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlIsolationLevel" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlTransaction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 37, - "col": 0, - "byteIndex": 940 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a query within the transaction.", - "tags": [ + { + "id": 3417, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3418, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a SQL query." + } + ] + }, + "typeParameters": [ + { + "id": 3419, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ { - "kind": "param", + "id": 3420, "name": "sql", - "doc": "- SQL query string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3421, "name": "params", - "doc": "- Optional query parameters" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } }, { - "kind": "param", + "id": 3422, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 45, - "col": 2, - "byteIndex": 1279 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3569, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } + "type": "reference", + "target": 3717, + "typeArguments": [ + { + "type": "reference", + "target": 3419, + "name": "T", + "package": "@probitas-test/client-sql-mysql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 3423, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3424, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 3425, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] - }, - { - "name": "queryOne", - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.", - "tags": [ + ], + "parameters": [ { - "kind": "param", + "id": 3426, "name": "sql", - "doc": "- SQL query string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3427, "name": "params", - "doc": "- Optional query parameters" - }, - { - "kind": "param", - "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 58, - "col": 2, - "byteIndex": 1737 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + }, + { + "id": 3428, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3569, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "", - "kind": "union", - "union": [ + "type": "union", + "types": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 3425, + "name": "T", + "package": "@probitas-test/client-sql-mysql", + "refersToTypeParameter": true }, { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" + "type": "intrinsic", + "name": "undefined" } ] } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 3429, + "name": "transaction", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3430, + "name": "transaction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a function within a transaction.\nAutomatically commits on success or rolls back on error." + } + ] + }, + "typeParameters": [ + { + "id": 3431, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 3432, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "kind": "text", + "text": "Function to execute within transaction" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 3433, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 3434, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 3435, + "name": "tx", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3577, + "name": "SqlTransaction", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3431, + "name": "T", + "package": "@probitas-test/client-sql-mysql", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 3436, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "kind": "text", + "text": "Transaction options" } - ], - "typeName": "Record" + ] + }, + "type": { + "type": "reference", + "target": 3575, + "name": "SqlTransactionOptions", + "package": "@probitas-test/client-sql" } } - } - ] - }, - { - "name": "commit", - "jsDoc": { - "doc": "Commit the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 67, - "col": 2, - "byteIndex": 1917 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "type": "reference", + "target": 3431, + "name": "T", + "package": "@probitas-test/client-sql-mysql", + "refersToTypeParameter": true } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" }, - { - "name": "rollback", - "jsDoc": { - "doc": "Rollback the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 72, - "col": 2, - "byteIndex": 1988 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "SqlErrorKind", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 140 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL-specific error kinds." + "id": 3522, + "name": "MySqlClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Configuration for creating a MySQL client." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" - } - }, - { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" - } - }, - { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" - } - }, - { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" - } - }, - { - "repr": "unknown", - "kind": "literal", - "literal": { - "kind": "string", - "string": "unknown" + "children": [ + { + "id": 3524, + "name": "pool", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Connection pool configuration." } - } - ] + ] + }, + "type": { + "type": "reference", + "target": 3508, + "name": "MySqlPoolConfig", + "package": "@probitas-test/client-sql-mysql" + } }, - "typeParams": [] - } - }, - { - "name": "SqlErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 20, - "col": 0, - "byteIndex": 289 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SqlError constructor." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } + { + "id": 3529, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "sqlState", - "jsDoc": { - "doc": "SQL State code (e.g., \"23505\" for unique violation)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 22, - "col": 2, - "byteIndex": 408 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 3528, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 29, - "col": 0, - "byteIndex": 545 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 3526, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.\nCan be overridden per-query via SqlQueryOptions." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - } - }, + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 3527, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "Timeout in milliseconds." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 34, - "col": 2, - "byteIndex": 715 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 30, - "col": 2, - "byteIndex": 591 - } + }, + { + "id": 3525, + "name": "timezone", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timezone for the connection." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 31, - "col": 2, - "byteIndex": 638 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sqlState", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 32, - "col": 2, - "byteIndex": 678 - } + "type": { + "type": "intrinsic", + "name": "string" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "QuerySyntaxError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 48, - "col": 0, - "byteIndex": 981 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a SQL query has syntax errors." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 3523, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Connection URL or configuration.\n\nCan be a connection URL string (e.g., \"mysql://user:pass@host:port/database\")\nor a detailed MySqlConnectionConfig object." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "type": "reference", + "target": 3514, + "name": "MySqlConnectionConfig", + "package": "@probitas-test/client-sql-mysql" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 52, - "col": 2, - "byteIndex": 1125 - } + ] } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 49, - "col": 2, - "byteIndex": 1032 - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" }, - { - "tsType": { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 50, - "col": 2, - "byteIndex": 1079 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "ConstraintError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 60, - "col": 0, - "byteIndex": 1288 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a constraint violation occurs." + "id": 3514, + "name": "MySqlConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MySQL connection configuration.\n\nExtends CommonConnectionConfig with MySQL-specific options." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "constraint", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 3517, + "name": "charset", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "Character set." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 65, - "col": 2, - "byteIndex": 1466 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 61, - "col": 2, - "byteIndex": 1338 - } + }, + { + "id": 3515, + "name": "database", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Database name to connect to." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 62, - "col": 2, - "byteIndex": 1384 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "constraint", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 63, - "col": 2, - "byteIndex": 1434 - } + "type": { + "type": "intrinsic", + "name": "string" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "DeadlockError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 74, - "col": 0, - "byteIndex": 1681 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a deadlock is detected." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 3518, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Hostname or IP address." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" } - } + ] } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 78, - "col": 2, - "byteIndex": 1822 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 75, - "col": 2, - "byteIndex": 1729 - } + }, + { + "id": 3521, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1773 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqlConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 94, - "col": 0, - "byteIndex": 2195 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 3519, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Port number. Each service has its own default." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 3516, + "name": "tls", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "TLS configuration." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 98, - "col": 2, - "byteIndex": 2348 - } + ] + }, + "type": { + "type": "reference", + "target": 3503, + "name": "MySqlTlsConfig", + "package": "@probitas-test/client-sql-mysql" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 95, - "col": 2, - "byteIndex": 2248 - } + }, + { + "id": 3520, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 96, - "col": 2, - "byteIndex": 2297 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] }, { - "name": "SqlOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 107, - "col": 0, - "byteIndex": 2597 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." + "id": 3537, + "name": "MySqlErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for MySqlError constructor." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "QuerySyntaxError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QuerySyntaxError" - } - }, - { - "repr": "ConstraintError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConstraintError" - } - }, - { - "repr": "DeadlockError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DeadlockError" - } - }, - { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + "children": [ + { + "id": 3538, + "name": "errno", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MySQL error code (e.g., 1045, 1062)." } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, - "typeParams": [] - } + { + "id": 3539, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL State code (e.g., \"23505\" for unique violation)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 3596, + "name": "SqlErrorOptions.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3595, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 117, - "col": 0, - "byteIndex": 2845 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." + "id": 3508, + "name": "MySqlPoolConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Connection pool configuration." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlConnectionError" - } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + "children": [ + { + "id": 3509, + "name": "connectionLimit", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum number of connections in the pool." } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n10\n```" + } + ] } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, - "typeParams": [] - } - }, - { - "name": "SqlQueryResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 44, - "col": 0, - "byteIndex": 1310 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + { + "id": 3513, + "name": "idleTimeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Time in milliseconds before connection is considered idle." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n10000\n```" } - } - ], - "typeName": "SqlQueryResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 46, - "col": 2, - "byteIndex": 1429 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "jsDoc": { - "doc": "Query succeeded." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 49, - "col": 2, - "byteIndex": 1484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 3510, + "name": "minConnections", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Minimum number of idle connections." } - }, - "typeParams": [] + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n0\n```" + } + ] + } + ] }, - { - "name": "error", - "jsDoc": { - "doc": "No error for successful queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 52, - "col": 2, - "byteIndex": 1548 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 3511, + "name": "queueLimit", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "rows", - "jsDoc": { - "doc": "Query result rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 55, - "col": 2, - "byteIndex": 1601 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum number of connection requests the pool will queue." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n0 (unlimited)\n```" } - } + ] } - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 58, - "col": 2, - "byteIndex": 1667 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ] }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 61, - "col": 2, - "byteIndex": 1748 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 3512, + "name": "waitForConnections", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 64, - "col": 2, - "byteIndex": 1843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to wait for connections to become available." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\ntrue\n```" } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ] - } + } + ] }, { - "name": "SqlQueryResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 73, - "col": 0, - "byteIndex": 2182 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultBase" - } + "id": 3503, + "name": "MySqlTlsConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "TLS/SSL configuration for MySQL connections." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 75, - "col": 2, - "byteIndex": 2299 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 3504, + "name": "ca", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 78, - "col": 2, - "byteIndex": 2351 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "Root CA certificate (PEM format)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the SQL error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 81, - "col": 2, - "byteIndex": 2415 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3505, + "name": "cert", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "rows", - "jsDoc": { - "doc": "Empty rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 84, - "col": 2, - "byteIndex": 2484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client certificate (PEM format)." } - }, - "typeParams": [] + ] }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Zero affected rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 87, - "col": 2, - "byteIndex": 2568 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3506, + "name": "key", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client private key (PEM format)." } - }, - "typeParams": [] + ] }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 90, - "col": 2, - "byteIndex": 2638 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3507, + "name": "rejectUnauthorized", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 93, - "col": 2, - "byteIndex": 2711 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Skip server certificate verification (use only for testing)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + } + ] + }, + { + "id": 3439, + "name": "MySqlTransaction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MySQL-specific transaction interface.\nExtends SqlTransaction with MySQL-specific features." + } + ] + }, + "children": [ + { + "id": 3461, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 3462, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Commit the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 3591, + "name": "SqlTransaction.commit" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": 3590, + "name": "SqlTransaction.commit" + } + }, + { + "id": 3449, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 3450, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query within the transaction." + } + ] + }, + "typeParameters": [ + { + "id": 3451, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 3452, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3453, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 3454, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3569, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3717, + "typeArguments": [ + { + "type": "reference", + "target": 3451, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + ], + "name": "Promise", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 3579, + "name": "SqlTransaction.query" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": 3578, + "name": "SqlTransaction.query" + } + }, + { + "id": 3455, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 3456, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 3457, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 3458, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3459, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 3460, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3569, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3457, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 3585, + "name": "SqlTransaction.queryOne" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": 3584, + "name": "SqlTransaction.queryOne" + } + }, + { + "id": 3446, + "name": "releaseSavepoint", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3447, + "name": "releaseSavepoint", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Release a savepoint." + } + ] + }, + "parameters": [ + { + "id": 3448, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Savepoint name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3463, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 3464, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 3593, + "name": "SqlTransaction.rollback" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": 3592, + "name": "SqlTransaction.rollback" + } + }, + { + "id": 3443, + "name": "rollbackToSavepoint", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3444, + "name": "rollbackToSavepoint", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback to a savepoint." + } + ] + }, + "parameters": [ + { + "id": 3445, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Savepoint name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3440, + "name": "savepoint", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3441, + "name": "savepoint", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a savepoint." + } + ] + }, + "parameters": [ + { + "id": 3442, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Savepoint name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3577, + "name": "SqlTransaction", + "package": "@probitas-test/client-sql" + } + ], + "implementedBy": [ + { + "type": "reference", + "target": 3465, + "name": "MySqlTransactionImpl" + } + ] + }, + { + "id": 3595, + "name": "SqlErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for SqlError constructor." + } + ] + }, + "children": [ + { + "id": 3596, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL State code (e.g., \"23505\" for unique violation)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 3537, + "name": "MySqlErrorOptions" + } + ] + }, + { + "id": 3569, + "name": "SqlQueryOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for individual SQL queries." + } + ] + }, + "children": [ + { + "id": 3573, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 3572, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 3570, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 3571, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 3667, + "name": "SqlQueryResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." + } + ] + }, + "children": [ + { + "id": 3677, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" + } + }, + { + "id": 3671, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the SQL error." + } + ] + }, + "type": { + "type": "reference", + "target": 3597, + "name": "SqlError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3676, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." + } + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" + } + }, + { + "id": 3674, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No lastInsertId for failed queries." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3670, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3669, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the query." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3673, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Zero affected rows for failed queries." + } + ] + }, + "type": { + "type": "literal", + "value": 0 + } + }, + { + "id": 3672, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Empty rows for failed queries." + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + } + } + }, + { + "id": 3675, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No warnings for failed queries." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3685, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 3686, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 3687, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 3688, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3689, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3690, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3691, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3668, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3662, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3662, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3678, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 3679, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 3680, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 3681, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3682, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 3683, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 3684, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3668, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3655, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3655, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } + } + ], + "typeParameters": [ + { + "id": 3668, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3668, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3692, + "name": "SqlQueryResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." + } + ] + }, + "children": [ + { + "id": 3702, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" + } + }, + { + "id": 3696, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the failure." + } + ] + }, + "type": { + "type": "reference", + "target": 3641, + "name": "SqlFailureError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3701, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." + } + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" + } + }, + { + "id": 3699, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No lastInsertId (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3695, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3694, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server did not process the query." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3698, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No row count (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3697, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No rows (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3700, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No warnings (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 3710, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 3711, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 3712, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 3713, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3714, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3715, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3716, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3693, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3662, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3662, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - ] - } - }, - { - "name": "SqlQueryResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 103, - "col": 0, - "byteIndex": 3071 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 3703, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 3704, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 3705, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 3706, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3707, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 3708, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 3709, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3693, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3655, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } } } ], - "typeName": "SqlQueryResultBase" + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3655, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server did not process the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 105, - "col": 2, - "byteIndex": 3196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ], + "typeParameters": [ + { + "id": 3693, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3693, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3642, + "name": "SqlQueryResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." + } + ] + }, + "children": [ + { + "id": 3652, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 108, - "col": 2, - "byteIndex": 3249 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 3677, + "name": "SqlQueryResultBase.duration", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3646, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No error for successful queries." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the failure." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 111, - "col": 2, - "byteIndex": 3311 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3651, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." } - }, - "typeParams": [] + ] }, - { - "name": "rows", - "jsDoc": { - "doc": "No rows (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 114, - "col": 2, - "byteIndex": 3393 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sql" }, - { - "name": "rowCount", - "jsDoc": { - "doc": "No row count (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 117, - "col": 2, - "byteIndex": 3468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 3676, + "name": "SqlQueryResultBase.kind", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3649, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 120, - "col": 2, - "byteIndex": 3550 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Last inserted ID (for INSERT statements)." + } + ] }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 123, - "col": 2, - "byteIndex": 3632 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "bigint" + }, + { + "type": "literal", + "value": null + } + ] } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 3645, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query succeeded." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" } - ] - } - }, - { - "name": "SqlQueryResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 164, - "col": 0, - "byteIndex": 5113 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result union type representing all possible result states.\n\n- **Success**: `processed: true, ok: true, error: null`\n- **Error**: `processed: true, ok: false, error: SqlError`\n- **Failure**: `processed: false, ok: false, error: SqlConnectionError`\n", - "tags": [ - { - "kind": "example", - "doc": "Type narrowing by ok\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```\n" + }, + { + "id": 3644, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "example", - "doc": "Type narrowing by processed\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the query." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" } - ] - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccess" + }, + { + "id": 3648, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of affected rows." } - }, - { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultError" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 3647, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query result rows." } - }, - { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultFailure" + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3643, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true } } - ] - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } } - ] - } - }, - { - "name": "SqlQueryResultSuccessParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 173, - "col": 0, - "byteIndex": 5415 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a SqlQueryResultSuccess." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "rows", - "jsDoc": { - "doc": "The result rows" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 175, - "col": 2, - "byteIndex": 5498 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { + }, + { + "id": 3650, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Warning messages from the database." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } } + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows (for INSERT/UPDATE/DELETE)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 178, - "col": 2, - "byteIndex": 5590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "duration", - "jsDoc": { - "doc": "Query execution duration in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 181, - "col": 2, - "byteIndex": 5670 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ] + } + }, + { + "id": 3660, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 184, - "col": 2, - "byteIndex": 5750 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "signatures": [ + { + "id": 3661, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, + "id": 3662, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 3663, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3664, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3665, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3666, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3643, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3662, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } } - ] - }, - "typeParams": [] + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3662, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3653, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 187, - "col": 2, - "byteIndex": 5838 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "signatures": [ + { + "id": 3654, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 3655, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 3656, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 3657, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 3658, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 3659, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3643, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 3655, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } } } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3655, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ] - } + } + ], + "typeParameters": [ + { + "id": 3643, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3643, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlQueryResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 194, - "col": 0, - "byteIndex": 5945 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultSuccess.", - "tags": [ - { - "kind": "internal" + "id": 3719, + "name": "SqlQueryResultSuccessParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating a SqlQueryResultSuccess." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 3723, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "SqlQueryResultSuccessParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccessParams" - } - } + "kind": "text", + "text": "Query execution duration in milliseconds" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 205, - "col": 2, - "byteIndex": 6343 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" + }, + { + "id": 3724, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Last inserted ID (for INSERT statements)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 195, - "col": 2, - "byteIndex": 6027 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "bigint" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 196, - "col": 2, - "byteIndex": 6061 - } + ] + } + }, + { + "id": 3722, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of affected rows (for INSERT/UPDATE/DELETE)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 197, - "col": 2, - "byteIndex": 6099 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 198, - "col": 2, - "byteIndex": 6130 - } + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 3721, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "The result rows" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 199, - "col": 2, - "byteIndex": 6155 - } + ] }, - { - "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.5.1/result.ts", - "line": 200, - "col": 2, - "byteIndex": 6186 + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3720, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccessParams.T", + "refersToTypeParameter": true + } } + } + }, + { + "id": 3725, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "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.5.1/result.ts", - "line": 201, - "col": 2, - "byteIndex": 6215 - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Warning messages from the database" + } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ], + "typeParameters": [ + { + "id": 3720, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 3577, + "name": "SqlTransaction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." + } + ] + }, + "children": [ + { + "id": 3590, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3591, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Commit the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3578, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3579, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query within the transaction." + } + ] + }, + "typeParameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 3580, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 202, - "col": 2, - "byteIndex": 6244 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "parameters": [ { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "id": 3581, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 203, - "col": 2, - "byteIndex": 6293 - } - } - ], - "indexSignatures": [], - "methods": [ - { - "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": [] + "id": 3582, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } + }, + { + "id": 3583, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3569, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } } ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3717, + "typeArguments": [ + { + "type": "reference", + "target": 3451, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" } - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 213, - "col": 2, - "byteIndex": 6605 + ], + "name": "Promise", + "package": "typescript" + } } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "as", - "kind": "method", - "functionDef": { - "params": [ + ] + }, + { + "id": 3584, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3585, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ { - "kind": "identifier", - "name": "ctor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } + "id": 3586, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" } } ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + "parameters": [ + { + "id": 3587, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + }, { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 221, - "col": 2, - "byteIndex": 6769 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 3588, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 3589, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3569, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } ], - "typeName": "SqlQueryResultSuccess" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3457, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } + ] + }, + { + "id": 3592, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3593, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 3439, + "name": "MySqlTransaction" + } + ] }, { - "name": "SqlQueryResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 234, - "col": 0, - "byteIndex": 6999 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultError.", - "tags": [ - { - "kind": "internal" + "id": 3575, + "name": "SqlTransactionOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for starting a transaction." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - } - }, + "children": [ + { + "id": 3576, + "name": "isolationLevel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Isolation level for the transaction" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 245, - "col": 2, - "byteIndex": 7373 - } + ] + }, + "type": { + "type": "reference", + "target": 3574, + "name": "SqlIsolationLevel", + "package": "@probitas-test/client-sql" } - ], - "properties": [ + } + ] + }, + { + "id": 3536, + "name": "MySqlErrorKind", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MySQL-specific error kinds." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 235, - "col": 2, - "byteIndex": 7077 - } + "type": "literal", + "value": "access_denied" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 236, - "col": 2, - "byteIndex": 7111 - } - }, + "type": "literal", + "value": "connection_refused" + } + ] + } + }, + { + "id": 3594, + "name": "SqlErrorKind", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL-specific error kinds." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 7149 - } + "type": "literal", + "value": "query" }, { - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 238, - "col": 2, - "byteIndex": 7181 - } + "type": "literal", + "value": "constraint" }, { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 239, - "col": 2, - "byteIndex": 7209 - } + "type": "literal", + "value": "deadlock" }, { - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 240, - "col": 2, - "byteIndex": 7249 - } + "type": "literal", + "value": "connection" }, { - "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.5.1/result.ts", - "line": 241, - "col": 2, - "byteIndex": 7283 - } + "type": "literal", + "value": "unknown" + } + ] + } + }, + { + "id": 3641, + "name": "SqlFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3632, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 242, - "col": 2, - "byteIndex": 7312 - } + "name": "AbortError", + "package": "@probitas-test/client" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 243, - "col": 2, - "byteIndex": 7344 - } + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "indexSignatures": [], - "methods": [ + ] + } + }, + { + "id": 3574, + "name": "SqlIsolationLevel", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Transaction isolation level." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "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.5.1/result.ts", - "line": 250, - "col": 2, - "byteIndex": 7483 - } + "type": "literal", + "value": "read_uncommitted" }, { - "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.5.1/result.ts", - "line": 254, - "col": 2, - "byteIndex": 7543 - } - } - ], - "extends": null, - "implements": [ + "type": "literal", + "value": "read_committed" + }, { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultError" - } - } - ], - "typeParams": [ + "type": "literal", + "value": "repeatable_read" + }, { - "name": "T" + "type": "literal", + "value": "serializable" } - ], - "superTypeParams": [] + ] } }, { - "name": "SqlQueryResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 263, - "col": 0, - "byteIndex": 7669 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultFailure.", - "tags": [ - { - "kind": "internal" + "id": 3640, + "name": "SqlOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3606, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" + }, { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 274, - "col": 2, - "byteIndex": 8033 - } - } - ], - "properties": [ + "type": "reference", + "target": 3614, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" + }, { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 264, - "col": 2, - "byteIndex": 7751 - } + "type": "reference", + "target": 3624, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 265, - "col": 2, - "byteIndex": 7785 - } + "type": "reference", + "target": 3597, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 3717, + "name": "SqlQueryResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result union type representing all possible result states.\n\n- **Success**: " }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 266, - "col": 2, - "byteIndex": 7824 - } + "kind": "code", + "text": "`processed: true, ok: true, error: null`" }, { - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 267, - "col": 2, - "byteIndex": 7856 - } + "kind": "text", + "text": "\n- **Error**: " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 268, - "col": 2, - "byteIndex": 7891 - } + "kind": "code", + "text": "`processed: true, ok: false, error: SqlError`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 269, - "col": 2, - "byteIndex": 7915 - } + "kind": "text", + "text": "\n- **Failure**: " }, { - "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.5.1/result.ts", - "line": 270, - "col": 2, - "byteIndex": 7943 - } + "kind": "code", + "text": "`processed: false, ok: false, error: SqlConnectionError`" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Type narrowing by ok", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```" + } + ] }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 271, - "col": 2, - "byteIndex": 7972 - } + "tag": "@example", + "name": "Type narrowing by processed", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + } + ] + } + ] + }, + "typeParameters": [ + { + "id": 3718, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3642, + "typeArguments": [ + { + "type": "reference", + "target": 3718, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultSuccess", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 272, - "col": 2, - "byteIndex": 8004 + "type": "reference", + "target": 3667, + "typeArguments": [ + { + "type": "reference", + "target": 3718, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultError", + "package": "@probitas-test/client-sql" + }, + { + "type": "reference", + "target": 3692, + "typeArguments": [ + { + "type": "reference", + "target": 3718, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultFailure", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 3533, + "name": "convertMySqlError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 3534, + "name": "convertMySqlError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert a mysql2 error to the appropriate error class." + } + ] + }, + "parameters": [ + { + "id": 3535, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "reference", + "target": 3597, + "name": "SqlError", + "package": "@probitas-test/client-sql" } - ], - "indexSignatures": [], - "methods": [ - { - "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": [] - } + } + ] + }, + { + "id": 3411, + "name": "createMySqlClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 3412, + "name": "createMySqlClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new MySQL client instance with connection pooling.\n\nThe client provides connection pooling, parameterized queries, transaction support,\nand automatic result type mapping." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new MySQL client instance" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + }, + { + "tag": "@example", + "name": "Using URL string", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\n\nconst client = await createMySqlClient({\n url: \"mysql://user:password@localhost:3306/testdb\",\n});\n\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT * FROM users WHERE id = ?\",\n [1],\n);\nif (result.ok) {\n console.log(result.rows[0]); // { id: 1, name: \"Alice\" }\n}\n\nawait client.close();\n```" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 279, - "col": 2, - "byteIndex": 8150 - } - }, - { - "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": [] - } + { + "tag": "@example", + "name": "Using connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\n\nconst client = await createMySqlClient({\n url: {\n host: \"localhost\",\n port: 3306,\n username: \"root\",\n password: \"password\",\n database: \"testdb\",\n },\n pool: { connectionLimit: 20 },\n});\nawait client.close();\n```" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + }, + { + "tag": "@example", + "name": "Transaction with auto-commit/rollback", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createMySqlClient({ url: \"mysql://localhost:3306/testdb\" });\nconst user = await client.transaction(async (tx: SqlTransaction) => {\n await tx.query(\"INSERT INTO users (name) VALUES (?)\", [\"Alice\"]);\n return await tx.queryOne(\"SELECT LAST_INSERT_ID() as id\");\n});\nawait client.close();\n```" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 283, - "col": 2, - "byteIndex": 8210 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMySqlClient } from \"@probitas-test/client-sql-mysql\";\n\nawait using client = await createMySqlClient({\n url: \"mysql://localhost:3306/testdb\",\n});\n\nconst result = await client.query(\"SELECT 1\");\n// Client automatically closed when scope exits\n```" } - } - ], - "typeName": "SqlQueryResultFailure" + ] + } + ] + }, + "parameters": [ + { + "id": 3413, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MySQL client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 3522, + "name": "MySqlClientConfig", + "package": "@probitas-test/client-sql-mysql" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3414, + "name": "MySqlClient", + "package": "@probitas-test/client-sql-mysql" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "typeParams": [ - { - "name": "T" + } + ] + }, + { + "id": 3530, + "name": "isConnectionError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 3531, + "name": "isConnectionError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if an error is a connection-level error." + } + ] + }, + "parameters": [ + { + "id": 3532, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "superTypeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-sql-mysql", + "packageVersion": "0.5.2" } diff --git a/data/api/client-sql-postgres.json b/data/api/client-sql-postgres.json index bbe9dbf..54fb5fd 100644 --- a/data/api/client-sql-postgres.json +++ b/data/api/client-sql-postgres.json @@ -1,5591 +1,6002 @@ { - "name": "client-sql-postgres", - "specifier": "@probitas/client-sql-postgres", - "version": "0.5.1", - "moduleDoc": "PostgreSQL client for [Probitas](https://github.com/probitas-test/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-test/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\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createPostgresClient({\n url: \"postgres://localhost:5432/testdb\",\n});\n\nawait client.transaction(async (tx: SqlTransaction) => {\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\nawait client.close();\n```\n\n## LISTEN/NOTIFY\n\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nconst client = await createPostgresClient({\n url: \"postgres://localhost:5432/testdb\",\n});\n\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\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [PostgreSQL](https://www.postgresql.org/)\n", - "exports": [ - { - "name": "PostgresClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 28, - "col": 0, - "byteIndex": 764 + "schemaVersion": "2.0", + "id": 3815, + "name": "@probitas-test/client-sql-postgres", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "PostgreSQL client for [Probitas](https://github.com/probitas-test/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 " }, - "declarationKind": "export", - "jsDoc": { - "doc": "PostgreSQL client interface." + { + "kind": "code", + "text": "`AsyncDisposable`" }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-sql-postgres\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/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```" + }, + { + "kind": "text", + "text": "\n\n## Transactions\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createPostgresClient({\n url: \"postgres://localhost:5432/testdb\",\n});\n\nawait client.transaction(async (tx: SqlTransaction) => {\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\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## LISTEN/NOTIFY\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nconst client = await createPostgresClient({\n url: \"postgres://localhost:5432/testdb\",\n});\n\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\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\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```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql) | Common SQL types and utilities |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-mysql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-mysql) | MySQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-sqlite`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-sqlite) | SQLite client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-duckdb`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [PostgreSQL](https://www.postgresql.org/)" + } + ] + }, + "children": [ + { + "id": 3966, + "name": "ConstraintError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a constraint violation occurs." } - ], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a SQL query.\n", - "tags": [ + ] + }, + "children": [ + { + "id": 3967, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3968, + "name": "ConstraintError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" + "id": 3969, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" + "id": 3970, + "name": "constraint", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3971, "name": "options", - "doc": "- Optional query options" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3947, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 43, - "col": 2, - "byteIndex": 1254 - }, - "params": [ + ], + "type": { + "type": "reference", + "target": 3966, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 3951, + "name": "SqlError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 3950, + "name": "SqlError.constructor" + } + }, + { + "id": 3974, + "name": "constraint", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3973, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "constraint" + }, + "overwrites": { + "type": "reference", + "target": 3956, + "name": "SqlError.kind" + } + }, + { + "id": 3972, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "ConstraintError" + }, + "defaultValue": "\"ConstraintError\"", + "overwrites": { + "type": "reference", + "target": 3955, + "name": "SqlError.name" + } + }, + { + "id": 3975, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3957, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3949, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3976, + "name": "DeadlockError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a deadlock is detected." + } + ] + }, + "children": [ + { + "id": 3977, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3978, + "name": "DeadlockError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3979, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3980, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3947, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } + ], + "type": { + "type": "reference", + "target": 3976, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 3951, + "name": "SqlError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 3950, + "name": "SqlError.constructor" + } + }, + { + "id": 3982, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "deadlock" + }, + "overwrites": { + "type": "reference", + "target": 3956, + "name": "SqlError.kind" + } + }, + { + "id": 3981, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "DeadlockError" + }, + "defaultValue": "\"DeadlockError\"", + "overwrites": { + "type": "reference", + "target": 3955, + "name": "SqlError.name" + } + }, + { + "id": 3983, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3957, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3949, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3858, + "name": "PostgresTransaction", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "PostgreSQL transaction implementation.\n\nWraps a postgres.js reserved connection to provide transaction semantics." + } + ] + }, + "children": [ + { + "id": 3859, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3860, + "name": "PostgresTransaction", + "variant": "signature", + "kind": 16384, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates a new PostgresTransaction." + } + ] + }, + "parameters": [ + { + "id": 3861, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Reserved SQL connection from postgres.js" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "postgres", + "packagePath": "types/index.d.ts", + "qualifiedName": "postgres.ReservedSql" + }, + "name": "ReservedSql", + "package": "postgres", + "qualifiedName": "postgres.ReservedSql" } } + ], + "type": { + "type": "reference", + "target": 3858, + "name": "PostgresTransaction", + "package": "@probitas-test/client-sql-postgres" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 3879, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3880, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } + "kind": "text", + "text": "Commit the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3943, + "name": "SqlTransaction.commit" } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ], + "implementationOf": { + "type": "reference", + "target": 3942, + "name": "SqlTransaction.commit" + } + }, + { + "id": 3867, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3868, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query within the transaction." + } + ] + }, + "typeParameters": [ + { + "id": 3869, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] - }, - { - "name": "queryOne", - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.\n", - "tags": [ + ], + "parameters": [ { - "kind": "param", + "id": 3870, "name": "sql", - "doc": "- SQL query string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3871, "name": "params", - "doc": "- Optional query parameters" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } }, { - "kind": "param", + "id": 3872, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 57, - "col": 2, - "byteIndex": 1717 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3921, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, + "type": "reference", + "target": 4069, + "typeArguments": [ { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" + "type": "reference", + "target": 3869, + "name": "T", + "package": "@probitas-test/client-sql-postgres", + "refersToTypeParameter": true } - ] + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3931, + "name": "SqlTransaction.query" } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ], + "implementationOf": { + "type": "reference", + "target": 3930, + "name": "SqlTransaction.query" + } + }, + { + "id": 3873, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3874, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 3875, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] - }, - { - "name": "transaction", - "jsDoc": { - "doc": "Execute a function within a transaction.\n\nThe transaction is automatically committed if the function completes successfully,\nor rolled back if the function throws an error.\n", - "tags": [ + ], + "parameters": [ { - "kind": "param", - "name": "fn", - "doc": "- Function to execute within the transaction" + "id": 3876, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "options", - "doc": "- Transaction options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 72, - "col": 2, - "byteIndex": 2167 - }, - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - "params": [ + "id": 3877, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "tx", - "optional": false, - "tsType": { - "repr": "SqlTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransaction" - } - } + "kind": "text", + "text": "Optional query parameters" } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransactionOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } - ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "T" - } - ] - }, - { - "name": "copyFrom", - "jsDoc": { - "doc": "Copy data from an iterable into a table using PostgreSQL COPY protocol.\n", - "tags": [ - { - "kind": "param", - "name": "table", - "doc": "- Target table name" - }, - { - "kind": "param", - "name": "data", - "doc": "- Async iterable of row arrays" }, { - "kind": "return", - "doc": "Number of rows copied" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 84, - "col": 2, - "byteIndex": 2500 - }, - "params": [ - { - "kind": "identifier", - "name": "table", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "data", - "optional": false, - "tsType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 3878, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Optional query options" } - ], - "typeName": "AsyncIterable" + ] + }, + "type": { + "type": "reference", + "target": 3921, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "copyTo", - "jsDoc": { - "doc": "Copy data from a query result using PostgreSQL COPY protocol.\n", - "tags": [ - { - "kind": "param", - "name": "query", - "doc": "- SQL query to copy from" - }, - { - "kind": "return", - "doc": "Async iterable of row arrays" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 92, - "col": 2, - "byteIndex": 2747 - }, - "params": [ - { - "kind": "identifier", - "name": "query", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "union", + "types": [ + { + "type": "reference", + "target": 3875, + "name": "T", + "package": "@probitas-test/client-sql-postgres", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] } ], - "typeName": "AsyncIterable" + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3937, + "name": "SqlTransaction.queryOne" } - }, - "typeParams": [] - }, - { - "name": "listen", - "jsDoc": { - "doc": "Listen for notifications on a channel.\n", - "tags": [ - { - "kind": "param", - "name": "channel", - "doc": "- Channel name to listen on" + } + ], + "implementationOf": { + "type": "reference", + "target": 3936, + "name": "SqlTransaction.queryOne" + } + }, + { + "id": 3881, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3882, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, - { - "kind": "return", - "doc": "Async iterable of notifications" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 100, - "col": 2, - "byteIndex": 2954 - }, - "params": [ - { - "kind": "identifier", - "name": "channel", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "typeArguments": [ { - "repr": "PostgresNotification", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PostgresNotification" - } + "type": "intrinsic", + "name": "void" } ], - "typeName": "AsyncIterable" + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 3945, + "name": "SqlTransaction.rollback" } - }, - "typeParams": [] - }, - { - "name": "notify", - "jsDoc": { - "doc": "Send a notification on a channel.\n", - "tags": [ + } + ], + "implementationOf": { + "type": "reference", + "target": 3944, + "name": "SqlTransaction.rollback" + } + } + ], + "implementedTypes": [ + { + "type": "reference", + "target": 3929, + "name": "SqlTransaction", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3958, + "name": "QuerySyntaxError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a SQL query has syntax errors." + } + ] + }, + "children": [ + { + "id": 3959, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3960, + "name": "QuerySyntaxError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "channel", - "doc": "- Channel name" + "id": 3961, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "payload", - "doc": "- Optional notification payload" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 108, - "col": 2, - "byteIndex": 3162 - }, - "params": [ - { - "kind": "identifier", - "name": "channel", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 3962, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3947, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } } + ], + "type": { + "type": "reference", + "target": 3958, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" }, - { - "kind": "identifier", - "name": "payload", - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + "overwrites": { + "type": "reference", + "target": 3951, + "name": "SqlError.constructor" } - }, - "typeParams": [] + } + ], + "overwrites": { + "type": "reference", + "target": 3950, + "name": "SqlError.constructor" + } + }, + { + "id": 3964, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "close", - "jsDoc": { - "doc": "Close the client and release all connections." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 113, - "col": 2, - "byteIndex": 3286 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "query" + }, + "overwrites": { + "type": "reference", + "target": 3956, + "name": "SqlError.kind" } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "The client configuration." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 30, - "col": 2, - "byteIndex": 859 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "PostgresClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PostgresClientConfig" - } - }, - "typeParams": [] + }, + { + "id": 3963, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "dialect", - "jsDoc": { - "doc": "The database dialect." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 33, - "col": 2, - "byteIndex": 932 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "postgres", - "kind": "literal", - "literal": { - "kind": "string", - "string": "postgres" + "type": { + "type": "literal", + "value": "QuerySyntaxError" + }, + "defaultValue": "\"QuerySyntaxError\"", + "overwrites": { + "type": "reference", + "target": 3955, + "name": "SqlError.name" + } + }, + { + "id": 3965, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 3957, + "name": "SqlError.sqlState" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3949, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "createPostgresClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/client.ts", - "line": 611, - "col": 0, - "byteIndex": 16963 + "id": 3984, + "name": "SqlConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new PostgreSQL client instance.\n\nThe client provides connection pooling, parameterized queries, transaction support,\nand PostgreSQL-specific features like COPY and LISTEN/NOTIFY.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- PostgreSQL client configuration" + "children": [ + { + "id": 3985, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3986, + "name": "SqlConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3987, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3988, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3947, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": 3984, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 3951, + "name": "SqlError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 3950, + "name": "SqlError.constructor" + } + }, + { + "id": 3990, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "return", - "doc": "A promise resolving to a new PostgreSQL client instance\n" + "type": { + "type": "literal", + "value": "connection" }, - { - "kind": "example", - "doc": "Using URL string\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nconst client = await createPostgresClient({\n url: \"postgres://user:pass@localhost:5432/mydb\",\n});\n\nconst result = await client.query(\"SELECT * FROM users WHERE id = $1\", [1]);\nif (result.ok) {\n console.log(result.rows[0]);\n}\n\nawait client.close();\n```\n" + "overwrites": { + "type": "reference", + "target": 3956, + "name": "SqlError.kind" + } + }, + { + "id": 3989, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "example", - "doc": "Using connection config object\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nconst client = await createPostgresClient({\n url: {\n host: \"localhost\",\n port: 5432,\n database: \"mydb\",\n username: \"user\",\n password: \"pass\",\n },\n pool: { max: 10 },\n applicationName: \"my-app\",\n});\n\nawait client.close();\n```\n" + "type": { + "type": "literal", + "value": "SqlConnectionError" }, - { - "kind": "example", - "doc": "Transaction with auto-commit/rollback\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createPostgresClient({\n url: \"postgres://localhost:5432/mydb\",\n});\n\nconst user = await client.transaction(async (tx: SqlTransaction) => {\n await tx.query(\"INSERT INTO users (name) VALUES ($1)\", [\"John\"]);\n return await tx.queryOne(\"SELECT * FROM users WHERE name = $1\", [\"John\"]);\n});\n\nawait client.close();\n```\n" + "defaultValue": "\"SqlConnectionError\"", + "overwrites": { + "type": "reference", + "target": 3955, + "name": "SqlError.name" + } + }, + { + "id": 3991, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "kind": "example", - "doc": "LISTEN/NOTIFY for real-time events\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nconst client = await createPostgresClient({\n url: \"postgres://localhost:5432/mydb\",\n});\n\n// Listen for notifications\nfor await (const notification of client.listen(\"user_events\")) {\n console.log(\"Received:\", notification.payload);\n}\n\n// In another session\nawait client.notify(\"user_events\", JSON.stringify({ userId: 123 }));\n\nawait client.close();\n```\n" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({\n url: \"postgres://localhost:5432/mydb\",\n});\n\nconst result = await client.query(\"SELECT 1\");\n// Client automatically closed when scope exits\n```" + "inheritedFrom": { + "type": "reference", + "target": 3957, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 3949, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 3949, + "name": "SqlError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "PostgresClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PostgresClientConfig" + "children": [ + { + "id": 3950, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 3951, + "name": "SqlError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 3952, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3953, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3946, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3954, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 3947, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": 3949, + "name": "SqlError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 3956, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 3946, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 3955, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + }, + { + "id": 3957, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ { - "repr": "PostgresClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PostgresClient" - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - ], - "typeName": "Promise" + ] } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 3958, + "name": "QuerySyntaxError" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - } + { + "type": "reference", + "target": 3966, + "name": "ConstraintError" + }, + { + "type": "reference", + "target": 3976, + "name": "DeadlockError" + }, + { + "type": "reference", + "target": 3984, + "name": "SqlConnectionError" + } + ] }, { - "name": "PostgresTransaction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/transaction.ts", - "line": 18, - "col": 0, - "byteIndex": 452 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "PostgreSQL transaction implementation.\n\nWraps a postgres.js reserved connection to provide transaction semantics." + "id": 3819, + "name": "PostgresClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "PostgreSQL client interface." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "jsDoc": { - "doc": "Creates a new PostgresTransaction.\n", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- Reserved SQL connection from postgres.js" - } - ] - }, - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 3820, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "postgres.ReservedSql", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "postgres.ReservedSql" - } - } + "kind": "text", + "text": "The client configuration." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/transaction.ts", - "line": 28, - "col": 2, - "byteIndex": 716 - } + ] + }, + "type": { + "type": "reference", + "target": 3899, + "name": "PostgresClientConfig", + "package": "@probitas-test/client-sql-postgres" } - ], - "properties": [], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Execute a query within the transaction.\n", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, - { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" - }, - { - "kind": "param", - "name": "options", - "doc": "- Optional query options" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "query", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + }, + { + "id": 3821, + "name": "dialect", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The database dialect." + } + ] + }, + "type": { + "type": "literal", + "value": "postgres" + } + }, + { + "id": 3856, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3857, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the client and release all connections." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3842, + "name": "copyFrom", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3843, + "name": "copyFrom", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Copy data from an iterable into a table using PostgreSQL COPY protocol." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "Number of rows copied" + } + ] + } + ] + }, + "parameters": [ { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "id": 3844, + "name": "table", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Target table name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } + "id": 3845, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async iterable of row arrays" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "name": "AsyncIterable", + "package": "typescript" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3846, + "name": "copyTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3847, + "name": "copyTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Copy data from a query result using PostgreSQL COPY protocol." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "Async iterable of row arrays" } + ] + } + ] + }, + "parameters": [ + { + "id": 3848, + "name": "query", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query to copy from" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } - ], - "typeName": "Promise" + } + ], + "name": "AsyncIterable", + "package": "typescript" + } + } + ] + }, + { + "id": 3849, + "name": "listen", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3850, + "name": "listen", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Listen for notifications on a channel." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "Async iterable of notifications" + } + ] + } + ] + }, + "parameters": [ + { + "id": 3851, + "name": "channel", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Channel name to listen on" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3907, + "name": "PostgresNotification", + "package": "@probitas-test/client-sql-postgres" + } + ], + "name": "AsyncIterable", + "package": "typescript" + } + } + ] + }, + { + "id": 3852, + "name": "notify", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3853, + "name": "notify", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send a notification on a channel." + } + ] + }, + "parameters": [ + { + "id": 3854, + "name": "channel", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Channel name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3855, + "name": "payload", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional notification payload" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3822, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3823, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a SQL query." + } + ] }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [ + "typeParameters": [ { + "id": 3824, "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/transaction.ts", - "line": 52, - "col": 2, - "byteIndex": 1383 - } - }, - { - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.\n", - "tags": [ + ], + "parameters": [ { - "kind": "param", + "id": 3825, "name": "sql", - "doc": "- SQL query string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 3826, "name": "params", - "doc": "- Optional query parameters" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } }, { - "kind": "param", + "id": 3827, "name": "options", - "doc": "- Optional query options" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3921, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queryOne", - "kind": "method", - "functionDef": { - "params": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4069, + "typeArguments": [ + { + "type": "reference", + "target": 3824, + "name": "T", + "package": "@probitas-test/client-sql-postgres", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3828, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3829, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 3830, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ { - "kind": "identifier", + "id": 3831, "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "kind": "identifier", + "id": 3832, "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } }, { - "kind": "identifier", + "id": 3833, "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3921, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3830, + "name": "T", + "package": "@probitas-test/client-sql-postgres", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3834, + "name": "transaction", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3835, + "name": "transaction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a function within a transaction.\n\nThe transaction is automatically committed if the function completes successfully,\nor rolled back if the function throws an error." + } + ] }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [ + "typeParameters": [ { + "id": 3836, "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 3837, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function to execute within the transaction" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 3838, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "id": 3839, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 3840, + "name": "tx", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3929, + "name": "SqlTransaction", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3836, + "name": "T", + "package": "@probitas-test/client-sql-postgres", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } } - ], - "typeName": "Record" + ] } } + }, + { + "id": 3841, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Transaction options" + } + ] + }, + "type": { + "type": "reference", + "target": 3927, + "name": "SqlTransactionOptions", + "package": "@probitas-test/client-sql" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/transaction.ts", - "line": 101, - "col": 2, - "byteIndex": 2914 - } - }, - { - "jsDoc": { - "doc": "Commit the transaction." - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "commit", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/transaction.ts", - "line": 121, - "col": 2, - "byteIndex": 3420 + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3836, + "name": "T", + "package": "@probitas-test/client-sql-postgres", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" }, - { - "jsDoc": { - "doc": "Rollback the transaction." - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rollback", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/transaction.ts", - "line": 136, - "col": 2, - "byteIndex": 3754 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransaction" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "PostgresSslConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 9, - "col": 0, - "byteIndex": 156 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SSL/TLS configuration for PostgreSQL connection." + "id": 3899, + "name": "PostgresClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Configuration for creating a PostgreSQL client." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "rejectUnauthorized", - "jsDoc": { - "doc": "Whether to reject unauthorized certificates.", - "tags": [ - { - "kind": "unsupported", - "value": "@default true" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 14, - "col": 2, - "byteIndex": 276 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "children": [ + { + "id": 3902, + "name": "applicationName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "ca", - "jsDoc": { - "doc": "CA certificate(s) for verification." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 19, - "col": 2, - "byteIndex": 371 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "cert", - "jsDoc": { - "doc": "Client certificate for mutual TLS." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 24, - "col": 2, - "byteIndex": 448 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Application name for PostgreSQL connection" + } + ] }, - { - "name": "key", - "jsDoc": { - "doc": "Client private key for mutual TLS." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 29, - "col": 2, - "byteIndex": 527 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "PostgresConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 37, - "col": 0, - "byteIndex": 672 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "PostgreSQL connection configuration.\n\nExtends CommonConnectionConfig with PostgreSQL-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "database", - "jsDoc": { - "doc": "Database name to connect to." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 41, - "col": 2, - "byteIndex": 795 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "ssl", - "jsDoc": { - "doc": "SSL/TLS configuration." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 46, - "col": 2, - "byteIndex": 866 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - { - "repr": "PostgresSslConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PostgresSslConfig" - } - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "PostgresPoolConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 52, - "col": 0, - "byteIndex": 959 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Pool configuration for PostgreSQL." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "max", - "jsDoc": { - "doc": "Maximum number of connections in the pool" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 54, - "col": 2, - "byteIndex": 1050 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + }, + { + "id": 3901, + "name": "pool", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "idleTimeout", - "jsDoc": { - "doc": "Idle timeout in milliseconds before closing unused connections" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 57, - "col": 2, - "byteIndex": 1148 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Pool configuration" + } + ] }, - { - "name": "connectTimeout", - "jsDoc": { - "doc": "Connection timeout in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 60, - "col": 2, - "byteIndex": 1226 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "PostgresClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 66, - "col": 0, - "byteIndex": 1322 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration for creating a PostgreSQL client." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "type": { + "type": "reference", + "target": 3895, + "name": "PostgresPoolConfig", + "package": "@probitas-test/client-sql-postgres" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "Connection URL string or configuration object.\n", - "tags": [ - { - "kind": "example", - "doc": "Using a URL string\n```ts\nimport type { PostgresClientConfig } from \"@probitas-test/client-sql-postgres\";\nconst config: PostgresClientConfig = { url: \"postgres://user:pass@localhost:5432/mydb\" };\n```\n" - }, - { - "kind": "example", - "doc": "Using a configuration object\n```ts\nimport type { PostgresClientConfig } from \"@probitas-test/client-sql-postgres\";\nconst config: PostgresClientConfig = {\n url: {\n host: \"localhost\",\n port: 5432,\n database: \"mydb\",\n username: \"user\",\n password: \"pass\",\n },\n};\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 90, - "col": 2, - "byteIndex": 2047 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "PostgresConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PostgresConnectionConfig" - } - } - ] - }, - "typeParams": [] + }, + { + "id": 3906, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "pool", - "jsDoc": { - "doc": "Pool configuration" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 93, - "col": 2, - "byteIndex": 2127 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "PostgresPoolConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PostgresPoolConfig" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "applicationName", - "jsDoc": { - "doc": "Application name for PostgreSQL connection" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 96, - "col": 2, - "byteIndex": 2218 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.\nCan be overridden per-query via SqlQueryOptions.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 104, - "col": 2, - "byteIndex": 2481 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "PostgresNotification", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 110, - "col": 0, - "byteIndex": 2567 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "PostgreSQL LISTEN/NOTIFY notification." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "channel", - "jsDoc": { - "doc": "Channel name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 112, - "col": 2, - "byteIndex": 2631 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "payload", - "jsDoc": { - "doc": "Notification payload" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 115, - "col": 2, - "byteIndex": 2690 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 3905, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "processId", - "jsDoc": { - "doc": "Process ID of the notifying backend" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/types.ts", - "line": 118, - "col": 2, - "byteIndex": 2764 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "PostgresErrorLike", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/errors.ts", - "line": 41, - "col": 0, - "byteIndex": 961 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "PostgreSQL error structure from the driver." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/errors.ts", - "line": 42, - "col": 2, - "byteIndex": 1000 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] }, - { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/errors.ts", - "line": 43, - "col": 2, - "byteIndex": 1028 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" }, - { - "name": "constraint", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/errors.ts", - "line": 44, - "col": 2, - "byteIndex": 1054 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "isConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/errors.ts", - "line": 50, - "col": 0, - "byteIndex": 1188 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if an error is a connection-level error based on SQLSTATE or error characteristics." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "PostgresErrorLike", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PostgresErrorLike" - } - } - } - ], - "returnType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "mapPostgresError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.5.1/errors.ts", - "line": 91, - "col": 0, - "byteIndex": 2217 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Maps a PostgreSQL error to the appropriate SqlError subclass.\n", - "tags": [ - { - "kind": "param", - "name": "error", - "doc": "- PostgreSQL error from the driver" + { + "id": 3903, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "kind": "return", - "doc": "Mapped SqlError or subclass" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "PostgresErrorLike", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PostgresErrorLike" - } - } - } - ], - "returnType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "SqlQueryOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 7, - "col": 0, - "byteIndex": 165 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual SQL queries." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 13, - "col": 2, - "byteIndex": 443 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlIsolationLevel", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 19, - "col": 0, - "byteIndex": 519 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Transaction isolation level." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "read_uncommitted", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_uncommitted" - } - }, - { - "repr": "read_committed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_committed" - } - }, - { - "repr": "repeatable_read", - "kind": "literal", - "literal": { - "kind": "string", - "string": "repeatable_read" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.\nCan be overridden per-query via SqlQueryOptions." } - }, - { - "repr": "serializable", - "kind": "literal", - "literal": { - "kind": "string", - "string": "serializable" + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } }, - "typeParams": [] - } - }, - { - "name": "SqlTransactionOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 28, - "col": 0, - "byteIndex": 685 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for starting a transaction." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "isolationLevel", - "jsDoc": { - "doc": "Isolation level for the transaction" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 30, - "col": 2, - "byteIndex": 773 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "SqlIsolationLevel", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlIsolationLevel" + { + "id": 3904, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlTransaction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 37, - "col": 0, - "byteIndex": 940 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a query within the transaction.", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, - { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" - }, - { - "kind": "param", - "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 45, - "col": 2, - "byteIndex": 1279 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - }, + }, + { + "id": 3900, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } - } + "kind": "text", + "text": "Connection URL string or configuration object." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ + { + "tag": "@example", + "name": "Using a URL string", + "content": [ { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } + "kind": "code", + "text": "```ts\nimport type { PostgresClientConfig } from \"@probitas-test/client-sql-postgres\";\nconst config: PostgresClientConfig = { url: \"postgres://user:pass@localhost:5432/mydb\" };\n```" } - ], - "typeName": "Promise" - } - }, - "typeParams": [ + ] + }, { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" + "tag": "@example", + "name": "Using a configuration object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { PostgresClientConfig } from \"@probitas-test/client-sql-postgres\";\nconst config: PostgresClientConfig = {\n url: {\n host: \"localhost\",\n port: 5432,\n database: \"mydb\",\n username: \"user\",\n password: \"pass\",\n },\n};\n```" } - } + ] } ] }, - { - "name": "queryOne", - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, - { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" - }, - { - "kind": "param", - "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 58, - "col": 2, - "byteIndex": 1737 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - }, + "type": "reference", + "target": 3888, + "name": "PostgresConnectionConfig", + "package": "@probitas-test/client-sql-postgres" + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 3888, + "name": "PostgresConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "PostgreSQL connection configuration.\n\nExtends CommonConnectionConfig with PostgreSQL-specific options." + } + ] + }, + "children": [ + { + "id": 3889, + "name": "database", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } - } + "kind": "text", + "text": "Database name to connect to." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3891, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Hostname or IP address." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] + "kind": "code", + "text": "```ts\n\"localhost\"\n```" } - ], - "typeName": "Promise" + ] } - }, - "typeParams": [ + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" + } + }, + { + "id": 3894, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "kind": "text", + "text": "Password for authentication." } ] }, - { - "name": "commit", - "jsDoc": { - "doc": "Commit the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 67, - "col": 2, - "byteIndex": 1917 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" }, - { - "name": "rollback", - "jsDoc": { - "doc": "Rollback the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 72, - "col": 2, - "byteIndex": 1988 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlErrorKind", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 140 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL-specific error kinds." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" - } - }, - { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" - } - }, - { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" + }, + { + "id": 3892, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." } - }, - { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 3890, + "name": "ssl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SSL/TLS configuration." } - }, - { - "repr": "unknown", - "kind": "literal", - "literal": { - "kind": "string", - "string": "unknown" + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 3883, + "name": "PostgresSslConfig", + "package": "@probitas-test/client-sql-postgres" } - } - ] + ] + } }, - "typeParams": [] - } + { + "id": 3893, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] }, { - "name": "SqlErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 20, - "col": 0, - "byteIndex": 289 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SqlError constructor." + "id": 3917, + "name": "PostgresErrorLike", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "PostgreSQL error structure from the driver." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } + "children": [ + { + "id": 3919, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "sqlState", - "jsDoc": { - "doc": "SQL State code (e.g., \"23505\" for unique violation)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 22, - "col": 2, - "byteIndex": 408 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 3920, + "name": "constraint", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 3918, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "SqlError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 29, - "col": 0, - "byteIndex": 545 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." + "id": 3907, + "name": "PostgresNotification", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "PostgreSQL LISTEN/NOTIFY notification." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 3908, + "name": "channel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" - } - } - }, + "kind": "text", + "text": "Channel name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3909, + "name": "payload", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "Notification payload" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 34, - "col": 2, - "byteIndex": 715 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 30, - "col": 2, - "byteIndex": 591 - } + }, + { + "id": 3910, + "name": "processId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Process ID of the notifying backend" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 31, - "col": 2, - "byteIndex": 638 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sqlState", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 32, - "col": 2, - "byteIndex": 678 - } + "type": { + "type": "intrinsic", + "name": "number" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ] }, { - "name": "QuerySyntaxError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 48, - "col": 0, - "byteIndex": 981 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a SQL query has syntax errors." + "id": 3895, + "name": "PostgresPoolConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Pool configuration for PostgreSQL." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 3898, + "name": "connectTimeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Connection timeout in milliseconds" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 3897, + "name": "idleTimeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "Idle timeout in milliseconds before closing unused connections" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 52, - "col": 2, - "byteIndex": 1125 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 49, - "col": 2, - "byteIndex": 1032 - } + }, + { + "id": 3896, + "name": "max", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum number of connections in the pool" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 50, - "col": 2, - "byteIndex": 1079 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ] }, { - "name": "ConstraintError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 60, - "col": 0, - "byteIndex": 1288 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a constraint violation occurs." + "id": 3883, + "name": "PostgresSslConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SSL/TLS configuration for PostgreSQL connection." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 3885, + "name": "ca", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "constraint", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "CA certificate(s) for verification." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3886, + "name": "cert", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "Client certificate for mutual TLS." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 65, - "col": 2, - "byteIndex": 1466 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 61, - "col": 2, - "byteIndex": 1338 - } + }, + { + "id": 3887, + "name": "key", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client private key for mutual TLS." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 62, - "col": 2, - "byteIndex": 1384 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "constraint", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 63, - "col": 2, - "byteIndex": 1434 - } + "type": { + "type": "intrinsic", + "name": "string" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "DeadlockError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 74, - "col": 0, - "byteIndex": 1681 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a deadlock is detected." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 3884, + "name": "rejectUnauthorized", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Whether to reject unauthorized certificates." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\ntrue\n```" } - } + ] } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 78, - "col": 2, - "byteIndex": 1822 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 75, - "col": 2, - "byteIndex": 1729 - } + } + ] + }, + { + "id": 3947, + "name": "SqlErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for SqlError constructor." + } + ] + }, + "children": [ + { + "id": 3948, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL State code (e.g., \"23505\" for unique violation)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1773 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ] }, { - "name": "SqlConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 94, - "col": 0, - "byteIndex": 2195 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" + "id": 3921, + "name": "SqlQueryOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for individual SQL queries." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 3925, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 3924, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 3922, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure." } ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 98, - "col": 2, - "byteIndex": 2348 - } + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 95, - "col": 2, - "byteIndex": 2248 - } + }, + { + "id": 3923, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 96, - "col": 2, - "byteIndex": 2297 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "SqlOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 107, - "col": 0, - "byteIndex": 2597 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." + "id": 4019, + "name": "SqlQueryResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "QuerySyntaxError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QuerySyntaxError" + "children": [ + { + "id": 4029, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." } - }, - { - "repr": "ConstraintError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConstraintError" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" + } + }, + { + "id": 4023, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the SQL error." } - }, - { - "repr": "DeadlockError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DeadlockError" + ] + }, + "type": { + "type": "reference", + "target": 3949, + "name": "SqlError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4028, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." } - }, - { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" + } + }, + { + "id": 4026, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No lastInsertId for failed queries." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4022, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4021, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the query." } - } - ] + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } }, - "typeParams": [] - } - }, - { - "name": "SqlFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 117, - "col": 0, - "byteIndex": 2845 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlConnectionError" + { + "id": 4025, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Zero affected rows for failed queries." } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + ] + }, + "type": { + "type": "literal", + "value": 0 + } + }, + { + "id": 4024, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Empty rows for failed queries." } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" } } - ] - }, - "typeParams": [] - } - }, - { - "name": "SqlQueryResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 44, - "col": 0, - "byteIndex": 1310 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultBase" - } } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 46, - "col": 2, - "byteIndex": 1429 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + }, + { + "id": 4027, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "jsDoc": { - "doc": "Query succeeded." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 49, - "col": 2, - "byteIndex": 1484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "comment": { + "summary": [ + { + "kind": "text", + "text": "No warnings for failed queries." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "No error for successful queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 52, - "col": 2, - "byteIndex": 1548 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4037, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "name": "rows", - "jsDoc": { - "doc": "Query result rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 55, - "col": 2, - "byteIndex": 1601 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "signatures": [ + { + "id": 4038, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 4039, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 4040, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4041, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4042, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 4043, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4020, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 4014, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] } } } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4014, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 58, - "col": 2, - "byteIndex": 1667 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4030, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 61, - "col": 2, - "byteIndex": 1748 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "signatures": [ + { + "id": 4031, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 4032, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "typeParams": [] - }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 64, - "col": 2, - "byteIndex": 1843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "parameters": [ { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 4033, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4034, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 4035, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 4036, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4020, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 4007, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } } - } + ] } } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4007, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ] - } + } + ], + "typeParameters": [ + { + "id": 4020, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4020, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlQueryResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 73, - "col": 0, - "byteIndex": 2182 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultBase" - } + "id": 4044, + "name": "SqlQueryResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 75, - "col": 2, - "byteIndex": 2299 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 4054, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 78, - "col": 2, - "byteIndex": 2351 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the SQL error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 81, - "col": 2, - "byteIndex": 2415 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "rows", - "jsDoc": { - "doc": "Empty rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 84, - "col": 2, - "byteIndex": 2484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" + } + }, + { + "id": 4048, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Zero affected rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 87, - "col": 2, - "byteIndex": 2568 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the failure." } - }, - "typeParams": [] + ] }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 90, - "col": 2, - "byteIndex": 2638 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 3993, + "name": "SqlFailureError", + "package": "@probitas-test/client-sql" }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 93, - "col": 2, - "byteIndex": 2711 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" } - ] - } - }, - { - "name": "SqlQueryResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 103, - "col": 0, - "byteIndex": 3071 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultBase" - } + }, + { + "id": 4053, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." + } + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server did not process the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 105, - "col": 2, - "byteIndex": 3196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 4051, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No lastInsertId (query didn't reach server)." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 108, - "col": 2, - "byteIndex": 3249 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4047, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the failure." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 111, - "col": 2, - "byteIndex": 3311 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4046, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server did not process the query." } - }, - "typeParams": [] + ] }, - { - "name": "rows", - "jsDoc": { - "doc": "No rows (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 114, - "col": 2, - "byteIndex": 3393 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "rowCount", - "jsDoc": { - "doc": "No row count (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 117, - "col": 2, - "byteIndex": 3468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4050, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 120, - "col": 2, - "byteIndex": 3550 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "No row count (query didn't reach server)." + } + ] }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 123, - "col": 2, - "byteIndex": 3632 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 4049, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No rows (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null } - ] - } - }, - { - "name": "SqlQueryResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 164, - "col": 0, - "byteIndex": 5113 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result union type representing all possible result states.\n\n- **Success**: `processed: true, ok: true, error: null`\n- **Error**: `processed: true, ok: false, error: SqlError`\n- **Failure**: `processed: false, ok: false, error: SqlConnectionError`\n", - "tags": [ - { - "kind": "example", - "doc": "Type narrowing by ok\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```\n" + }, + { + "id": 4052, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "example", - "doc": "Type narrowing by processed\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + "comment": { + "summary": [ + { + "kind": "text", + "text": "No warnings (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null } - ] - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + }, + { + "id": 4062, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 4063, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." } - ], - "typeName": "SqlQueryResultSuccess" - } - }, - { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ] + }, + "typeParameters": [ + { + "id": 4064, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 4065, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4066, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4067, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 4068, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4045, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 4014, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] } } - ], - "typeName": "SqlQueryResultError" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4014, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - }, + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4055, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 4056, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 4057, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 4058, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4059, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 4060, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 4061, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4045, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 4007, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] } } - ], - "typeName": "SqlQueryResultFailure" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4007, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } } - ] - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ] - } + } + ], + "typeParameters": [ + { + "id": 4045, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4045, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlQueryResultSuccessParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 173, - "col": 0, - "byteIndex": 5415 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a SqlQueryResultSuccess." + "id": 3994, + "name": "SqlQueryResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "rows", - "jsDoc": { - "doc": "The result rows" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 175, - "col": 2, - "byteIndex": 5498 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } + "children": [ + { + "id": 4004, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows (for INSERT/UPDATE/DELETE)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 178, - "col": 2, - "byteIndex": 5590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "duration", - "jsDoc": { - "doc": "Query execution duration in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 181, - "col": 2, - "byteIndex": 5670 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 4029, + "name": "SqlQueryResultBase.duration", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 3998, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 184, - "col": 2, - "byteIndex": 5750 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ] - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "No error for successful queries." + } + ] }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 187, - "col": 2, - "byteIndex": 5838 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4003, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 4028, + "name": "SqlQueryResultBase.kind", + "package": "@probitas-test/client-sql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 4001, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Last inserted ID (for INSERT statements)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "bigint" + }, + { + "type": "literal", + "value": null + } + ] } - ] - } - }, - { - "name": "SqlQueryResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 194, - "col": 0, - "byteIndex": 5945 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultSuccess.", - "tags": [ - { - "kind": "internal" + }, + { + "id": 3997, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query succeeded." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 3996, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "SqlQueryResultSuccessParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccessParams" - } - } + "kind": "text", + "text": "Server processed the query." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 205, - "col": 2, - "byteIndex": 6343 - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" + }, + { + "id": 4000, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of affected rows." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 195, - "col": 2, - "byteIndex": 6027 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 3999, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query result rows." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 196, - "col": 2, - "byteIndex": 6061 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 3995, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 197, - "col": 2, - "byteIndex": 6099 } + } + }, + { + "id": 4002, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 198, - "col": 2, - "byteIndex": 6130 - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Warning messages from the database." + } + ] }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } } + }, + { + "type": "literal", + "value": null } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 199, - "col": 2, - "byteIndex": 6155 - } - }, - { - "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.5.1/result.ts", - "line": 200, - "col": 2, - "byteIndex": 6186 - } - }, - { - "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.5.1/result.ts", - "line": 201, - "col": 2, - "byteIndex": 6215 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 202, - "col": 2, - "byteIndex": 6244 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } + ] + } + }, + { + "id": 4012, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 4013, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." } - }, + ] + }, + "typeParameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 4014, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 203, - "col": 2, - "byteIndex": 6293 - } - } - ], - "indexSignatures": [], - "methods": [ - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "map", - "kind": "method", - "functionDef": { - "params": [ + ], + "parameters": [ { - "kind": "identifier", - "name": "mapper", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ + "id": 4015, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4016, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 4017, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 4018, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3995, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } } + ], + "type": { + "type": "reference", + "target": 4014, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } } - ], - "typeParams": [] + ] } } } ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4014, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 213, - "col": 2, - "byteIndex": 6605 + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4005, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "as", - "kind": "method", - "functionDef": { - "params": [ + "signatures": [ + { + "id": 4006, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "kind": "identifier", - "name": "ctor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ + "id": 4007, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 4008, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4009, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 4010, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 4011, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3995, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } } + ], + "type": { + "type": "reference", + "target": 4007, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } } - ], - "typeParams": [] + ] } } } ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4007, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 221, - "col": 2, - "byteIndex": 6769 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccess" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "typeParams": [ - { - "name": "T" + } + ], + "typeParameters": [ + { + "id": 3995, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3995, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlQueryResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 234, - "col": 0, - "byteIndex": 6999 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultError.", - "tags": [ - { - "kind": "internal" + "id": 4071, + "name": "SqlQueryResultSuccessParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating a SqlQueryResultSuccess." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 4075, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - } + "kind": "text", + "text": "Query execution duration in milliseconds" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4076, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Last inserted ID (for INSERT statements)" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "bigint" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 245, - "col": 2, - "byteIndex": 7373 - } + ] } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" + }, + { + "id": 4074, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of affected rows (for INSERT/UPDATE/DELETE)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 235, - "col": 2, - "byteIndex": 7077 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4073, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The result rows" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 236, - "col": 2, - "byteIndex": 7111 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4072, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccessParams.T", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 7149 } + } + }, + { + "id": 4077, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Warning messages from the database" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 238, - "col": 2, - "byteIndex": 7181 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ], + "typeParameters": [ + { + "id": 4072, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 3929, + "name": "SqlTransaction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." + } + ] + }, + "children": [ + { + "id": 3942, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3943, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Commit the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3930, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3931, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query within the transaction." + } + ] + }, + "typeParameters": [ + { + "id": 3932, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 3933, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3934, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 3935, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3921, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4069, + "typeArguments": [ + { + "type": "reference", + "target": 3932, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3936, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3937, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 3938, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 3939, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3940, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 3941, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 3921, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3938, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 3944, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 3945, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 239, - "col": 2, - "byteIndex": 7209 } + ] + } + ], + "implementedBy": [ + { + "type": "reference", + "target": 3858, + "name": "PostgresTransaction" + } + ] + }, + { + "id": 3927, + "name": "SqlTransactionOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for starting a transaction." + } + ] + }, + "children": [ + { + "id": 3928, + "name": "isolationLevel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Isolation level for the transaction" + } + ] + }, + "type": { + "type": "reference", + "target": 3926, + "name": "SqlIsolationLevel", + "package": "@probitas-test/client-sql" + } + } + ] + }, + { + "id": 3946, + "name": "SqlErrorKind", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL-specific error kinds." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "query" }, { - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 240, - "col": 2, - "byteIndex": 7249 - } + "type": "literal", + "value": "constraint" }, { - "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.5.1/result.ts", - "line": 241, - "col": 2, - "byteIndex": 7283 - } + "type": "literal", + "value": "deadlock" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 242, - "col": 2, - "byteIndex": 7312 - } + "type": "literal", + "value": "connection" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 243, - "col": 2, - "byteIndex": 7344 - } + "type": "literal", + "value": "unknown" } - ], - "indexSignatures": [], - "methods": [ + ] + } + }, + { + "id": 3993, + "name": "SqlFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3984, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" + }, { - "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" - } - ] + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 250, - "col": 2, - "byteIndex": 7483 - } + "name": "AbortError", + "package": "@probitas-test/client" }, { - "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" - } - ] + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 254, - "col": 2, - "byteIndex": 7543 - } + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultError" - } + ] + } + }, + { + "id": 3926, + "name": "SqlIsolationLevel", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Transaction isolation level." } - ], - "typeParams": [ + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "read_uncommitted" + }, + { + "type": "literal", + "value": "read_committed" + }, + { + "type": "literal", + "value": "repeatable_read" + }, { - "name": "T" + "type": "literal", + "value": "serializable" } - ], - "superTypeParams": [] + ] } }, { - "name": "SqlQueryResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 263, - "col": 0, - "byteIndex": 7669 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultFailure.", - "tags": [ - { - "kind": "internal" + "id": 3992, + "name": "SqlOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 274, - "col": 2, - "byteIndex": 8033 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 264, - "col": 2, - "byteIndex": 7751 - } + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3958, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 265, - "col": 2, - "byteIndex": 7785 - } + "type": "reference", + "target": 3966, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 266, - "col": 2, - "byteIndex": 7824 - } + "type": "reference", + "target": 3976, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 267, - "col": 2, - "byteIndex": 7856 - } + "type": "reference", + "target": 3949, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 4069, + "name": "SqlQueryResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result union type representing all possible result states.\n\n- **Success**: " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 268, - "col": 2, - "byteIndex": 7891 - } + "kind": "code", + "text": "`processed: true, ok: true, error: null`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 269, - "col": 2, - "byteIndex": 7915 - } + "kind": "text", + "text": "\n- **Error**: " }, { - "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.5.1/result.ts", - "line": 270, - "col": 2, - "byteIndex": 7943 - } + "kind": "code", + "text": "`processed: true, ok: false, error: SqlError`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 271, - "col": 2, - "byteIndex": 7972 - } + "kind": "text", + "text": "\n- **Failure**: " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 272, - "col": 2, - "byteIndex": 8004 - } + "kind": "code", + "text": "`processed: false, ok: false, error: SqlConnectionError`" } ], - "indexSignatures": [], - "methods": [ + "blockTags": [ { - "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": [] - } + "tag": "@example", + "name": "Type narrowing by ok", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```" + } + ] + }, + { + "tag": "@example", + "name": "Type narrowing by processed", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + } + ] + } + ] + }, + "typeParameters": [ + { + "id": 4070, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 3994, + "typeArguments": [ + { + "type": "reference", + "target": 4070, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultSuccess", + "package": "@probitas-test/client-sql" + }, + { + "type": "reference", + "target": 4019, + "typeArguments": [ + { + "type": "reference", + "target": 4070, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultError", + "package": "@probitas-test/client-sql" + }, + { + "type": "reference", + "target": 4044, + "typeArguments": [ + { + "type": "reference", + "target": 4070, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultFailure", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 3816, + "name": "createPostgresClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 3817, + "name": "createPostgresClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new PostgreSQL client instance.\n\nThe client provides connection pooling, parameterized queries, transaction support,\nand PostgreSQL-specific features like COPY and LISTEN/NOTIFY." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new PostgreSQL client instance" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + }, + { + "tag": "@example", + "name": "Using URL string", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nconst client = await createPostgresClient({\n url: \"postgres://user:pass@localhost:5432/mydb\",\n});\n\nconst result = await client.query(\"SELECT * FROM users WHERE id = $1\", [1]);\nif (result.ok) {\n console.log(result.rows[0]);\n}\n\nawait client.close();\n```" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 279, - "col": 2, - "byteIndex": 8150 - } - }, - { - "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": [] - } + { + "tag": "@example", + "name": "Using connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nconst client = await createPostgresClient({\n url: {\n host: \"localhost\",\n port: 5432,\n database: \"mydb\",\n username: \"user\",\n password: \"pass\",\n },\n pool: { max: 10 },\n applicationName: \"my-app\",\n});\n\nawait client.close();\n```" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + }, + { + "tag": "@example", + "name": "Transaction with auto-commit/rollback", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createPostgresClient({\n url: \"postgres://localhost:5432/mydb\",\n});\n\nconst user = await client.transaction(async (tx: SqlTransaction) => {\n await tx.query(\"INSERT INTO users (name) VALUES ($1)\", [\"John\"]);\n return await tx.queryOne(\"SELECT * FROM users WHERE name = $1\", [\"John\"]);\n});\n\nawait client.close();\n```" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 283, - "col": 2, - "byteIndex": 8210 + { + "tag": "@example", + "name": "LISTEN/NOTIFY for real-time events", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nconst client = await createPostgresClient({\n url: \"postgres://localhost:5432/mydb\",\n});\n\n// Listen for notifications\nfor await (const notification of client.listen(\"user_events\")) {\n console.log(\"Received:\", notification.payload);\n}\n\n// In another session\nawait client.notify(\"user_events\", JSON.stringify({ userId: 123 }));\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({\n url: \"postgres://localhost:5432/mydb\",\n});\n\nconst result = await client.query(\"SELECT 1\");\n// Client automatically closed when scope exits\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 3818, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "PostgreSQL client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 3899, + "name": "PostgresClientConfig", + "package": "@probitas-test/client-sql-postgres" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 3819, + "name": "PostgresClient", + "package": "@probitas-test/client-sql-postgres" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultFailure" + } + ] + }, + { + "id": 3911, + "name": "isConnectionError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 3912, + "name": "isConnectionError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if an error is a connection-level error based on SQLSTATE or error characteristics." + } + ] + }, + "parameters": [ + { + "id": 3913, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 3917, + "name": "PostgresErrorLike", + "package": "@probitas-test/client-sql-postgres" + } } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "typeParams": [ - { - "name": "T" + } + ] + }, + { + "id": 3914, + "name": "mapPostgresError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 3915, + "name": "mapPostgresError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maps a PostgreSQL error to the appropriate SqlError subclass." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "Mapped SqlError or subclass" + } + ] + } + ] + }, + "parameters": [ + { + "id": 3916, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "PostgreSQL error from the driver" + } + ] + }, + "type": { + "type": "reference", + "target": 3917, + "name": "PostgresErrorLike", + "package": "@probitas-test/client-sql-postgres" + } + } + ], + "type": { + "type": "reference", + "target": 3949, + "name": "SqlError", + "package": "@probitas-test/client-sql" } - ], - "superTypeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-sql-postgres", + "packageVersion": "0.5.2" } diff --git a/data/api/client-sql-sqlite.json b/data/api/client-sql-sqlite.json index d62baa0..9b67411 100644 --- a/data/api/client-sql-sqlite.json +++ b/data/api/client-sql-sqlite.json @@ -1,5560 +1,6191 @@ { - "name": "client-sql-sqlite", - "specifier": "@probitas/client-sql-sqlite", - "version": "0.6.0", - "moduleDoc": "SQLite client for [Probitas](https://github.com/probitas-test/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-test/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\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createSqliteClient({ path: \":memory:\" });\nawait client.transaction(async (tx: SqlTransaction) => {\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});\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\n\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [SQLite](https://www.sqlite.org/)\n", - "exports": [ - { - "name": "SqliteClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/client.ts", - "line": 28, - "col": 0, - "byteIndex": 755 + "schemaVersion": "2.0", + "id": 4167, + "name": "@probitas-test/client-sql-sqlite", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQLite client for [Probitas](https://github.com/probitas-test/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 " }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQLite client interface." + { + "kind": "code", + "text": "`AsyncDisposable`" }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-sql-sqlite\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createSqliteClient } from \"@probitas-test/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```" + }, + { + "kind": "text", + "text": "\n\n## Transactions\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createSqliteClient({ path: \":memory:\" });\nawait client.transaction(async (tx: SqlTransaction) => {\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});\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\n\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```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql) | Common SQL types and utilities |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-postgres`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-postgres) | PostgreSQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-mysql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-mysql) | MySQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-duckdb`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [SQLite](https://www.sqlite.org/)" + } + ] + }, + "children": [ + { + "id": 4278, + "name": "BusyError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when the database is busy." } - ], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a SQL query.", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, + ] + }, + "children": [ + { + "id": 4279, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4280, + "name": "BusyError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" + "id": 4281, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 4282, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/client.ts", - "line": 42, - "col": 2, - "byteIndex": 1240 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4246, + "name": "SqliteErrorOptions", + "package": "@probitas-test/client-sql-sqlite" } } + ], + "type": { + "type": "reference", + "target": 4278, + "name": "BusyError", + "package": "@probitas-test/client-sql-sqlite" }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } - } - ], - "typeName": "Promise" + "overwrites": { + "type": "reference", + "target": 4251, + "name": "SqliteError.constructor" } - }, - "typeParams": [ + } + ], + "overwrites": { + "type": "reference", + "target": 4250, + "name": "SqliteError.constructor" + } + }, + { + "id": 4285, + "name": "extendedCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 4255, + "name": "SqliteError.extendedCode" + } + }, + { + "id": 4286, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "reference", + "target": 4313, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 4256, + "name": "SqliteError.kind" + } + }, + { + "id": 4283, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "BusyError" + }, + "defaultValue": "\"BusyError\"", + "overwrites": { + "type": "reference", + "target": 4254, + "name": "SqliteError.name" + } + }, + { + "id": 4284, + "name": "sqliteKind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "busy" + }, + "defaultValue": "..." + }, + { + "id": 4287, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } ] }, - { - "name": "queryOne", - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.", - "tags": [ + "inheritedFrom": { + "type": "reference", + "target": 4257, + "name": "SqliteError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4249, + "name": "SqliteError", + "package": "@probitas-test/client-sql-sqlite" + } + ] + }, + { + "id": 4333, + "name": "ConstraintError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a constraint violation occurs." + } + ] + }, + "children": [ + { + "id": 4334, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4335, + "name": "ConstraintError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" + "id": 4336, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" + "id": 4337, + "name": "constraint", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 4338, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/client.ts", - "line": 55, - "col": 2, - "byteIndex": 1698 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4314, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } + ], + "type": { + "type": "reference", + "target": 4333, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] - } - ], - "typeName": "Promise" + "overwrites": { + "type": "reference", + "target": 4318, + "name": "SqlError.constructor" } - }, - "typeParams": [ + } + ], + "overwrites": { + "type": "reference", + "target": 4317, + "name": "SqlError.constructor" + } + }, + { + "id": 4341, + "name": "constraint", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4340, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "constraint" + }, + "overwrites": { + "type": "reference", + "target": 4323, + "name": "SqlError.kind" + } + }, + { + "id": 4339, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "ConstraintError" + }, + "defaultValue": "\"ConstraintError\"", + "overwrites": { + "type": "reference", + "target": 4322, + "name": "SqlError.name" + } + }, + { + "id": 4342, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } ] }, - { - "name": "transaction", - "jsDoc": { - "doc": "Execute a function within a transaction.\nAutomatically commits on success or rolls back on error.", - "tags": [ + "inheritedFrom": { + "type": "reference", + "target": 4324, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4316, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 4258, + "name": "DatabaseLockedError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when the database is locked." + } + ] + }, + "children": [ + { + "id": 4259, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4260, + "name": "DatabaseLockedError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "fn", - "doc": "- Function to execute within transaction" + "id": 4261, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 4262, "name": "options", - "doc": "- Transaction options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/client.ts", - "line": 67, - "col": 2, - "byteIndex": 2055 - }, - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - "params": [ - { - "kind": "identifier", - "name": "tx", - "optional": false, - "tsType": { - "repr": "SqlTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransaction" - } - } - } - ], - "typeParams": [] + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4246, + "name": "SqliteErrorOptions", + "package": "@probitas-test/client-sql-sqlite" } } + ], + "type": { + "type": "reference", + "target": 4258, + "name": "DatabaseLockedError", + "package": "@probitas-test/client-sql-sqlite" }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransactionOptions" - } - }, - { - "repr": "SqliteTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteTransactionOptions" - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ - { - "name": "T" - } - ] - }, - { - "name": "backup", - "jsDoc": { - "doc": "Backup the database to a file.\nUses VACUUM INTO for a consistent backup.", - "tags": [ - { - "kind": "param", - "name": "destPath", - "doc": "- Destination file path for the backup" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/client.ts", - "line": 77, - "col": 2, - "byteIndex": 2354 - }, - "params": [ - { - "kind": "identifier", - "name": "destPath", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + "overwrites": { + "type": "reference", + "target": 4251, + "name": "SqliteError.constructor" } - }, - "typeParams": [] + } + ], + "overwrites": { + "type": "reference", + "target": 4250, + "name": "SqliteError.constructor" + } + }, + { + "id": 4265, + "name": "extendedCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "vacuum", - "jsDoc": { - "doc": "Run VACUUM to rebuild the database file, reclaiming unused space." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/client.ts", - "line": 82, - "col": 2, - "byteIndex": 2481 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "close", - "jsDoc": { - "doc": "Close the database connection." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/client.ts", - "line": 87, - "col": 2, - "byteIndex": 2557 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 4255, + "name": "SqliteError.extendedCode" } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "The client configuration." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/client.ts", - "line": 30, - "col": 2, - "byteIndex": 848 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqliteClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteClientConfig" - } - }, - "typeParams": [] + }, + { + "id": 4266, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "dialect", - "jsDoc": { - "doc": "The SQL dialect identifier." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/client.ts", - "line": 33, - "col": 2, - "byteIndex": 925 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "sqlite", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqlite" - } - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 4313, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 4256, + "name": "SqliteError.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "createSqliteClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/client.ts", - "line": 162, - "col": 0, - "byteIndex": 4787 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new SQLite client instance.\n\nThe client provides parameterized queries, transaction support,\nWAL mode for better concurrency, and SQLite-specific features like backup and vacuum.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- SQLite client configuration" + }, + { + "id": 4263, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "return", - "doc": "A promise resolving to a new SQLite client instance\n" + "type": { + "type": "literal", + "value": "DatabaseLockedError" }, - { - "kind": "example", - "doc": "Using file-based database\n```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\n\nconst client = await createSqliteClient({\n path: \"./data.db\",\n});\n\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT * FROM users WHERE id = ?\",\n [1],\n);\nif (result.ok) {\n console.log(result.rows[0]); // { id: 1, name: \"Alice\" }\n}\n\nawait client.close();\n```\n" + "defaultValue": "\"DatabaseLockedError\"", + "overwrites": { + "type": "reference", + "target": 4254, + "name": "SqliteError.name" + } + }, + { + "id": 4264, + "name": "sqliteKind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "example", - "doc": "Using in-memory database\n```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\n\nconst client = await createSqliteClient({\n path: \":memory:\",\n});\nawait client.close();\n```\n" + "type": { + "type": "literal", + "value": "database_locked" }, - { - "kind": "example", - "doc": "Transaction with auto-commit/rollback\n```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createSqliteClient({ path: \":memory:\" });\nconst user = await client.transaction(async (tx: SqlTransaction) => {\n await tx.query(\"INSERT INTO users (name) VALUES (?)\", [\"Alice\"]);\n const result = await tx.query<{ id: number }>(\"SELECT last_insert_rowid() as id\");\n if (!result.ok) throw result.error;\n return result.rows[0];\n});\nawait client.close();\n```\n" + "defaultValue": "..." + }, + { + "id": 4267, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "kind": "example", - "doc": "Database backup\n```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\n\nconst client = await createSqliteClient({ path: \"./data.db\" });\nawait client.backup(\"./backup.db\");\nawait client.close();\n```\n" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\n\nawait using client = await createSqliteClient({ path: \"./data.db\" });\n\nconst result = await client.query(\"SELECT 1\");\n// Client automatically closed when scope exits\n```" + "inheritedFrom": { + "type": "reference", + "target": 4257, + "name": "SqliteError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4249, + "name": "SqliteError", + "package": "@probitas-test/client-sql-sqlite" + } + ] + }, + { + "id": 4343, + "name": "DeadlockError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a deadlock is detected." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "SqliteClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteClientConfig" + "children": [ + { + "id": 4344, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4345, + "name": "DeadlockError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 4346, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4347, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4314, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": 4343, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 4318, + "name": "SqlError.constructor" } } + ], + "overwrites": { + "type": "reference", + "target": 4317, + "name": "SqlError.constructor" } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 4349, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "deadlock" + }, + "overwrites": { + "type": "reference", + "target": 4323, + "name": "SqlError.kind" + } + }, + { + "id": 4348, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "DeadlockError" + }, + "defaultValue": "\"DeadlockError\"", + "overwrites": { + "type": "reference", + "target": 4322, + "name": "SqlError.name" + } + }, + { + "id": 4350, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "repr": "SqliteClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteClient" - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - ], - "typeName": "Promise" + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 4324, + "name": "SqlError.sqlState" } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4316, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqliteTransactionMode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/transaction.ts", - "line": 25, - "col": 0, - "byteIndex": 692 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQLite transaction behavior mode.\n\n- \"deferred\": Locks are acquired on first read/write (default)\n- \"immediate\": Acquires RESERVED lock immediately\n- \"exclusive\": Acquires EXCLUSIVE lock immediately" + "id": 4325, + "name": "QuerySyntaxError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a SQL query has syntax errors." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "children": [ + { + "id": 4326, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "deferred", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deferred" - } - }, - { - "repr": "immediate", - "kind": "literal", - "literal": { - "kind": "string", - "string": "immediate" - } - }, - { - "repr": "exclusive", - "kind": "literal", - "literal": { - "kind": "string", - "string": "exclusive" + "id": 4327, + "name": "QuerySyntaxError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 4328, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4329, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4314, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": 4325, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 4318, + "name": "SqlError.constructor" } } - ] + ], + "overwrites": { + "type": "reference", + "target": 4317, + "name": "SqlError.constructor" + } }, - "typeParams": [] - } - }, - { - "name": "SqliteTransactionOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/transaction.ts", - "line": 30, - "col": 0, - "byteIndex": 817 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQLite-specific transaction options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransactionOptions" - } + { + "id": 4331, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "query" + }, + "overwrites": { + "type": "reference", + "target": 4323, + "name": "SqlError.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "mode", - "jsDoc": { - "doc": "Transaction behavior mode.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"deferred\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/transaction.ts", - "line": 35, - "col": 2, - "byteIndex": 962 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "SqliteTransactionMode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteTransactionMode" + }, + { + "id": 4330, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "QuerySyntaxError" + }, + "defaultValue": "\"QuerySyntaxError\"", + "overwrites": { + "type": "reference", + "target": 4322, + "name": "SqlError.name" + } + }, + { + "id": 4332, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 4324, + "name": "SqlError.sqlState" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4316, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqliteTransactionImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/transaction.ts", - "line": 60, - "col": 0, - "byteIndex": 1622 - }, - "declarationKind": "export", - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": "private", - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "db", - "optional": false, - "tsType": { - "repr": "Database", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Database" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/transaction.ts", - "line": 64, - "col": 2, - "byteIndex": 1735 - } + "id": 4268, + "name": "ReadonlyDatabaseError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when trying to write to a readonly database." } - ], - "properties": [], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Begin a new transaction." - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": true, - "name": "begin", - "kind": "method", - "functionDef": { - "params": [ + ] + }, + "children": [ + { + "id": 4269, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4270, + "name": "ReadonlyDatabaseError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "identifier", - "name": "db", - "optional": false, - "tsType": { - "repr": "Database", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Database" - } + "id": 4271, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "kind": "identifier", + "id": 4272, "name": "options", - "optional": true, - "tsType": { - "repr": "SqliteTransactionOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteTransactionOptions" - } + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4246, + "name": "SqliteErrorOptions", + "package": "@probitas-test/client-sql-sqlite" } } ], - "returnType": { - "repr": "SqliteTransactionImpl", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteTransactionImpl" - } + "type": { + "type": "reference", + "target": 4268, + "name": "ReadonlyDatabaseError", + "package": "@probitas-test/client-sql-sqlite" }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/transaction.ts", - "line": 71, - "col": 2, - "byteIndex": 1839 + "overwrites": { + "type": "reference", + "target": 4251, + "name": "SqliteError.constructor" + } } + ], + "overwrites": { + "type": "reference", + "target": 4250, + "name": "SqliteError.constructor" + } + }, + { + "id": 4275, + "name": "extendedCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "query", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 4255, + "name": "SqliteError.extendedCode" + } + }, + { + "id": 4276, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "reference", + "target": 4313, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 4256, + "name": "SqliteError.kind" + } + }, + { + "id": 4273, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "ReadonlyDatabaseError" + }, + "defaultValue": "\"ReadonlyDatabaseError\"", + "overwrites": { + "type": "reference", + "target": 4254, + "name": "SqliteError.name" + } + }, + { + "id": 4274, + "name": "sqliteKind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "readonly" + }, + "defaultValue": "..." + }, + { + "id": 4277, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 4257, + "name": "SqliteError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4249, + "name": "SqliteError", + "package": "@probitas-test/client-sql-sqlite" + } + ] + }, + { + "id": 4351, + "name": "SqlConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" + } + ] + }, + "children": [ + { + "id": 4352, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4353, + "name": "SqlConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "id": 4354, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "kind": "identifier", + "id": 4355, "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4314, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": 4351, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" }, - "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" - } - } - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/transaction.ts", - "line": 93, - "col": 2, - "byteIndex": 2559 + "overwrites": { + "type": "reference", + "target": 4318, + "name": "SqlError.constructor" + } } + ], + "overwrites": { + "type": "reference", + "target": 4317, + "name": "SqlError.constructor" + } + }, + { + "id": 4357, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queryOne", - "kind": "method", - "functionDef": { - "params": [ + "type": { + "type": "literal", + "value": "connection" + }, + "overwrites": { + "type": "reference", + "target": 4323, + "name": "SqlError.kind" + } + }, + { + "id": 4356, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqlConnectionError" + }, + "defaultValue": "\"SqlConnectionError\"", + "overwrites": { + "type": "reference", + "target": 4322, + "name": "SqlError.name" + } + }, + { + "id": 4358, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 4324, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4316, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 4316, + "name": "SqlError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." + } + ] + }, + "children": [ + { + "id": 4317, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4318, + "name": "SqlError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 4319, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "id": 4320, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4313, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" } }, { - "kind": "identifier", + "id": 4321, "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4314, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": 4316, + "name": "SqlError", + "package": "@probitas-test/client-sql" }, - "hasBody": true, - "isAsync": true, - "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" - } - } - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/transaction.ts", - "line": 193, - "col": 2, - "byteIndex": 5801 + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 4323, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "commit", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/transaction.ts", - "line": 210, - "col": 2, - "byteIndex": 6266 - } + "type": { + "type": "reference", + "target": 4313, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rollback", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/transaction.ts", - "line": 226, - "col": 2, - "byteIndex": 6630 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" } - ], - "extends": null, - "implements": [ - { - "repr": "SqlTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlTransaction" - } + }, + { + "id": 4322, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 4324, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 4249, + "name": "SqliteError" + }, + { + "type": "reference", + "target": 4325, + "name": "QuerySyntaxError" + }, + { + "type": "reference", + "target": 4333, + "name": "ConstraintError" + }, + { + "type": "reference", + "target": 4343, + "name": "DeadlockError" + }, + { + "type": "reference", + "target": 4351, + "name": "SqlConnectionError" + } + ] }, { - "name": "SqliteClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/types.ts", - "line": 6, - "col": 0, - "byteIndex": 122 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration for creating a SQLite client." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "id": 4249, + "name": "SqliteError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base error class for SQLite-specific errors.\nExtends SqlError with SQLite-specific properties like extendedCode." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "path", - "jsDoc": { - "doc": "Database file path.\nUse \":memory:\" for an in-memory database." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/types.ts", - "line": 11, - "col": 2, - "byteIndex": 268 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "readonly", - "jsDoc": { - "doc": "Open the database in read-only mode.", - "tags": [ + ] + }, + "children": [ + { + "id": 4250, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4251, + "name": "SqliteError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "unsupported", - "value": "@default false" + "id": 4252, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4253, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4246, + "name": "SqliteErrorOptions", + "package": "@probitas-test/client-sql-sqlite" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/types.ts", - "line": 17, - "col": 2, - "byteIndex": 368 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 4249, + "name": "SqliteError", + "package": "@probitas-test/client-sql-sqlite" + }, + "overwrites": { + "type": "reference", + "target": 4318, + "name": "SqlError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 4317, + "name": "SqlError.constructor" + } + }, + { + "id": 4255, + "name": "extendedCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "wal", - "jsDoc": { - "doc": "Enable WAL (Write-Ahead Logging) mode.\nWAL mode provides better concurrency and performance.", - "tags": [ + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4256, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "reference", + "target": 4313, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 4323, + "name": "SqlError.kind" + } + }, + { + "id": 4254, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"SqliteError\"", + "overwrites": { + "type": "reference", + "target": 4322, + "name": "SqlError.name" + } + }, + { + "id": 4257, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 4324, + "name": "SqlError.sqlState", + "package": "@probitas-test/client-sql" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4316, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 4258, + "name": "DatabaseLockedError" + }, + { + "type": "reference", + "target": 4268, + "name": "ReadonlyDatabaseError" + }, + { + "type": "reference", + "target": 4278, + "name": "BusyError" + } + ] + }, + { + "id": 4205, + "name": "SqliteTransactionImpl", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." + } + ] + }, + "children": [ + { + "id": 4227, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4228, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Commit the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 4310, + "name": "SqlTransaction.commit" + } + } + ], + "implementationOf": { + "type": "reference", + "target": 4309, + "name": "SqlTransaction.commit" + } + }, + { + "id": 4215, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4216, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query within the transaction." + } + ] + }, + "typeParameters": [ { - "kind": "unsupported", - "value": "@default true" + "id": 4217, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/types.ts", - "line": 24, - "col": 2, - "byteIndex": 534 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.\nCan be overridden per-query via SqlQueryOptions.", - "tags": [ + ], + "parameters": [ + { + "id": 4218, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "unsupported", - "value": "@default false" + "id": 4219, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 4220, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 4288, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/types.ts", - "line": 32, - "col": 2, - "byteIndex": 786 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4436, + "typeArguments": [ + { + "type": "reference", + "target": 4217, + "name": "T", + "package": "@probitas-test/client-sql-sqlite", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 4298, + "name": "SqlTransaction.query" + } + } + ], + "implementationOf": { + "type": "reference", + "target": 4297, + "name": "SqlTransaction.query" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4221, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4222, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 4223, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 4224, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4225, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 4226, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 4288, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 4223, + "name": "T", + "package": "@probitas-test/client-sql-sqlite", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 4304, + "name": "SqlTransaction.queryOne" + } + } + ], + "implementationOf": { + "type": "reference", + "target": 4303, + "name": "SqlTransaction.queryOne" + } + }, + { + "id": 4229, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4230, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": 4312, + "name": "SqlTransaction.rollback" + } + } + ], + "implementationOf": { + "type": "reference", + "target": 4311, + "name": "SqlTransaction.rollback" + } + }, + { + "id": 4206, + "name": "begin", + "variant": "declaration", + "kind": 2048, + "flags": { + "isStatic": true + }, + "signatures": [ + { + "id": 4207, + "name": "begin", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Begin a new transaction." + } + ] + }, + "parameters": [ + { + "id": 4208, + "name": "db", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql-sqlite", + "packagePath": "_driver.ts", + "qualifiedName": "Database" + }, + "name": "Database", + "package": "@probitas-test/client-sql-sqlite" + } + }, + { + "id": 4209, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4202, + "name": "SqliteTransactionOptions", + "package": "@probitas-test/client-sql-sqlite" + } + } + ], + "type": { + "type": "reference", + "target": 4205, + "name": "SqliteTransactionImpl", + "package": "@probitas-test/client-sql-sqlite" + } + } + ] + } + ], + "implementedTypes": [ + { + "type": "reference", + "target": 4296, + "name": "SqlTransaction", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqliteErrorKind", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 13, - "col": 0, - "byteIndex": 206 + "id": 4314, + "name": "SqlErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for SqlError constructor." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQLite-specific error kinds." + "children": [ + { + "id": 4315, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL State code (e.g., \"23505\" for unique violation)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 4246, + "name": "SqliteErrorOptions" + } + ] + }, + { + "id": 4171, + "name": "SqliteClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQLite client interface." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "children": [ + { + "id": 4172, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The client configuration." + } + ] + }, + "type": { + "type": "reference", + "target": 4231, + "name": "SqliteClientConfig", + "package": "@probitas-test/client-sql-sqlite" + } + }, + { + "id": 4173, + "name": "dialect", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The SQL dialect identifier." + } + ] + }, + "type": { + "type": "literal", + "value": "sqlite" + } + }, + { + "id": 4194, + "name": "backup", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4195, + "name": "backup", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Backup the database to a file.\nUses VACUUM INTO for a consistent backup." + } + ] + }, + "parameters": [ + { + "id": 4196, + "name": "destPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Destination file path for the backup" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 4199, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4200, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the database connection." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 4174, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4175, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a SQL query." + } + ] + }, + "typeParameters": [ + { + "id": 4176, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 4177, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4178, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 4179, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 4288, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4436, + "typeArguments": [ + { + "type": "reference", + "target": 4176, + "name": "T", + "package": "@probitas-test/client-sql-sqlite", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 4180, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "database_locked", - "kind": "literal", - "literal": { - "kind": "string", - "string": "database_locked" + "id": 4181, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 4182, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 4183, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4184, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 4185, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 4288, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 4182, + "name": "T", + "package": "@probitas-test/client-sql-sqlite", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 4186, + "name": "transaction", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4187, + "name": "transaction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a function within a transaction.\nAutomatically commits on success or rolls back on error." + } + ] + }, + "typeParameters": [ + { + "id": 4188, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 4189, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function to execute within transaction" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 4190, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 4191, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 4192, + "name": "tx", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4296, + "name": "SqlTransaction", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4188, + "name": "T", + "package": "@probitas-test/client-sql-sqlite", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 4193, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Transaction options" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 4294, + "name": "SqlTransactionOptions", + "package": "@probitas-test/client-sql" + }, + { + "type": "reference", + "target": 4202, + "name": "SqliteTransactionOptions", + "package": "@probitas-test/client-sql-sqlite" + } + ] + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4188, + "name": "T", + "package": "@probitas-test/client-sql-sqlite", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 4197, + "name": "vacuum", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4198, + "name": "vacuum", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Run VACUUM to rebuild the database file, reclaiming unused space." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] + }, + { + "id": 4231, + "name": "SqliteClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Configuration for creating a SQLite client." + } + ] + }, + "children": [ + { + "id": 4232, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Database file path.\nUse \":memory:\" for an in-memory database." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4233, + "name": "readonly", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Open the database in read-only mode." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 4238, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 4237, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 4235, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.\nCan be overridden per-query via SqlQueryOptions." } - }, - { - "repr": "readonly", - "kind": "literal", - "literal": { - "kind": "string", - "string": "readonly" + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] } - }, - { - "repr": "busy", - "kind": "literal", - "literal": { - "kind": "string", - "string": "busy" + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 4236, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } }, - "typeParams": [] - } + { + "id": 4234, + "name": "wal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Enable WAL (Write-Ahead Logging) mode.\nWAL mode provides better concurrency and performance." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\ntrue\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { + "id": 4246, "name": "SqliteErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 18, - "col": 0, - "byteIndex": 326 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SqliteError constructor." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "extendedCode", - "jsDoc": { - "doc": "SQLite extended error code." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 20, - "col": 2, - "byteIndex": 427 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for SqliteError constructor." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqliteError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 27, - "col": 0, - "byteIndex": 589 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for SQLite-specific errors.\nExtends SqlError with SQLite-specific properties like extendedCode." + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 4247, + "name": "extendedCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqliteErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteErrorOptions" - } - } + "kind": "text", + "text": "SQLite extended error code." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 31, - "col": 2, - "byteIndex": 720 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 28, - "col": 2, - "byteIndex": 635 - } + }, + { + "id": 4248, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "extendedCode", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 29, - "col": 2, - "byteIndex": 685 - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL State code (e.g., \"23505\" for unique violation)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 4315, + "name": "SqlErrorOptions.sqlState" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4314, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "DatabaseLockedError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 43, - "col": 0, - "byteIndex": 941 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when the database is locked." + "id": 4202, + "name": "SqliteTransactionOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQLite-specific transaction options." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 4204, + "name": "isolationLevel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqliteErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteErrorOptions" - } - } + "kind": "text", + "text": "Isolation level for the transaction" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1101 - } + ] + }, + "type": { + "type": "reference", + "target": 4293, + "name": "SqlIsolationLevel", + "package": "@probitas-test/client-sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 4295, + "name": "SqlTransactionOptions.isolationLevel" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 44, - "col": 2, - "byteIndex": 998 - } + }, + { + "id": 4203, + "name": "mode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "database_locked", - "kind": "literal", - "literal": { - "kind": "string", - "string": "database_locked" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Transaction behavior mode." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sqliteKind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 45, - "col": 2, - "byteIndex": 1048 - } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"deferred\"\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 4201, + "name": "SqliteTransactionMode", + "package": "@probitas-test/client-sql-sqlite" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqliteError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4294, + "name": "SqlTransactionOptions", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "ReadonlyDatabaseError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 55, - "col": 0, - "byteIndex": 1267 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when trying to write to a readonly database." + "id": 4288, + "name": "SqlQueryOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for individual SQL queries." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 4292, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqliteErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteErrorOptions" - } - } + "kind": "text", + "text": "Retry configuration." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 59, - "col": 2, - "byteIndex": 1424 - } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 56, - "col": 2, - "byteIndex": 1326 - } + }, + { + "id": 4291, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "readonly", - "kind": "literal", - "literal": { - "kind": "string", - "string": "readonly" + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sqliteKind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 57, - "col": 2, - "byteIndex": 1378 - } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqliteError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "BusyError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 67, - "col": 0, - "byteIndex": 1572 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when the database is busy." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 4289, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqliteErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqliteErrorOptions" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" } - } + ] } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 71, - "col": 2, - "byteIndex": 1701 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 68, - "col": 2, - "byteIndex": 1619 - } + }, + { + "id": 4290, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "busy", - "kind": "literal", - "literal": { - "kind": "string", - "string": "busy" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sqliteKind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 69, - "col": 2, - "byteIndex": 1659 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqliteError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "isConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 88, - "col": 0, - "byteIndex": 2097 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if an error is a connection-level error." + "id": 4386, + "name": "SqlQueryResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." + } + ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "children": [ + { + "id": 4396, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" } - ], - "returnType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "convertSqliteError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.6.0/errors.ts", - "line": 125, - "col": 0, - "byteIndex": 3122 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Convert a bun:sqlite error to the appropriate error class.\n\nClassification is based on SQLite's message text, which is stable across\ndrivers; the extended result code is kept for diagnostics." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + { + "id": 4390, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the SQL error." + } + ] + }, + "type": { + "type": "reference", + "target": 4316, + "name": "SqlError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" } - ], - "returnType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + }, + { + "id": 4395, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." + } + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "SqlQueryOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 7, - "col": 0, - "byteIndex": 165 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual SQL queries." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + { + "id": 4393, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No lastInsertId for failed queries." + } + ] + }, + "type": { + "type": "literal", + "value": null } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 13, - "col": 2, - "byteIndex": 443 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + }, + { + "id": 4389, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlIsolationLevel", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 19, - "col": 0, - "byteIndex": 519 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Transaction isolation level." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "read_uncommitted", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_uncommitted" + }, + { + "id": 4388, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the query." } - }, - { - "repr": "read_committed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_committed" + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4392, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Zero affected rows for failed queries." } - }, - { - "repr": "repeatable_read", - "kind": "literal", - "literal": { - "kind": "string", - "string": "repeatable_read" + ] + }, + "type": { + "type": "literal", + "value": 0 + } + }, + { + "id": 4391, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Empty rows for failed queries." } - }, - { - "repr": "serializable", - "kind": "literal", - "literal": { - "kind": "string", - "string": "serializable" + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" } } - ] + } }, - "typeParams": [] - } - }, - { - "name": "SqlTransactionOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 28, - "col": 0, - "byteIndex": 685 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for starting a transaction." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "isolationLevel", - "jsDoc": { - "doc": "Isolation level for the transaction" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 30, - "col": 2, - "byteIndex": 773 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "SqlIsolationLevel", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlIsolationLevel" + { + "id": 4394, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No warnings for failed queries." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": null } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlTransaction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 37, - "col": 0, - "byteIndex": 940 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a query within the transaction.", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, + }, + { + "id": 4404, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 4405, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" - }, + "id": 4406, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "kind": "param", - "name": "options", - "doc": "- Optional query options" + "id": 4407, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4408, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4409, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 4410, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4387, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 4381, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 45, - "col": 2, - "byteIndex": 1279 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4381, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4397, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 4398, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." } + ] + }, + "typeParameters": [ + { + "id": 4399, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "parameters": [ + { + "id": 4400, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4401, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 4402, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 4403, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4387, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 4374, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } } - ], - "typeName": "SqlQueryResult" + ] } } - ], - "typeName": "Promise" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4374, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - }, - "typeParams": [ + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } + } + ], + "typeParameters": [ + { + "id": 4387, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4387, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 4411, + "name": "SqlQueryResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." + } + ] + }, + "children": [ + { + "id": 4421, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "kind": "text", + "text": "Query execution duration in milliseconds." } ] }, - { - "name": "queryOne", - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, - { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" - }, - { - "kind": "param", - "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 58, - "col": 2, - "byteIndex": 1737 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" + } + }, + { + "id": 4415, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Error describing the failure." + } + ] + }, + "type": { + "type": "reference", + "target": 4360, + "name": "SqlFailureError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 4420, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " }, { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } + "kind": "code", + "text": "`\"sql\"`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] - } - ], - "typeName": "Promise" + "kind": "text", + "text": " for SQL query results." } - }, - "typeParams": [ + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" + } + }, + { + "id": 4418, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "kind": "text", + "text": "No lastInsertId (query didn't reach server)." } ] }, - { - "name": "commit", - "jsDoc": { - "doc": "Commit the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 67, - "col": 2, - "byteIndex": 1917 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4414, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "rollback", - "jsDoc": { - "doc": "Rollback the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 72, - "col": 2, - "byteIndex": 1988 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlErrorKind", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 140 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL-specific error kinds." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" - } - }, - { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" - } - }, - { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" - } - }, - { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" - } - }, - { - "repr": "unknown", - "kind": "literal", - "literal": { - "kind": "string", - "string": "unknown" - } - } - ] }, - "typeParams": [] - } - }, - { - "name": "SqlErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 20, - "col": 0, - "byteIndex": 289 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SqlError constructor." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } + { + "id": 4413, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server did not process the query." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "sqlState", - "jsDoc": { - "doc": "SQL State code (e.g., \"23505\" for unique violation)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 22, - "col": 2, - "byteIndex": 408 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 4417, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No row count (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 29, - "col": 0, - "byteIndex": 545 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 4416, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "No rows (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4419, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" + "kind": "text", + "text": "No warnings (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4429, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 4430, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." } - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" + "typeParameters": [ + { + "id": 4431, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 4432, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4433, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4434, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 4435, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4412, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 4381, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } } } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4381, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 34, - "col": 2, - "byteIndex": 715 } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 30, - "col": 2, - "byteIndex": 591 - } - }, - { - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 31, - "col": 2, - "byteIndex": 638 - } + }, + { + "id": 4422, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "signatures": [ + { + "id": 4423, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "id": 4424, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 4425, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4426, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 4427, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 4428, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4412, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 4374, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sqlState", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 32, - "col": 2, - "byteIndex": 678 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "QuerySyntaxError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 48, - "col": 0, - "byteIndex": 981 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a SQL query has syntax errors." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4374, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 52, - "col": 2, - "byteIndex": 1125 } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 49, - "col": 2, - "byteIndex": 1032 - } + } + ], + "typeParameters": [ + { + "id": 4412, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" }, - { - "tsType": { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 50, - "col": 2, - "byteIndex": 1079 + "typeArguments": [ + { + "type": "reference", + "target": 4412, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "ConstraintError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 60, - "col": 0, - "byteIndex": 1288 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a constraint violation occurs." + "id": 4361, + "name": "SqlQueryResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "constraint", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 4371, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "Query execution duration in milliseconds." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 65, - "col": 2, - "byteIndex": 1466 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 4396, + "name": "SqlQueryResultBase.duration", + "package": "@probitas-test/client-sql" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 61, - "col": 2, - "byteIndex": 1338 - } + }, + { + "id": 4365, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" + "comment": { + "summary": [ + { + "kind": "text", + "text": "No error for successful queries." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 62, - "col": 2, - "byteIndex": 1384 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "constraint", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 63, - "col": 2, - "byteIndex": 1434 - } + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "DeadlockError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 74, - "col": 0, - "byteIndex": 1681 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a deadlock is detected." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 4370, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Result kind discriminator. Always " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 78, - "col": 2, - "byteIndex": 1822 - } + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": 4395, + "name": "SqlQueryResultBase.kind", + "package": "@probitas-test/client-sql" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 75, - "col": 2, - "byteIndex": 1729 - } + }, + { + "id": 4368, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Last inserted ID (for INSERT statements)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1773 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqlConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 94, - "col": 0, - "byteIndex": 2195 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "type": "intrinsic", + "name": "bigint" + }, + { + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 98, - "col": 2, - "byteIndex": 2348 - } + ] } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 95, - "col": 2, - "byteIndex": 2248 - } + }, + { + "id": 4364, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query succeeded." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 96, - "col": 2, - "byteIndex": 2297 - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqlOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 107, - "col": 0, - "byteIndex": 2597 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "QuerySyntaxError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QuerySyntaxError" - } - }, - { - "repr": "ConstraintError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConstraintError" - } - }, - { - "repr": "DeadlockError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DeadlockError" - } - }, - { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - } - ] }, - "typeParams": [] - } - }, - { - "name": "SqlFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 117, - "col": 0, - "byteIndex": 2845 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlConnectionError" - } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" - } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + { + "id": 4363, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the query." } - } - ] + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } }, - "typeParams": [] - } - }, - { - "name": "SqlQueryResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 44, - "col": 0, - "byteIndex": 1310 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultBase" - } + { + "id": 4367, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of affected rows." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 46, - "col": 2, - "byteIndex": 1429 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 4366, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query result rows." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "jsDoc": { - "doc": "Query succeeded." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 49, - "col": 2, - "byteIndex": 1484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4362, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true } - }, - "typeParams": [] + } + } + }, + { + "id": 4369, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "error", - "jsDoc": { - "doc": "No error for successful queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 52, - "col": 2, - "byteIndex": 1548 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Warning messages from the database." + } + ] }, - { - "name": "rows", - "jsDoc": { - "doc": "Query result rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 55, - "col": 2, - "byteIndex": 1601 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } } + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 58, - "col": 2, - "byteIndex": 1667 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ] + } + }, + { + "id": 4379, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 61, - "col": 2, - "byteIndex": 1748 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "signatures": [ + { + "id": 4380, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 4381, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "typeParams": [] - }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 64, - "col": 2, - "byteIndex": 1843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "parameters": [ { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 4382, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4383, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 4384, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 4385, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4362, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 4381, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } } - } + ] } } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4381, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - ] - } - }, - { - "name": "SqlQueryResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 73, - "col": 0, - "byteIndex": 2182 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 4372, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 4373, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 4374, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 4375, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 4376, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 4377, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 4378, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 4362, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 4374, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } } } ], - "typeName": "SqlQueryResultBase" + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4374, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 75, - "col": 2, - "byteIndex": 2299 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + } + ], + "typeParameters": [ + { + "id": 4362, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 78, - "col": 2, - "byteIndex": 2351 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "typeArguments": [ + { + "type": "reference", + "target": 4362, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 4438, + "name": "SqlQueryResultSuccessParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating a SqlQueryResultSuccess." + } + ] + }, + "children": [ + { + "id": 4442, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the SQL error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 81, - "col": 2, - "byteIndex": 2415 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds" } - }, - "typeParams": [] + ] }, - { - "name": "rows", - "jsDoc": { - "doc": "Empty rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 84, - "col": 2, - "byteIndex": 2484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4443, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Last inserted ID (for INSERT statements)" } - }, - "typeParams": [] + ] }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Zero affected rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 87, - "col": 2, - "byteIndex": 2568 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "bigint" } - }, - "typeParams": [] + ] + } + }, + { + "id": 4441, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 90, - "col": 2, - "byteIndex": 2638 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of affected rows (for INSERT/UPDATE/DELETE)" + } + ] }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 93, - "col": 2, - "byteIndex": 2711 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "SqlQueryResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 103, - "col": 0, - "byteIndex": 3071 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultBase" - } + "type": { + "type": "intrinsic", + "name": "number" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server did not process the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 105, - "col": 2, - "byteIndex": 3196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + }, + { + "id": 4440, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 108, - "col": 2, - "byteIndex": 3249 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "The result rows" } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the failure." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 111, - "col": 2, - "byteIndex": 3311 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4439, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccessParams.T", + "refersToTypeParameter": true } - }, - "typeParams": [] - }, - { - "name": "rows", - "jsDoc": { - "doc": "No rows (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 114, - "col": 2, - "byteIndex": 3393 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "No row count (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 117, - "col": 2, - "byteIndex": 3468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + } + } + }, + { + "id": 4444, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 120, - "col": 2, - "byteIndex": 3550 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Warning messages from the database" + } + ] }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 123, - "col": 2, - "byteIndex": 3632 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } } - ] - } + } + ], + "typeParameters": [ + { + "id": 4439, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ] }, { - "name": "SqlQueryResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 164, - "col": 0, - "byteIndex": 5113 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result union type representing all possible result states.\n\n- **Success**: `processed: true, ok: true, error: null`\n- **Error**: `processed: true, ok: false, error: SqlError`\n- **Failure**: `processed: false, ok: false, error: SqlConnectionError`\n", - "tags": [ - { - "kind": "example", - "doc": "Type narrowing by ok\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```\n" - }, - { - "kind": "example", - "doc": "Type narrowing by processed\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + "id": 4296, + "name": "SqlTransaction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "children": [ + { + "id": 4309, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4310, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Commit the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 4297, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 4298, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "kind": "text", + "text": "Execute a query within the transaction." + } + ] + }, + "typeParameters": [ + { + "id": 4299, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 4300, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4301, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } + }, + { + "id": 4302, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 4288, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4436, + "typeArguments": [ + { + "type": "reference", + "target": 4299, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } ], - "typeName": "SqlQueryResultSuccess" + "name": "Promise", + "package": "typescript" } - }, + } + ] + }, + { + "id": 4303, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 4304, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 4305, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 4306, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4307, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } + }, + { + "id": 4308, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 4288, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 4305, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } ], - "typeName": "SqlQueryResultError" + "name": "Promise", + "package": "typescript" } - }, + } + ] + }, + { + "id": 4311, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 4312, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Rollback the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" } ], - "typeName": "SqlQueryResultFailure" + "name": "Promise", + "package": "typescript" } } ] - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + } + ], + "implementedBy": [ + { + "type": "reference", + "target": 4205, + "name": "SqliteTransactionImpl" + } + ] + }, + { + "id": 4294, + "name": "SqlTransactionOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for starting a transaction." } ] - } + }, + "children": [ + { + "id": 4295, + "name": "isolationLevel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Isolation level for the transaction" + } + ] + }, + "type": { + "type": "reference", + "target": 4293, + "name": "SqlIsolationLevel", + "package": "@probitas-test/client-sql" + } + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 4202, + "name": "SqliteTransactionOptions" + } + ] }, { - "name": "SqlQueryResultSuccessParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 173, - "col": 0, - "byteIndex": 5415 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a SqlQueryResultSuccess." + "id": 4313, + "name": "SqlErrorKind", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL-specific error kinds." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + "type": { + "type": "union", + "types": [ { - "name": "rows", - "jsDoc": { - "doc": "The result rows" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 175, - "col": 2, - "byteIndex": 5498 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - }, - "typeParams": [] + "type": "literal", + "value": "query" }, { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows (for INSERT/UPDATE/DELETE)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 178, - "col": 2, - "byteIndex": 5590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": "literal", + "value": "constraint" }, { - "name": "duration", - "jsDoc": { - "doc": "Query execution duration in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 181, - "col": 2, - "byteIndex": 5670 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": "literal", + "value": "deadlock" }, { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 184, - "col": 2, - "byteIndex": 5750 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ] - }, - "typeParams": [] + "type": "literal", + "value": "connection" }, { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 187, - "col": 2, - "byteIndex": 5838 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "type": "literal", + "value": "unknown" } ] } }, { - "name": "SqlQueryResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 194, - "col": 0, - "byteIndex": 5945 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultSuccess.", - "tags": [ - { - "kind": "internal" + "id": 4360, + "name": "SqlFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "SqlQueryResultSuccessParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccessParams" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 205, - "col": 2, - "byteIndex": 6343 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 195, - "col": 2, - "byteIndex": 6027 - } + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 4351, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 196, - "col": 2, - "byteIndex": 6061 - } + "name": "AbortError", + "package": "@probitas-test/client" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 197, - "col": 2, - "byteIndex": 6099 - } - }, + "name": "TimeoutError", + "package": "@probitas-test/client" + } + ] + } + }, + { + "id": 4293, + "name": "SqlIsolationLevel", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Transaction isolation level." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 198, - "col": 2, - "byteIndex": 6130 - } + "type": "literal", + "value": "read_uncommitted" }, { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 199, - "col": 2, - "byteIndex": 6155 - } + "type": "literal", + "value": "read_committed" }, { - "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.5.1/result.ts", - "line": 200, - "col": 2, - "byteIndex": 6186 - } + "type": "literal", + "value": "repeatable_read" }, { - "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.5.1/result.ts", - "line": 201, - "col": 2, - "byteIndex": 6215 - } + "type": "literal", + "value": "serializable" + } + ] + } + }, + { + "id": 4245, + "name": "SqliteErrorKind", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQLite-specific error kinds." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "database_locked" }, { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 202, - "col": 2, - "byteIndex": 6244 - } + "type": "literal", + "value": "readonly" }, { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 203, - "col": 2, - "byteIndex": 6293 - } + "type": "literal", + "value": "busy" } - ], - "indexSignatures": [], - "methods": [ + ] + } + }, + { + "id": 4201, + "name": "SqliteTransactionMode", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQLite transaction behavior mode.\n\n- \"deferred\": Locks are acquired on first read/write (default)\n- \"immediate\": Acquires RESERVED lock immediately\n- \"exclusive\": Acquires EXCLUSIVE lock immediately" + } + ] + }, + "type": { + "type": "union", + "types": [ { - "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.5.1/result.ts", - "line": 213, - "col": 2, - "byteIndex": 6605 - } + "type": "literal", + "value": "deferred" }, { - "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.5.1/result.ts", - "line": 221, - "col": 2, - "byteIndex": 6769 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccess" - } - } - ], - "typeParams": [ + "type": "literal", + "value": "immediate" + }, { - "name": "T" + "type": "literal", + "value": "exclusive" } - ], - "superTypeParams": [] + ] } }, { - "name": "SqlQueryResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 234, - "col": 0, - "byteIndex": 6999 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultError.", - "tags": [ - { - "kind": "internal" + "id": 4359, + "name": "SqlOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 245, - "col": 2, - "byteIndex": 7373 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 235, - "col": 2, - "byteIndex": 7077 - } + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 4325, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 236, - "col": 2, - "byteIndex": 7111 - } + "type": "reference", + "target": 4333, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 7149 - } + "type": "reference", + "target": 4343, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 238, - "col": 2, - "byteIndex": 7181 - } + "type": "reference", + "target": 4316, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 4436, + "name": "SqlQueryResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result union type representing all possible result states.\n\n- **Success**: " }, { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 239, - "col": 2, - "byteIndex": 7209 - } + "kind": "code", + "text": "`processed: true, ok: true, error: null`" }, { - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 240, - "col": 2, - "byteIndex": 7249 - } + "kind": "text", + "text": "\n- **Error**: " }, { - "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.5.1/result.ts", - "line": 241, - "col": 2, - "byteIndex": 7283 - } + "kind": "code", + "text": "`processed: true, ok: false, error: SqlError`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 242, - "col": 2, - "byteIndex": 7312 - } + "kind": "text", + "text": "\n- **Failure**: " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 243, - "col": 2, - "byteIndex": 7344 - } + "kind": "code", + "text": "`processed: false, ok: false, error: SqlConnectionError`" } ], - "indexSignatures": [], - "methods": [ + "blockTags": [ { - "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.5.1/result.ts", - "line": 250, - "col": 2, - "byteIndex": 7483 - } + "tag": "@example", + "name": "Type narrowing by ok", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```" + } + ] }, { - "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.5.1/result.ts", - "line": 254, - "col": 2, - "byteIndex": 7543 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultError" - } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } - }, - { - "name": "SqlQueryResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 263, - "col": 0, - "byteIndex": 7669 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultFailure.", - "tags": [ - { - "kind": "internal" + "tag": "@example", + "name": "Type narrowing by processed", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + } + ] } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" - } - } - }, + "typeParameters": [ + { + "id": 4437, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 4361, + "typeArguments": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "reference", + "target": 4437, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 274, - "col": 2, - "byteIndex": 8033 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 264, - "col": 2, - "byteIndex": 7751 - } + "name": "SqlQueryResultSuccess", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": "reference", + "target": 4386, + "typeArguments": [ + { + "type": "reference", + "target": 4437, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 265, - "col": 2, - "byteIndex": 7785 - } + ], + "name": "SqlQueryResultError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": "reference", + "target": 4411, + "typeArguments": [ + { + "type": "reference", + "target": 4437, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 266, - "col": 2, - "byteIndex": 7824 - } - }, - { - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" + ], + "name": "SqlQueryResultFailure", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 4242, + "name": "convertSqliteError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 4243, + "name": "convertSqliteError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert a bun:sqlite error to the appropriate error class.\n\nClassification is based on SQLite's message text, which is stable across\ndrivers; the extended result code is kept for diagnostics." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 267, - "col": 2, - "byteIndex": 7856 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 268, - "col": 2, - "byteIndex": 7891 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 269, - "col": 2, - "byteIndex": 7915 - } - }, - { - "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.5.1/result.ts", - "line": 270, - "col": 2, - "byteIndex": 7943 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 271, - "col": 2, - "byteIndex": 7972 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 272, - "col": 2, - "byteIndex": 8004 + "parameters": [ + { + "id": 4244, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "reference", + "target": 4316, + "name": "SqlError", + "package": "@probitas-test/client-sql" } - ], - "indexSignatures": [], - "methods": [ - { - "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": [] - } + } + ] + }, + { + "id": 4168, + "name": "createSqliteClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 4169, + "name": "createSqliteClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new SQLite client instance.\n\nThe client provides parameterized queries, transaction support,\nWAL mode for better concurrency, and SQLite-specific features like backup and vacuum." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new SQLite client instance" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + }, + { + "tag": "@example", + "name": "Using file-based database", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\n\nconst client = await createSqliteClient({\n path: \"./data.db\",\n});\n\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT * FROM users WHERE id = ?\",\n [1],\n);\nif (result.ok) {\n console.log(result.rows[0]); // { id: 1, name: \"Alice\" }\n}\n\nawait client.close();\n```" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 279, - "col": 2, - "byteIndex": 8150 - } - }, - { - "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": [] - } + { + "tag": "@example", + "name": "Using in-memory database", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\n\nconst client = await createSqliteClient({\n path: \":memory:\",\n});\nawait client.close();\n```" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + }, + { + "tag": "@example", + "name": "Transaction with auto-commit/rollback", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\nimport type { SqlTransaction } from \"@probitas-test/client-sql\";\n\nconst client = await createSqliteClient({ path: \":memory:\" });\nconst user = await client.transaction(async (tx: SqlTransaction) => {\n await tx.query(\"INSERT INTO users (name) VALUES (?)\", [\"Alice\"]);\n const result = await tx.query<{ id: number }>(\"SELECT last_insert_rowid() as id\");\n if (!result.ok) throw result.error;\n return result.rows[0];\n});\nawait client.close();\n```" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 283, - "col": 2, - "byteIndex": 8210 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + { + "tag": "@example", + "name": "Database backup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\n\nconst client = await createSqliteClient({ path: \"./data.db\" });\nawait client.backup(\"./backup.db\");\nawait client.close();\n```" } - } - ], - "typeName": "SqlQueryResultFailure" + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqliteClient } from \"@probitas-test/client-sql-sqlite\";\n\nawait using client = await createSqliteClient({ path: \"./data.db\" });\n\nconst result = await client.query(\"SELECT 1\");\n// Client automatically closed when scope exits\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 4170, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQLite client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 4231, + "name": "SqliteClientConfig", + "package": "@probitas-test/client-sql-sqlite" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4171, + "name": "SqliteClient", + "package": "@probitas-test/client-sql-sqlite" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "typeParams": [ - { - "name": "T" + } + ] + }, + { + "id": 4239, + "name": "isConnectionError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 4240, + "name": "isConnectionError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if an error is a connection-level error." + } + ] + }, + "parameters": [ + { + "id": 4241, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "superTypeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-sql-sqlite", + "packageVersion": "0.6.1" } diff --git a/data/api/client-sql.json b/data/api/client-sql.json index 2edc52e..9e5fccc 100644 --- a/data/api/client-sql.json +++ b/data/api/client-sql.json @@ -1,3655 +1,3573 @@ { - "name": "client-sql", - "specifier": "@probitas/client-sql", - "version": "0.5.1", - "moduleDoc": "Common SQL types and utilities for [Probitas](https://github.com/probitas-test/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\n// Example of SQL error handling (requires database-specific client)\nimport {\n SqlQueryResult,\n SqlError,\n ConstraintError,\n} from \"@probitas-test/client-sql\";\nimport type { SqlTransaction, SqlIsolationLevel } from \"@probitas-test/client-sql\";\n\n// Error types are available for use with database-specific clients\nconst isolationLevel: SqlIsolationLevel = \"read_committed\";\nconsole.log(\"Isolation level:\", isolationLevel);\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n", - "exports": [ - { - "name": "SqlQueryOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 7, - "col": 0, - "byteIndex": 165 + "schemaVersion": "2.0", + "id": 2806, + "name": "@probitas-test/client-sql", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Common SQL types and utilities for [Probitas](https://github.com/probitas-test/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**: " }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual SQL queries." + { + "kind": "code", + "text": "`SqlQueryResult`" }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 13, - "col": 2, - "byteIndex": 443 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlIsolationLevel", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 19, - "col": 0, - "byteIndex": 519 + { + "kind": "text", + "text": " class with row iteration and metadata\n- **Transactions**: Common transaction interface with isolation levels\n- **Error Hierarchy**: SQL-specific errors (" }, - "declarationKind": "export", - "jsDoc": { - "doc": "Transaction isolation level." + { + "kind": "code", + "text": "`SqlError`" }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "read_uncommitted", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_uncommitted" - } - }, - { - "repr": "read_committed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_committed" - } - }, - { - "repr": "repeatable_read", - "kind": "literal", - "literal": { - "kind": "string", - "string": "repeatable_read" - } - }, - { - "repr": "serializable", - "kind": "literal", - "literal": { - "kind": "string", - "string": "serializable" - } - } - ] - }, - "typeParams": [] - } - }, - { - "name": "SqlTransactionOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 28, - "col": 0, - "byteIndex": 685 + { + "kind": "text", + "text": ", " }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for starting a transaction." + { + "kind": "code", + "text": "`QuerySyntaxError`" }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "isolationLevel", - "jsDoc": { - "doc": "Isolation level for the transaction" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 30, - "col": 2, - "byteIndex": 773 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "SqlIsolationLevel", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlIsolationLevel" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`ConstraintError`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`DeadlockError`" + }, + { + "kind": "text", + "text": ")\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-sql\n```" + }, + { + "kind": "text", + "text": "\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" + }, + { + "kind": "code", + "text": "```ts\n// Example of SQL error handling (requires database-specific client)\nimport {\n SqlQueryResult,\n SqlError,\n ConstraintError,\n} from \"@probitas-test/client-sql\";\nimport type { SqlTransaction, SqlIsolationLevel } from \"@probitas-test/client-sql\";\n\n// Error types are available for use with database-specific clients\nconst isolationLevel: SqlIsolationLevel = \"read_committed\";\nconsole.log(\"Isolation level:\", isolationLevel);\n```" + }, + { + "kind": "text", + "text": "\n\n## Database-Specific Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-postgres`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-postgres) | PostgreSQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-mysql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-mysql) | MySQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-sqlite`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-sqlite) | SQLite client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-duckdb`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)" } - }, + ] + }, + "children": [ { - "name": "SqlTransaction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 37, - "col": 0, - "byteIndex": 940 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." + "id": 2852, + "name": "ConstraintError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a constraint violation occurs." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a query within the transaction.", - "tags": [ + "children": [ + { + "id": 2853, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2854, + "name": "ConstraintError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" + "id": 2855, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" + "id": 2856, + "name": "constraint", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 2857, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 45, - "col": 2, - "byteIndex": 1279 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2833, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } + ], + "type": { + "type": "reference", + "target": 2852, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } - } - ], - "typeName": "Promise" + "overwrites": { + "type": "reference", + "target": 2837, + "name": "SqlError.constructor" } - }, - "typeParams": [ + } + ], + "overwrites": { + "type": "reference", + "target": 2836, + "name": "SqlError.constructor" + } + }, + { + "id": 2860, + "name": "constraint", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2859, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "constraint" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 2842, + "name": "SqlError.kind" + } + }, + { + "id": 2858, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "ConstraintError" + }, + "defaultValue": "\"ConstraintError\"", + "overwrites": { + "type": "reference", + "target": 2841, + "name": "SqlError.name" + } + }, + { + "id": 2861, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } ] }, - { - "name": "queryOne", - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, + "inheritedFrom": { + "type": "reference", + "target": 2843, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 2835, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 2862, + "name": "DeadlockError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a deadlock is detected." + } + ] + }, + "children": [ + { + "id": 2863, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2864, + "name": "DeadlockError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" + "id": 2865, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 2866, "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 58, - "col": 2, - "byteIndex": 1737 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2833, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } + ], + "type": { + "type": "reference", + "target": 2862, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] - } - ], - "typeName": "Promise" + "overwrites": { + "type": "reference", + "target": 2837, + "name": "SqlError.constructor" } - }, - "typeParams": [ + } + ], + "overwrites": { + "type": "reference", + "target": 2836, + "name": "SqlError.constructor" + } + }, + { + "id": 2868, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "deadlock" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 2842, + "name": "SqlError.kind" + } + }, + { + "id": 2867, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "DeadlockError" + }, + "defaultValue": "\"DeadlockError\"", + "overwrites": { + "type": "reference", + "target": 2841, + "name": "SqlError.name" + } + }, + { + "id": 2869, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } ] }, - { - "name": "commit", - "jsDoc": { - "doc": "Commit the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 67, - "col": 2, - "byteIndex": 1917 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "rollback", - "jsDoc": { - "doc": "Rollback the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 72, - "col": 2, - "byteIndex": 1988 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 2843, + "name": "SqlError.sqlState" } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 2835, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlErrorKind", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 140 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL-specific error kinds." + "id": 2844, + "name": "QuerySyntaxError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a SQL query has syntax errors." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" - } - }, - { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" - } - }, - { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" - } - }, - { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" - } - }, + "children": [ + { + "id": 2845, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "unknown", - "kind": "literal", - "literal": { - "kind": "string", - "string": "unknown" + "id": 2846, + "name": "QuerySyntaxError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 2847, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2848, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2833, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": 2844, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 2837, + "name": "SqlError.constructor" } } - ] + ], + "overwrites": { + "type": "reference", + "target": 2836, + "name": "SqlError.constructor" + } }, - "typeParams": [] - } - }, - { - "name": "SqlErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 20, - "col": 0, - "byteIndex": 289 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SqlError constructor." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } + { + "id": 2850, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "query" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 2842, + "name": "SqlError.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "sqlState", - "jsDoc": { - "doc": "SQL State code (e.g., \"23505\" for unique violation)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 22, - "col": 2, - "byteIndex": 408 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 2849, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "QuerySyntaxError" + }, + "defaultValue": "\"QuerySyntaxError\"", + "overwrites": { + "type": "reference", + "target": 2841, + "name": "SqlError.name" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqlError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 29, - "col": 0, - "byteIndex": 545 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + }, + { + "id": 2851, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" - } - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 34, - "col": 2, - "byteIndex": 715 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 30, - "col": 2, - "byteIndex": 591 - } - }, - { - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 31, - "col": 2, - "byteIndex": 638 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sqlState", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 32, - "col": 2, - "byteIndex": 678 - } + "inheritedFrom": { + "type": "reference", + "target": 2843, + "name": "SqlError.sqlState" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 2835, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "QuerySyntaxError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 48, - "col": 0, - "byteIndex": 981 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a SQL query has syntax errors." + "id": 2870, + "name": "SqlConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" + "children": [ + { + "id": 2871, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2872, + "name": "SqlConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 2873, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2874, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2833, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } + ], + "type": { + "type": "reference", + "target": 2870, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 2837, + "name": "SqlError.constructor" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 52, - "col": 2, - "byteIndex": 1125 } + ], + "overwrites": { + "type": "reference", + "target": 2836, + "name": "SqlError.constructor" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 49, - "col": 2, - "byteIndex": 1032 - } + }, + { + "id": 2876, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" + "type": { + "type": "literal", + "value": "connection" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 2842, + "name": "SqlError.kind" + } + }, + { + "id": 2875, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqlConnectionError" + }, + "defaultValue": "\"SqlConnectionError\"", + "overwrites": { + "type": "reference", + "target": 2841, + "name": "SqlError.name" + } + }, + { + "id": 2877, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 50, - "col": 2, - "byteIndex": 1079 - } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 2843, + "name": "SqlError.sqlState" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 2835, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "ConstraintError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 60, - "col": 0, - "byteIndex": 1288 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a constraint violation occurs." + "id": 2835, + "name": "SqlError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "children": [ + { + "id": 2836, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2837, + "name": "SqlError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 2838, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2839, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 2832, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 2840, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 2833, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } } + ], + "type": { + "type": "reference", + "target": 2835, + "name": "SqlError", + "package": "@probitas-test/client-sql" }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 2842, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 2832, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 2841, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"SqlError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + }, + { + "id": 2843, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "constraint", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 65, - "col": 2, - "byteIndex": 1466 - } + ] } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 61, - "col": 2, - "byteIndex": 1338 - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" }, - { - "tsType": { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 2844, + "name": "QuerySyntaxError" + }, + { + "type": "reference", + "target": 2852, + "name": "ConstraintError" + }, + { + "type": "reference", + "target": 2862, + "name": "DeadlockError" + }, + { + "type": "reference", + "target": 2870, + "name": "SqlConnectionError" + } + ] + }, + { + "id": 2833, + "name": "SqlErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for SqlError constructor." + } + ] + }, + "children": [ + { + "id": 2834, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL State code (e.g., \"23505\" for unique violation)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 62, - "col": 2, - "byteIndex": 1384 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "constraint", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 63, - "col": 2, - "byteIndex": 1434 - } + "type": { + "type": "intrinsic", + "name": "string" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ] }, { - "name": "DeadlockError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 74, - "col": 0, - "byteIndex": 1681 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a deadlock is detected." + "id": 2807, + "name": "SqlQueryOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for individual SQL queries." + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "children": [ + { + "id": 2811, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "Retry configuration." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 78, - "col": 2, - "byteIndex": 1822 - } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 75, - "col": 2, - "byteIndex": 1729 - } + }, + { + "id": 2810, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1773 - } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqlConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 94, - "col": 0, - "byteIndex": 2195 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + }, + { + "id": 2808, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" - } - } + "kind": "text", + "text": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure." } ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 98, - "col": 2, - "byteIndex": 2348 - } + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 95, - "col": 2, - "byteIndex": 2248 - } + }, + { + "id": 2809, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 96, - "col": 2, - "byteIndex": 2297 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "SqlOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 107, - "col": 0, - "byteIndex": 2597 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." + "id": 2905, + "name": "SqlQueryResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "QuerySyntaxError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QuerySyntaxError" - } - }, - { - "repr": "ConstraintError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConstraintError" + "children": [ + { + "id": 2915, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." } - }, - { - "repr": "DeadlockError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DeadlockError" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" + } + }, + { + "id": 2909, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the SQL error." } - }, - { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + ] + }, + "type": { + "type": "reference", + "target": 2835, + "name": "SqlError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 2914, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." } - } - ] + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" + } }, - "typeParams": [] - } - }, - { - "name": "SqlFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 117, - "col": 0, - "byteIndex": 2845 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlConnectionError" + { + "id": 2912, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No lastInsertId for failed queries." } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 2908, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 2907, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the query." } - } - ] + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } }, - "typeParams": [] - } - }, - { - "name": "SqlQueryResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 44, - "col": 0, - "byteIndex": 1310 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 46, - "col": 2, - "byteIndex": 1429 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + { + "id": 2911, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Zero affected rows for failed queries." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "jsDoc": { - "doc": "Query succeeded." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 49, - "col": 2, - "byteIndex": 1484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": 0 + } + }, + { + "id": 2910, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Empty rows for failed queries." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "No error for successful queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 52, - "col": 2, - "byteIndex": 1548 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + } + } + }, + { + "id": 2913, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "rows", - "jsDoc": { - "doc": "Query result rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 55, - "col": 2, - "byteIndex": 1601 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "No warnings for failed queries." } - }, - "typeParams": [] + ] }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 58, - "col": 2, - "byteIndex": 1667 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 2923, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 61, - "col": 2, - "byteIndex": 1748 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, + "signatures": [ + { + "id": 2924, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "id": 2925, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 2926, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 2927, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2928, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 2929, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 2906, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 2900, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } } - ] - }, - "typeParams": [] + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 2900, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 2916, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 64, - "col": 2, - "byteIndex": 1843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "signatures": [ + { + "id": 2917, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 2918, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 2919, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 2920, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 2921, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2922, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 2906, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 2893, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } } - } + ] } } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] - }, - "typeParams": [] + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 2893, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + } + ], + "typeParameters": [ + { + "id": 2906, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "result.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2906, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlQueryResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 73, - "col": 0, - "byteIndex": 2182 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." + "id": 2930, + "name": "SqlQueryResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultBase" - } + "children": [ + { + "id": 2940, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 75, - "col": 2, - "byteIndex": 2299 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 2934, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the failure." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 78, - "col": 2, - "byteIndex": 2351 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "reference", + "target": 2879, + "name": "SqlFailureError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 2939, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the SQL error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 81, - "col": 2, - "byteIndex": 2415 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" + } + }, + { + "id": 2937, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No lastInsertId (query didn't reach server)." } - }, - "typeParams": [] + ] }, - { - "name": "rows", - "jsDoc": { - "doc": "Empty rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 84, - "col": 2, - "byteIndex": 2484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 2933, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." } - }, - "typeParams": [] + ] }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Zero affected rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 87, - "col": 2, - "byteIndex": 2568 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 2932, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server did not process the query." } - }, - "typeParams": [] + ] }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 90, - "col": 2, - "byteIndex": 2638 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 93, - "col": 2, - "byteIndex": 2711 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 2936, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No row count (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null } - ] - } - }, - { - "name": "SqlQueryResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 103, - "col": 0, - "byteIndex": 3071 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 2935, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No rows (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 2938, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No warnings (query didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 2948, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 2949, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 2950, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 2951, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 2952, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2953, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 2954, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 2931, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 2900, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } } } ], - "typeName": "SqlQueryResultBase" - } + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 2900, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server did not process the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 105, - "col": 2, - "byteIndex": 3196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 2941, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 2942, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 2943, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 2944, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 2945, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 2946, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2947, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 2931, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 2893, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 2893, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } + } + ], + "typeParameters": [ + { + "id": 2931, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "result.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2931, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 2880, + "name": "SqlQueryResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." + } + ] + }, + "children": [ + { + "id": 2890, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 108, - "col": 2, - "byteIndex": 3249 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 2915, + "name": "SqlQueryResultBase.duration", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 2884, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No error for successful queries." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the failure." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 111, - "col": 2, - "byteIndex": 3311 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 2889, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." } - }, - "typeParams": [] + ] }, - { - "name": "rows", - "jsDoc": { - "doc": "No rows (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 114, - "col": 2, - "byteIndex": 3393 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sql" }, - { - "name": "rowCount", - "jsDoc": { - "doc": "No row count (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 117, - "col": 2, - "byteIndex": 3468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 2914, + "name": "SqlQueryResultBase.kind", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 2887, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 120, - "col": 2, - "byteIndex": 3550 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Last inserted ID (for INSERT statements)." + } + ] }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 123, - "col": 2, - "byteIndex": 3632 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "bigint" + }, + { + "type": "literal", + "value": null + } + ] } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 2883, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query succeeded." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" } - ] - } - }, - { - "name": "SqlQueryResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 164, - "col": 0, - "byteIndex": 5113 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result union type representing all possible result states.\n\n- **Success**: `processed: true, ok: true, error: null`\n- **Error**: `processed: true, ok: false, error: SqlError`\n- **Failure**: `processed: false, ok: false, error: SqlConnectionError`\n", - "tags": [ - { - "kind": "example", - "doc": "Type narrowing by ok\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```\n" + }, + { + "id": 2882, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "kind": "example", - "doc": "Type narrowing by processed\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the query." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" } - ] - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccess" + }, + { + "id": 2886, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of affected rows." } - }, - { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultError" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 2885, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query result rows." } - }, - { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultFailure" + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 2881, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true } } - ] - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } } - ] - } - }, - { - "name": "SqlQueryResultSuccessParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 173, - "col": 0, - "byteIndex": 5415 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a SqlQueryResultSuccess." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "rows", - "jsDoc": { - "doc": "The result rows" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 175, - "col": 2, - "byteIndex": 5498 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { + }, + { + "id": 2888, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Warning messages from the database." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 2898, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 2899, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 2900, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 2901, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 2902, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 2903, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 2904, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 2881, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 2900, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] } } } - } - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows (for INSERT/UPDATE/DELETE)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 178, - "col": 2, - "byteIndex": 5590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "duration", - "jsDoc": { - "doc": "Query execution duration in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 181, - "col": 2, - "byteIndex": 5670 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 2900, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 2891, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 184, - "col": 2, - "byteIndex": 5750 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, + "signatures": [ + { + "id": 2892, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 2893, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "typeParams": [] - }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 187, - "col": 2, - "byteIndex": 5838 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ], + "parameters": [ + { + "id": 2894, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 2895, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 2896, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 2897, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 2881, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 2893, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } } } - } - }, - "typeParams": [] + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 2893, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + } + ], + "typeParameters": [ + { + "id": 2881, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "result.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2881, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqlQueryResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 194, - "col": 0, - "byteIndex": 5945 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultSuccess.", - "tags": [ - { - "kind": "internal" + "id": 2957, + "name": "SqlQueryResultSuccessParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating a SqlQueryResultSuccess." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "SqlQueryResultSuccessParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccessParams" - } - } + "children": [ + { + "id": 2961, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 205, - "col": 2, - "byteIndex": 6343 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" + }, + { + "id": 2962, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Last inserted ID (for INSERT statements)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 195, - "col": 2, - "byteIndex": 6027 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "bigint" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 196, - "col": 2, - "byteIndex": 6061 - } + ] + } + }, + { + "id": 2960, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of affected rows (for INSERT/UPDATE/DELETE)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 197, - "col": 2, - "byteIndex": 6099 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 198, - "col": 2, - "byteIndex": 6130 - } + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 2959, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "The result rows" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 199, - "col": 2, - "byteIndex": 6155 - } + ] }, - { - "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.5.1/result.ts", - "line": 200, - "col": 2, - "byteIndex": 6186 + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 2958, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccessParams.T", + "refersToTypeParameter": true + } } + } + }, + { + "id": 2963, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "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.5.1/result.ts", - "line": 201, - "col": 2, - "byteIndex": 6215 - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Warning messages from the database" + } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ], + "typeParameters": [ + { + "id": 2958, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 2815, + "name": "SqlTransaction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." + } + ] + }, + "children": [ + { + "id": 2828, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2829, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Commit the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 2816, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2817, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query within the transaction." + } + ] + }, + "typeParameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 2818, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 202, - "col": 2, - "byteIndex": 6244 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "parameters": [ { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "id": 2819, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 2820, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 2821, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 2807, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 203, - "col": 2, - "byteIndex": 6293 + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 2955, + "typeArguments": [ + { + "type": "reference", + "target": 2818, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + ], + "name": "Promise", + "package": "typescript" + } } - } - ], - "indexSignatures": [], - "methods": [ - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "map", - "kind": "method", - "functionDef": { - "params": [ + ] + }, + { + "id": 2822, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2823, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ { - "kind": "identifier", - "name": "mapper", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } + "id": 2824, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" } } ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + "parameters": [ { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 213, - "col": 2, - "byteIndex": 6605 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "as", - "kind": "method", - "functionDef": { - "params": [ + "id": 2825, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "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": [] + "id": 2826, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } + }, + { + "id": 2827, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 2807, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } } ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 2824, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 2830, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 2831, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback the transaction." } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 221, - "col": 2, - "byteIndex": 6769 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" } - } - ], - "typeName": "SqlQueryResultSuccess" + ], + "name": "Promise", + "package": "typescript" + } } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } + ] + } + ] }, { - "name": "SqlQueryResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 234, - "col": 0, - "byteIndex": 6999 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultError.", - "tags": [ - { - "kind": "internal" + "id": 2813, + "name": "SqlTransactionOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for starting a transaction." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 245, - "col": 2, - "byteIndex": 7373 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 235, - "col": 2, - "byteIndex": 7077 - } + "children": [ + { + "id": 2814, + "name": "isolationLevel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "comment": { + "summary": [ + { + "kind": "text", + "text": "Isolation level for the transaction" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 236, - "col": 2, - "byteIndex": 7111 - } + ] }, + "type": { + "type": "reference", + "target": 2812, + "name": "SqlIsolationLevel", + "package": "@probitas-test/client-sql" + } + } + ] + }, + { + "id": 2832, + "name": "SqlErrorKind", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL-specific error kinds." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 7149 - } + "type": "literal", + "value": "query" }, { - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 238, - "col": 2, - "byteIndex": 7181 - } + "type": "literal", + "value": "constraint" }, { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 239, - "col": 2, - "byteIndex": 7209 - } + "type": "literal", + "value": "deadlock" }, { - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 240, - "col": 2, - "byteIndex": 7249 - } + "type": "literal", + "value": "connection" }, { - "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.5.1/result.ts", - "line": 241, - "col": 2, - "byteIndex": 7283 - } + "type": "literal", + "value": "unknown" + } + ] + } + }, + { + "id": 2879, + "name": "SqlFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 2870, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 242, - "col": 2, - "byteIndex": 7312 - } + "name": "AbortError", + "package": "@probitas-test/client" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 243, - "col": 2, - "byteIndex": 7344 - } + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "indexSignatures": [], - "methods": [ + ] + } + }, + { + "id": 2812, + "name": "SqlIsolationLevel", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Transaction isolation level." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "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.5.1/result.ts", - "line": 250, - "col": 2, - "byteIndex": 7483 - } + "type": "literal", + "value": "read_uncommitted" }, { - "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.5.1/result.ts", - "line": 254, - "col": 2, - "byteIndex": 7543 - } - } - ], - "extends": null, - "implements": [ + "type": "literal", + "value": "read_committed" + }, { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultError" - } - } - ], - "typeParams": [ + "type": "literal", + "value": "repeatable_read" + }, { - "name": "T" + "type": "literal", + "value": "serializable" } - ], - "superTypeParams": [] + ] } }, { - "name": "SqlQueryResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 263, - "col": 0, - "byteIndex": 7669 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultFailure.", - "tags": [ - { - "kind": "internal" + "id": 2878, + "name": "SqlOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 274, - "col": 2, - "byteIndex": 8033 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 264, - "col": 2, - "byteIndex": 7751 - } + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 2844, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 265, - "col": 2, - "byteIndex": 7785 - } + "type": "reference", + "target": 2852, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 266, - "col": 2, - "byteIndex": 7824 - } + "type": "reference", + "target": 2862, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" }, { - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 267, - "col": 2, - "byteIndex": 7856 - } + "type": "reference", + "target": 2835, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 2955, + "name": "SqlQueryResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result union type representing all possible result states.\n\n- **Success**: " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 268, - "col": 2, - "byteIndex": 7891 - } + "kind": "code", + "text": "`processed: true, ok: true, error: null`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 269, - "col": 2, - "byteIndex": 7915 - } + "kind": "text", + "text": "\n- **Error**: " }, { - "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.5.1/result.ts", - "line": 270, - "col": 2, - "byteIndex": 7943 - } + "kind": "code", + "text": "`processed: true, ok: false, error: SqlError`" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 271, - "col": 2, - "byteIndex": 7972 - } + "kind": "text", + "text": "\n- **Failure**: " }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 272, - "col": 2, - "byteIndex": 8004 - } + "kind": "code", + "text": "`processed: false, ok: false, error: SqlConnectionError`" } ], - "indexSignatures": [], - "methods": [ + "blockTags": [ { - "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.5.1/result.ts", - "line": 279, - "col": 2, - "byteIndex": 8150 - } + "tag": "@example", + "name": "Type narrowing by ok", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```" + } + ] }, { - "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.5.1/result.ts", - "line": 283, - "col": 2, - "byteIndex": 8210 - } + "tag": "@example", + "name": "Type narrowing by processed", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + } + ] } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultFailure" - } + ] + }, + "typeParameters": [ + { + "id": 2956, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ], - "typeParams": [ + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 2880, + "typeArguments": [ + { + "type": "reference", + "target": 2956, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultSuccess", + "package": "@probitas-test/client-sql" + }, + { + "type": "reference", + "target": 2905, + "typeArguments": [ + { + "type": "reference", + "target": 2956, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultError", + "package": "@probitas-test/client-sql" + }, { - "name": "T" + "type": "reference", + "target": 2930, + "typeArguments": [ + { + "type": "reference", + "target": 2956, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultFailure", + "package": "@probitas-test/client-sql" } - ], - "superTypeParams": [] + ] } } - ] + ], + "packageName": "@probitas-test/client-sql", + "packageVersion": "0.5.2" } diff --git a/data/api/client-sqs.json b/data/api/client-sqs.json index 0e69546..922c49e 100644 --- a/data/api/client-sqs.json +++ b/data/api/client-sqs.json @@ -1,11606 +1,10173 @@ { - "name": "client-sqs", - "specifier": "@probitas/client-sqs", - "version": "0.6.0", - "moduleDoc": "AWS SQS client for [Probitas](https://github.com/probitas-test/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- **Emulator Compatible**: Works with ElasticMQ and other SQS-compatible servers\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-test/client-sqs\";\n\nconst client = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\", // ElasticMQ\n credentials: {\n accessKeyId: \"test\",\n secretAccessKey: \"test\",\n },\n});\n\n// Ensure queue exists\nconst queueResult = await client.ensureQueue(\"test-queue\");\nif (!queueResult.ok) throw new Error(\"Failed to ensure queue\");\n\n// Send a message\nconst sendResult = await client.send(\"Hello, World!\", {\n messageAttributes: {\n type: { dataType: \"String\", stringValue: \"greeting\" },\n },\n});\nif (!sendResult.ok) throw new Error(\"Failed to send message\");\nconsole.log(\"Message ID:\", sendResult.messageId);\n\n// Receive messages\nconst receiveResult = await client.receive({\n maxMessages: 10,\n waitTimeSeconds: 5,\n});\nif (!receiveResult.ok) throw new Error(\"Failed to receive messages\");\nconsole.log(\"Received:\", receiveResult.messages.length);\n\n// Delete message after processing\nfor (const msg of receiveResult.messages) {\n await client.delete(msg.receiptHandle);\n}\n\nawait client.close();\n```\n\n## Batch Operations\n\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nconst client = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n});\n\nconst queueResult = await client.ensureQueue(\"test-queue\");\nif (!queueResult.ok) throw new Error(\"Failed to ensure queue\");\n\n// Send batch messages\nawait client.sendBatch([\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 receiveResult = await client.receive({ maxMessages: 10 });\nif (!receiveResult.ok) throw new Error(\"Failed to receive messages\");\nconst handles = receiveResult.messages.map((m) => m.receiptHandle);\nawait client.deleteBatch(handles);\n\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nawait using client = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n});\n\nconst queue = await client.ensureQueue(\"test\");\nconsole.log(\"Queue URL:\", queue.queueUrl);\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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [AWS SQS](https://aws.amazon.com/sqs/)\n- [ElasticMQ](https://github.com/softwaremill/elasticmq)\n", - "exports": [ + "schemaVersion": "2.0", + "id": 4534, + "name": "@probitas-test/client-sqs", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AWS SQS client for [Probitas](https://github.com/probitas-test/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- **Emulator Compatible**: Works with ElasticMQ and other SQS-compatible servers\n- **Resource Management**: Implements " + }, + { + "kind": "code", + "text": "`AsyncDisposable`" + }, + { + "kind": "text", + "text": " for proper cleanup\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client-sqs\n```" + }, + { + "kind": "text", + "text": "\n\n## Quick Start\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nconst client = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\", // ElasticMQ\n credentials: {\n accessKeyId: \"test\",\n secretAccessKey: \"test\",\n },\n});\n\n// Ensure queue exists\nconst queueResult = await client.ensureQueue(\"test-queue\");\nif (!queueResult.ok) throw new Error(\"Failed to ensure queue\");\n\n// Send a message\nconst sendResult = await client.send(\"Hello, World!\", {\n messageAttributes: {\n type: { dataType: \"String\", stringValue: \"greeting\" },\n },\n});\nif (!sendResult.ok) throw new Error(\"Failed to send message\");\nconsole.log(\"Message ID:\", sendResult.messageId);\n\n// Receive messages\nconst receiveResult = await client.receive({\n maxMessages: 10,\n waitTimeSeconds: 5,\n});\nif (!receiveResult.ok) throw new Error(\"Failed to receive messages\");\nconsole.log(\"Received:\", receiveResult.messages.length);\n\n// Delete message after processing\nfor (const msg of receiveResult.messages) {\n await client.delete(msg.receiptHandle);\n}\n\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Batch Operations\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nconst client = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n});\n\nconst queueResult = await client.ensureQueue(\"test-queue\");\nif (!queueResult.ok) throw new Error(\"Failed to ensure queue\");\n\n// Send batch messages\nawait client.sendBatch([\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 receiveResult = await client.receive({ maxMessages: 10 });\nif (!receiveResult.ok) throw new Error(\"Failed to receive messages\");\nconst handles = receiveResult.messages.map((m) => m.receiptHandle);\nawait client.deleteBatch(handles);\n\nawait client.close();\n```" + }, + { + "kind": "text", + "text": "\n\n## Using with " + }, + { + "kind": "code", + "text": "`using`" + }, + { + "kind": "text", + "text": " Statement\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nawait using client = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n});\n\nconst queue = await client.ensureQueue(\"test\");\nconsole.log(\"Queue URL:\", queue.queueUrl);\n// Client automatically closed when block exits\n```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client) | Core utilities and types |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-rabbitmq`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-rabbitmq) | RabbitMQ client |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n- [AWS SQS](https://aws.amazon.com/sqs/)\n- [ElasticMQ](https://github.com/softwaremill/elasticmq)" + } + ] + }, + "children": [ { - "name": "SqsDeleteBatchResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 547, - "col": 0, - "byteIndex": 13910 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of batch deleting messages." + "id": 5114, + "name": "SqsBatchError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a batch operation partially fails." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsDeleteBatchResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultSuccess" - } - }, - { - "repr": "SqsDeleteBatchResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultError" - } - }, - { - "repr": "SqsDeleteBatchResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultFailure" - } - } - ] + "children": [ + { + "id": 5118, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 5130, + "name": "SqsError.code" + } }, - "typeParams": [] - } + { + "id": 5117, + "name": "failedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5116, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "batch" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 5131, + "name": "SqsError.kind" + } + }, + { + "id": 5115, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsBatchError" + }, + "defaultValue": "\"SqsBatchError\"", + "overwrites": { + "type": "reference", + "target": 5129, + "name": "SqsError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteQueueResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 780, - "col": 0, - "byteIndex": 19723 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of deleting a queue." + "id": 4598, + "name": "SqsBatchFailedEntry", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Failed batch entry." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsDeleteQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultSuccess" - } - }, - { - "repr": "SqsDeleteQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultError" - } - }, - { - "repr": "SqsDeleteQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultFailure" - } - } - ] + "children": [ + { + "id": 4600, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, - "typeParams": [] - } + { + "id": 4599, + "name": "id", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4601, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "SqsDeleteResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 432, - "col": 0, - "byteIndex": 10923 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of deleting a message." + "id": 4580, + "name": "SqsBatchMessage", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Batch message for sendBatch." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsDeleteResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultSuccess" - } - }, - { - "repr": "SqsDeleteResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultError" - } - }, - { - "repr": "SqsDeleteResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultFailure" - } - } - ] + "children": [ + { + "id": 4582, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, - "typeParams": [] - } + { + "id": 4583, + "name": "delaySeconds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4581, + "name": "id", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4584, + "name": "messageAttributes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 4560, + "name": "SqsMessageAttribute", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] }, { - "name": "SqsEnsureQueueResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 668, - "col": 0, - "byteIndex": 17003 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of ensuring a queue exists." + "id": 4614, + "name": "SqsBatchOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for batch operations." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsEnsureQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultSuccess" + "children": [ + { + "id": 4618, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - { - "repr": "SqsEnsureQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultError" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 4539, + "name": "SqsOptions.retry" + } + }, + { + "id": 4617, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - { - "repr": "SqsEnsureQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultFailure" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 4538, + "name": "SqsOptions.signal" + } + }, + { + "id": 4615, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } - } - ] + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 4536, + "name": "SqsOptions.throwOnError" + } }, - "typeParams": [] - } + { + "id": 4616, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 4537, + "name": "SqsOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4535, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsReceiveResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 323, - "col": 0, - "byteIndex": 8307 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of receiving messages." + "id": 4595, + "name": "SqsBatchSuccessEntry", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful batch send entry." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsReceiveResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultSuccess" - } - }, - { - "repr": "SqsReceiveResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultError" - } - }, - { - "repr": "SqsReceiveResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultFailure" - } - } - ] + "children": [ + { + "id": 4597, + "name": "id", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, - "typeParams": [] - } + { + "id": 4596, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "SqsResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 853, - "col": 0, - "byteIndex": 21499 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union type of all SQS result types." + "id": 4624, + "name": "SqsClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQS client interface." + } + ] }, - "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" + "children": [ + { + "id": 4625, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 4548, + "name": "SqsClientConfig", + "package": "@probitas-test/client-sqs" + } + }, + { + "id": 4626, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The current queue URL. Can be set via config, ensureQueue(), or setQueueUrl()." } - }, - { - "repr": "SqsEnsureQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResult" + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" } - }, + ] + } + }, + { + "id": 4660, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsDeleteQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResult" + "id": 4661, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the client and release resources." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsSendBatchResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 203, - "col": 0, - "byteIndex": 5263 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of batch sending messages." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ + { + "id": 4649, + "name": "delete", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsSendBatchResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultSuccess" - } - }, - { - "repr": "SqsSendBatchResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultError" - } - }, - { - "repr": "SqsSendBatchResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultFailure" + "id": 4650, + "name": "delete", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete a message from the queue." + } + ] + }, + "parameters": [ + { + "id": 4651, + "name": "receiptHandle", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4652, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4609, + "name": "SqsDeleteOptions", + "package": "@probitas-test/client-sqs" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 5108, + "name": "SqsDeleteResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsSendResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 73, - "col": 0, - "byteIndex": 1845 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of sending a message." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsSendResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultSuccess" - } - }, - { - "repr": "SqsSendResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultError" - } - }, + { + "id": 4653, + "name": "deleteBatch", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsSendResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultFailure" + "id": 4654, + "name": "deleteBatch", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete multiple messages from the queue in a single request." + } + ] + }, + "parameters": [ + { + "id": 4655, + "name": "receiptHandles", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 4656, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4614, + "name": "SqsBatchOptions", + "package": "@probitas-test/client-sqs" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 5106, + "name": "SqsDeleteBatchResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsBatchError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 102, - "col": 0, - "byteIndex": 2385 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a batch operation partially fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + { + "id": 4634, + "name": "deleteQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4635, + "name": "deleteQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete a queue by URL." + } + ] }, - { - "kind": "identifier", - "name": "failedCount", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 4636, + "name": "queueUrl", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4637, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4619, + "name": "SqsDeleteQueueOptions", + "package": "@probitas-test/client-sqs" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 5107, + "name": "SqsDeleteQueueResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 4630, + "name": "ensureQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4631, + "name": "ensureQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Ensure a queue exists. Creates the queue if it doesn't exist.\nIf the queue already exists with the same attributes, returns the existing queue URL.\nAlso sets the queue URL for subsequent operations." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" + "parameters": [ + { + "id": 4632, + "name": "queueName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4633, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4602, + "name": "SqsEnsureQueueOptions", + "package": "@probitas-test/client-sqs" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 5109, + "name": "SqsEnsureQueueResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 107, - "col": 2, - "byteIndex": 2555 } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 103, - "col": 2, - "byteIndex": 2433 - } - }, - { - "tsType": { - "repr": "batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "batch" + ] + }, + { + "id": 4657, + "name": "purge", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4658, + "name": "purge", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Purge all messages from the queue." + } + ] + }, + "parameters": [ + { + "id": 4659, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4535, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 5108, + "name": "SqsDeleteResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 104, - "col": 2, - "byteIndex": 2477 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 105, - "col": 2, - "byteIndex": 2522 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsCommandError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 53, - "col": 0, - "byteIndex": 1088 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when an SQS command fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] + }, + { + "id": 4646, + "name": "receive", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4647, + "name": "receive", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Receive messages from the queue." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "SqsCommandErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsCommandErrorOptions" + "parameters": [ + { + "id": 4648, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4585, + "name": "SqsReceiveOptions", + "package": "@probitas-test/client-sqs" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 5110, + "name": "SqsReceiveResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 58, - "col": 2, - "byteIndex": 1262 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 54, - "col": 2, - "byteIndex": 1138 } - }, - { - "tsType": { - "repr": "command", - "kind": "literal", - "literal": { - "kind": "string", - "string": "command" + ] + }, + { + "id": 4638, + "name": "send", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4639, + "name": "send", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send a message to the queue." + } + ] + }, + "parameters": [ + { + "id": 4640, + "name": "body", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4641, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4571, + "name": "SqsSendOptions", + "package": "@probitas-test/client-sqs" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 5113, + "name": "SqsSendResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 55, - "col": 2, - "byteIndex": 1184 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "operation", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 56, - "col": 2, - "byteIndex": 1231 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 34, - "col": 0, - "byteIndex": 634 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when an SQS connection cannot be established." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] + }, + { + "id": 4642, + "name": "sendBatch", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4643, + "name": "sendBatch", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send multiple messages to the queue in a single request." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" + "parameters": [ + { + "id": 4644, + "name": "messages", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4580, + "name": "SqsBatchMessage", + "package": "@probitas-test/client-sqs" + } + } + }, + { + "id": 4645, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 4614, + "name": "SqsBatchOptions", + "package": "@probitas-test/client-sqs" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 5112, + "name": "SqsSendBatchResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 38, - "col": 2, - "byteIndex": 787 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 35, - "col": 2, - "byteIndex": 687 } - }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + ] + }, + { + "id": 4627, + "name": "setQueueUrl", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 4628, + "name": "setQueueUrl", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the queue URL for subsequent operations." + } + ] + }, + "parameters": [ + { + "id": 4629, + "name": "queueUrl", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 36, - "col": 2, - "byteIndex": 736 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "SqsError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 17, - "col": 0, - "byteIndex": 274 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for SQS client errors." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 4548, + "name": "SqsClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "SQS client configuration." + } + ] + }, + "children": [ + { + "id": 4550, + "name": "credentials", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "AWS credentials" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 4551, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 4552, + "name": "accessKeyId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" } }, - "right": "sqs", - "tsType": null - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" + { + "id": 4553, + "name": "secretAccessKey", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" } } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 21, - "col": 2, - "byteIndex": 394 + ] } } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 18, - "col": 2, - "byteIndex": 320 - } + }, + { + "id": 4554, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQS queue URL (optional - can be set later or used with ensureQueue)" + } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 19, - "col": 2, - "byteIndex": 367 - } + "type": { + "type": "intrinsic", + "name": "string" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsMessageNotFoundError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 116, - "col": 0, - "byteIndex": 2797 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a message is not found or receipt handle is invalid." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + }, + { + "id": 4549, + "name": "region", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" - } - } + "kind": "text", + "text": "AWS region" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 120, - "col": 2, - "byteIndex": 2967 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 117, - "col": 2, - "byteIndex": 2855 - } + ] }, - { - "tsType": { - "repr": "message_not_found", - "kind": "literal", - "literal": { - "kind": "string", - "string": "message_not_found" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 118, - "col": 2, - "byteIndex": 2909 - } + "type": { + "type": "intrinsic", + "name": "string" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsMessageTooLargeError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 81, - "col": 0, - "byteIndex": 1881 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a message exceeds the size limit." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "size", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "maxSize", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, + }, + { + "id": 4559, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" - } - } + "kind": "text", + "text": "Retry configuration." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 87, - "col": 2, - "byteIndex": 2104 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 82, - "col": 2, - "byteIndex": 1939 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "message_too_large", - "kind": "literal", - "literal": { - "kind": "string", - "string": "message_too_large" + "inheritedFrom": { + "type": "reference", + "target": 4539, + "name": "SqsOptions.retry" + } + }, + { + "id": 4558, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 83, - "col": 2, - "byteIndex": 1993 - } + ] }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "size", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 84, - "col": 2, - "byteIndex": 2050 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "maxSize", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 85, - "col": 2, - "byteIndex": 2075 - } + "inheritedFrom": { + "type": "reference", + "target": 4538, + "name": "SqsOptions.signal" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsQueueNotFoundError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 67, - "col": 0, - "byteIndex": 1464 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a queue is not found." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + }, + { + "id": 4556, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "queueUrl", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - } + ] } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 72, - "col": 2, - "byteIndex": 1657 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 4536, + "name": "SqsOptions.throwOnError" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 68, - "col": 2, - "byteIndex": 1520 - } + }, + { + "id": 4557, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] }, - { - "tsType": { - "repr": "queue_not_found", - "kind": "literal", - "literal": { - "kind": "string", - "string": "queue_not_found" + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 4537, + "name": "SqsOptions.timeout" + } + }, + { + "id": 4555, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQS endpoint URL (e.g., \"http://localhost:9324\" for ElasticMQ).\nCan be a string URL or a connection config object.\nOptional for real AWS (uses default endpoint), required for an emulator." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 69, - "col": 2, - "byteIndex": 1572 - } + ] }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 4540, + "name": "SqsConnectionConfig", + "package": "@probitas-test/client-sqs" + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4535, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 5119, + "name": "SqsCommandError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 70, - "col": 2, - "byteIndex": 1627 - } + "kind": "text", + "text": "Error thrown when an SQS command fails." } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + ] + }, + "children": [ + { + "id": 5123, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 5130, + "name": "SqsError.code" + } + }, + { + "id": 5121, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "command" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 5131, + "name": "SqsError.kind" + } + }, + { + "id": 5120, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsCommandError" + }, + "defaultValue": "\"SqsCommandError\"", + "overwrites": { + "type": "reference", + "target": 5129, + "name": "SqsError.name" + } + }, + { + "id": 5122, + "name": "operation", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 41, - "col": 0, - "byteIndex": 756 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Common options with throwOnError support." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 4664, + "name": "SqsCommandErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "kind": "text", + "text": "Options for SQS command errors." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 47, - "col": 2, - "byteIndex": 978 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 4666, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 4663, + "name": "SqsErrorOptions.code" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4665, + "name": "operation", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4662, + "name": "SqsErrorOptions", + "package": "@probitas-test/client-sqs" + } + ] }, { + "id": 4540, "name": "SqsConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 55, - "col": 0, - "byteIndex": 1119 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQS connection configuration.\n\nExtends CommonConnectionConfig with SQS-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "protocol", - "jsDoc": { - "doc": "Protocol to use.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"https\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 60, - "col": 2, - "byteIndex": 1247 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" - } - }, - { - "repr": "https", - "kind": "literal", - "literal": { - "kind": "string", - "string": "https" - } - } - ] - }, - "typeParams": [] - }, - { - "name": "path", - "jsDoc": { - "doc": "Custom path (for emulators or custom endpoints).", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 66, - "col": 2, - "byteIndex": 1371 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "region", - "jsDoc": { - "doc": "AWS region (required for AWS, optional for emulators)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 71, - "col": 2, - "byteIndex": 1470 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "SQS connection configuration.\n\nExtends CommonConnectionConfig with SQS-specific options." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 77, - "col": 0, - "byteIndex": 1536 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQS client configuration." + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "region", - "jsDoc": { - "doc": "AWS region" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 79, - "col": 2, - "byteIndex": 1612 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "credentials", - "jsDoc": { - "doc": "AWS credentials" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 81, - "col": 2, - "byteIndex": 1664 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "accessKeyId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 82, - "col": 4, - "byteIndex": 1693 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, + "children": [ + { + "id": 4544, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Hostname or IP address." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "name": "secretAccessKey", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 83, - "col": 4, - "byteIndex": 1727 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "code", + "text": "```ts\n\"localhost\"\n```" } - ], - "callSignatures": [], - "indexSignatures": [] + ] } - }, - "typeParams": [] + ] }, - { - "name": "queueUrl", - "jsDoc": { - "doc": "SQS queue URL (optional - can be set later or used with ensureQueue)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 86, - "col": 2, - "byteIndex": 1846 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" }, - { - "name": "url", - "jsDoc": { - "doc": "SQS endpoint URL (e.g., \"http://localhost:9324\" for ElasticMQ).\nCan be a string URL or a connection config object.\nOptional for real AWS (uses default endpoint), required for an emulator." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 92, - "col": 2, - "byteIndex": 2091 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "SqsConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsConnectionConfig" - } - } - ] - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsMessageAttribute", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 98, - "col": 0, - "byteIndex": 2174 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQS message attributes." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "dataType", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 99, - "col": 2, - "byteIndex": 2215 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "String", - "kind": "literal", - "literal": { - "kind": "string", - "string": "String" - } - }, - { - "repr": "Number", - "kind": "literal", - "literal": { - "kind": "string", - "string": "Number" - } - }, - { - "repr": "Binary", - "kind": "literal", - "literal": { - "kind": "string", - "string": "Binary" - } - } - ] - }, - "typeParams": [] - }, - { - "name": "stringValue", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 100, - "col": 2, - "byteIndex": 2268 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "binaryValue", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 101, - "col": 2, - "byteIndex": 2301 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + }, + { + "id": 4547, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsMessage", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 107, - "col": 0, - "byteIndex": 2385 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQS message received from a queue." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 108, - "col": 2, - "byteIndex": 2417 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + ] }, - { - "name": "body", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 109, - "col": 2, - "byteIndex": 2447 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "receiptHandle", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 110, - "col": 2, - "byteIndex": 2472 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" }, - { - "name": "attributes", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 111, - "col": 2, - "byteIndex": 2506 - }, - "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" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 4542, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Custom path (for emulators or custom endpoints)." } - }, - "typeParams": [] - }, - { - "name": "messageAttributes", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 112, - "col": 2, - "byteIndex": 2553 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "SqsMessageAttribute", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageAttribute" - } + "kind": "code", + "text": "```ts\n\"\"\n```" } - ], - "typeName": "Record" + ] } - }, - "typeParams": [] + ] }, - { - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 113, - "col": 2, - "byteIndex": 2621 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsSendOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 119, - "col": 0, - "byteIndex": 2694 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for sending a message." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + "type": { + "type": "intrinsic", + "name": "string" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "delaySeconds", - "jsDoc": { - "doc": "Delay in seconds before the message becomes visible (0-900)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 121, - "col": 2, - "byteIndex": 2818 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + }, + { + "id": 4545, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." + } + ] }, - { - "name": "messageAttributes", - "jsDoc": { - "doc": "Message attributes" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 123, - "col": 2, - "byteIndex": 2880 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 4541, + "name": "protocol", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Protocol to use." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "SqsMessageAttribute", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageAttribute" - } + "kind": "code", + "text": "```ts\n\"https\"\n```" } - ], - "typeName": "Record" + ] } - }, - "typeParams": [] + ] }, - { - "name": "messageGroupId", - "jsDoc": { - "doc": "Message group ID (required for FIFO queues)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 125, - "col": 2, - "byteIndex": 3001 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "http" + }, + { + "type": "literal", + "value": "https" + } + ] + } + }, + { + "id": 4543, + "name": "region", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AWS region (required for AWS, optional for emulators)." + } + ] }, - { - "name": "messageDeduplicationId", - "jsDoc": { - "doc": "Message deduplication ID (required for FIFO queues without content-based deduplication)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 127, - "col": 2, - "byteIndex": 3134 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4546, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] }, { - "name": "SqsBatchMessage", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 133, - "col": 0, - "byteIndex": 3219 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Batch message for sendBatch." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "id", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 134, - "col": 2, - "byteIndex": 3256 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "body", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 135, - "col": 2, - "byteIndex": 3279 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "delaySeconds", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 136, - "col": 2, - "byteIndex": 3304 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "id": 5124, + "name": "SqsConnectionError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "messageAttributes", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 137, - "col": 2, - "byteIndex": 3338 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "SqsMessageAttribute", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageAttribute" - } - } - ], - "typeName": "Record" - } - }, - "typeParams": [] + "kind": "text", + "text": "Error thrown when an SQS connection cannot be established." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + }, + "children": [ + { + "id": 5127, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 5130, + "name": "SqsError.code" + } + }, + { + "id": 5126, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 5131, + "name": "SqsError.kind" + } + }, + { + "id": 5125, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsConnectionError" + }, + "defaultValue": "\"SqsConnectionError\"", + "overwrites": { + "type": "reference", + "target": 5129, + "name": "SqsError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsReceiveOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 143, - "col": 0, - "byteIndex": 3450 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for receiving messages." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 4931, + "name": "SqsDeleteBatchResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + "kind": "text", + "text": "Batch delete result with SQS error." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "maxMessages", - "jsDoc": { - "doc": "Maximum number of messages to receive (1-10, default: 1)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 145, - "col": 2, - "byteIndex": 3574 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "waitTimeSeconds", - "jsDoc": { - "doc": "Wait time in seconds for long polling (0-20)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 147, - "col": 2, - "byteIndex": 3661 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 4938, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] }, - { - "name": "visibilityTimeout", - "jsDoc": { - "doc": "Visibility timeout in seconds (0-43200)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 149, - "col": 2, - "byteIndex": 3747 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "attributeNames", - "jsDoc": { - "doc": "System attribute names to retrieve" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 151, - "col": 2, - "byteIndex": 3830 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.duration" + } + }, + { + "id": 4934, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "messageAttributeNames", - "jsDoc": { - "doc": "Message attribute names to retrieve" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 153, - "col": 2, - "byteIndex": 3922 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsBatchSuccessEntry", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 159, - "col": 0, - "byteIndex": 4017 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful batch send entry." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 160, - "col": 2, - "byteIndex": 4059 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" }, - { - "name": "id", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 161, - "col": 2, - "byteIndex": 4089 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.error" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsBatchFailedEntry", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 167, - "col": 0, - "byteIndex": 4144 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Failed batch entry." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "id", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 168, - "col": 2, - "byteIndex": 4185 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 169, - "col": 2, - "byteIndex": 4208 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 4936, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 170, - "col": 2, - "byteIndex": 4233 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsEnsureQueueOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 176, - "col": 0, - "byteIndex": 4310 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for ensuring a queue exists." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" } } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "attributes", - "jsDoc": { - "doc": "Queue attributes (e.g., DelaySeconds, MessageRetentionPeriod)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 178, - "col": 2, - "byteIndex": 4443 - }, - "params": [], - "readonly": true, - "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" + }, + { + "id": 4937, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "tags", - "jsDoc": { - "doc": "Queue tags" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 180, - "col": 2, - "byteIndex": 4511 - }, - "params": [], - "readonly": true, - "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": [] + "type": { + "type": "literal", + "value": "sqs:delete-batch" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 186, - "col": 0, - "byteIndex": 4597 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for deleting a message." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + }, + { + "id": 4933, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.ok" } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsBatchOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 191, - "col": 0, - "byteIndex": 4695 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for batch operations." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + }, + { + "id": 4932, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.processed" } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4935, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsDeleteBatchResultBase" + }, + "name": "SqsDeleteBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteQueueOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 196, - "col": 0, - "byteIndex": 4792 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for deleting a queue." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 4939, + "name": "SqsDeleteBatchResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + "kind": "text", + "text": "Batch delete result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 201, - "col": 0, - "byteIndex": 4887 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQS client interface." + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } - } - ], - "constructors": [], - "methods": [ - { - "name": "setQueueUrl", - "jsDoc": { - "doc": "Set the queue URL for subsequent operations." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 212, - "col": 2, - "byteIndex": 5179 - }, - "params": [ - { - "kind": "identifier", - "name": "queueUrl", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "children": [ + { + "id": 4946, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "typeParams": [] + ] }, - { - "name": "ensureQueue", - "jsDoc": { - "doc": "Ensure a queue exists. Creates the queue if it doesn't exist.\nIf the queue already exists with the same attributes, returns the existing queue URL.\nAlso sets the queue URL for subsequent operations." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 219, - "col": 2, - "byteIndex": 5445 - }, - "params": [ - { - "kind": "identifier", - "name": "queueName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.duration" + } + }, + { + "id": 4942, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsEnsureQueueOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsEnsureQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "deleteQueue", - "jsDoc": { - "doc": "Delete a queue by URL." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 227, - "col": 2, - "byteIndex": 5597 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsFailureError" }, - "params": [ - { - "kind": "identifier", - "name": "queueUrl", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.error" + } + }, + { + "id": 4944, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4945, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsDeleteQueueOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsDeleteQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "send", - "jsDoc": { - "doc": "Send a message to the queue." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 235, - "col": 2, - "byteIndex": 5754 - }, - "params": [ - { - "kind": "identifier", - "name": "body", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "literal", + "value": "sqs:delete-batch" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.kind" + } + }, + { + "id": 4941, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsSendOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsSendResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "sendBatch", - "jsDoc": { - "doc": "Send multiple messages to the queue in a single request." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 240, - "col": 2, - "byteIndex": 5901 - }, - "params": [ - { - "kind": "identifier", - "name": "messages", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchMessage" - } - } - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.ok" + } + }, + { + "id": 4940, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsBatchOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsSendBatchResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.processed" + } + }, + { + "id": 4943, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsDeleteBatchResultBase" + }, + "name": "SqsDeleteBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 4923, + "name": "SqsDeleteBatchResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "receive", - "jsDoc": { - "doc": "Receive messages from the queue." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 248, - "col": 2, - "byteIndex": 6063 - }, - "params": [ - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsReceiveOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsReceiveResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "kind": "text", + "text": "Successful batch delete result.\n\nNote: " }, { - "name": "delete", - "jsDoc": { - "doc": "Delete a message from the queue." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 253, - "col": 2, - "byteIndex": 6181 - }, - "params": [ - { - "kind": "identifier", - "name": "receiptHandle", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "code", + "text": "`ok: true`" + }, + { + "kind": "text", + "text": " even if some messages failed (partial failure).\nCheck " + }, + { + "kind": "code", + "text": "`failed.length > 0`" + }, + { + "kind": "text", + "text": " to detect partial failures." + } + ] + }, + "children": [ + { + "id": 4930, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsDeleteOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteOptions" - } - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + ] }, - { - "name": "deleteBatch", - "jsDoc": { - "doc": "Delete multiple messages from the queue in a single request." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 261, - "col": 2, - "byteIndex": 6360 - }, - "params": [ - { - "kind": "identifier", - "name": "receiptHandles", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.duration" + } + }, + { + "id": 4926, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsBatchOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsDeleteBatchResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "purge", - "jsDoc": { - "doc": "Purge all messages from the queue." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 269, - "col": 2, - "byteIndex": 6525 - }, - "params": [ - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResult" - } - } - ], - "typeName": "Promise" + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.error" + } + }, + { + "id": 4928, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of messages that failed to delete (may be non-empty even with ok: true)." } - }, - "typeParams": [] + ] }, - { - "name": "close", - "jsDoc": { - "doc": "Close the client and release resources." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 274, - "col": 2, - "byteIndex": 6640 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4598, + "name": "SqsBatchFailedEntry", + "package": "@probitas-test/client-sqs" } - }, - "typeParams": [] + } } - ], - "properties": [ - { - "name": "config", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 202, - "col": 2, - "byteIndex": 4942 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsClientConfig" + }, + { + "id": 4929, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "queueUrl", - "jsDoc": { - "doc": "The current queue URL. Can be set via config, ensureQueue(), or setQueueUrl()." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 207, - "col": 2, - "byteIndex": 5075 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:delete-batch" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 138 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SQS errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } + }, + { + "id": 4925, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.ok" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 11, - "col": 2, - "byteIndex": 196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 4924, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4927, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of message IDs that were successfully deleted." + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsDeleteBatchResultBase" + }, + "name": "SqsDeleteBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsCommandErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 46, - "col": 0, - "byteIndex": 938 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SQS command errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ + "id": 4609, + "name": "SqsDeleteOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "operation", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1006 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "Options for deleting a message." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 129, - "col": 0, - "byteIndex": 3228 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate an operation was processed by the server.\nThese errors occur after the operation reaches the SQS service." + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsCommandError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsCommandError" - } - }, - { - "repr": "SqsQueueNotFoundError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsQueueNotFoundError" - } - }, - { - "repr": "SqsMessageTooLargeError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageTooLargeError" + "children": [ + { + "id": 4613, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - { - "repr": "SqsBatchError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchError" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 4539, + "name": "SqsOptions.retry" + } + }, + { + "id": 4612, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - { - "repr": "SqsMessageNotFoundError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageNotFoundError" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 4538, + "name": "SqsOptions.signal" + } + }, + { + "id": 4610, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } - }, - { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 4536, + "name": "SqsOptions.throwOnError" + } }, - "typeParams": [] - } + { + "id": 4611, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 4537, + "name": "SqsOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4535, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 141, - "col": 0, - "byteIndex": 3542 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the SQS service." + "id": 4619, + "name": "SqsDeleteQueueOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for deleting a queue." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsConnectionError" + "children": [ + { + "id": 4623, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 4539, + "name": "SqsOptions.retry" + } + }, + { + "id": 4622, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 4538, + "name": "SqsOptions.signal" + } + }, + { + "id": 4620, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } - } - ] + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 4536, + "name": "SqsOptions.throwOnError" + } }, - "typeParams": [] - } + { + "id": 4621, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 4537, + "name": "SqsOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4535, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 34, - "col": 0, - "byteIndex": 806 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful send result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5056, + "name": "SqsDeleteQueueResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsSendResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultBase" - } + "kind": "text", + "text": "Delete queue result with SQS error." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 35, - "col": 2, - "byteIndex": 874 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 5061, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 36, - "col": 2, - "byteIndex": 902 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.duration" + } + }, + { + "id": 5059, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 37, - "col": 2, - "byteIndex": 923 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" }, - { - "name": "messageId", - "jsDoc": { - "doc": "Unique identifier for the sent message." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 39, - "col": 2, - "byteIndex": 996 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.error" + } + }, + { + "id": 5060, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "md5OfBody", - "jsDoc": { - "doc": "MD5 hash of the message body (for integrity verification)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 41, - "col": 2, - "byteIndex": 1094 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:delete-queue" }, - { - "name": "sequenceNumber", - "jsDoc": { - "doc": "Sequence number for FIFO queues (present only for FIFO queues)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 43, - "col": 2, - "byteIndex": 1197 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 5058, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.ok" + } + }, + { + "id": 5057, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsDeleteQueueResultBase" + }, + "name": "SqsDeleteQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 49, - "col": 0, - "byteIndex": 1279 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Send result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5062, + "name": "SqsDeleteQueueResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsSendResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultBase" - } + "kind": "text", + "text": "Delete queue result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 50, - "col": 2, - "byteIndex": 1345 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 5067, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 51, - "col": 2, - "byteIndex": 1373 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.duration" + } + }, + { + "id": 5065, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 52, - "col": 2, - "byteIndex": 1395 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsFailureError" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.error" + } + }, + { + "id": 5066, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 53, - "col": 2, - "byteIndex": 1423 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:delete-queue" }, - { - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 54, - "col": 2, - "byteIndex": 1451 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.kind" + } + }, + { + "id": 5064, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 55, - "col": 2, - "byteIndex": 1479 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 5063, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsDeleteQueueResultBase" + }, + "name": "SqsDeleteQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 61, - "col": 0, - "byteIndex": 1561 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Send result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5050, + "name": "SqsDeleteQueueResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsSendResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultBase" - } + "kind": "text", + "text": "Successful delete queue result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 62, - "col": 2, - "byteIndex": 1629 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "children": [ + { + "id": 5055, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 63, - "col": 2, - "byteIndex": 1658 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.duration" + } + }, + { + "id": 5053, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 64, - "col": 2, - "byteIndex": 1680 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.error" + } + }, + { + "id": 5054, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 65, - "col": 2, - "byteIndex": 1715 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:delete-queue" }, - { - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 66, - "col": 2, - "byteIndex": 1743 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.kind" + } + }, + { + "id": 5052, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 67, - "col": 2, - "byteIndex": 1771 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 5051, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsDeleteQueueResultBase" + }, + "name": "SqsDeleteQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 82, - "col": 0, - "byteIndex": 2019 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendResultSuccess.", - "tags": [ + "id": 4876, + "name": "SqsDeleteResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Delete result with SQS error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 93, - "col": 4, - "byteIndex": 2384 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 94, - "col": 4, - "byteIndex": 2407 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 95, - "col": 4, - "byteIndex": 2430 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 96, - "col": 4, - "byteIndex": 2465 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 4881, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 92, - "col": 2, - "byteIndex": 2358 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send" + }, + { + "id": 4879, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 83, - "col": 2, - "byteIndex": 2093 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 84, - "col": 2, - "byteIndex": 2132 - } + "type": { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.error" + } + }, + { + "id": 4880, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 85, - "col": 2, - "byteIndex": 2170 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 86, - "col": 2, - "byteIndex": 2201 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 87, - "col": 2, - "byteIndex": 2226 - } + "type": { + "type": "literal", + "value": "sqs:delete" }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 88, - "col": 2, - "byteIndex": 2256 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.kind" + } + }, + { + "id": 4878, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 89, - "col": 2, - "byteIndex": 2286 - } + "type": { + "type": "literal", + "value": false }, - { - "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-sqs/0.6.0/result.ts", - "line": 90, - "col": 2, - "byteIndex": 2328 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.ok" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultSuccess" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 4877, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsDeleteResultBase" + }, + "name": "SqsDeleteResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 109, - "col": 0, - "byteIndex": 2730 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendResultError.", - "tags": [ + "id": 4882, + "name": "SqsDeleteResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Delete result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 120, - "col": 4, - "byteIndex": 3085 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 121, - "col": 4, - "byteIndex": 3106 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 119, - "col": 2, - "byteIndex": 3059 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send" + "children": [ + { + "id": 4887, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 110, - "col": 2, - "byteIndex": 2800 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 111, - "col": 2, - "byteIndex": 2839 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.duration" + } + }, + { + "id": 4885, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsFailureError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 112, - "col": 2, - "byteIndex": 2877 - } + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.error" + } + }, + { + "id": 4886, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 113, - "col": 2, - "byteIndex": 2909 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 114, - "col": 2, - "byteIndex": 2937 - } + "type": { + "type": "literal", + "value": "sqs:delete" }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 115, - "col": 2, - "byteIndex": 2966 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.kind" + } + }, + { + "id": 4884, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 116, - "col": 2, - "byteIndex": 2995 - } + "type": { + "type": "literal", + "value": false }, - { - "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-sqs/0.6.0/result.ts", - "line": 117, - "col": 2, - "byteIndex": 3029 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultError" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.ok" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 4883, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsDeleteResultBase" + }, + "name": "SqsDeleteResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 132, - "col": 0, - "byteIndex": 3277 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendResultFailure.", - "tags": [ + "id": 4870, + "name": "SqsDeleteResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful delete result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 143, - "col": 4, - "byteIndex": 3644 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 144, - "col": 4, - "byteIndex": 3672 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 142, - "col": 2, - "byteIndex": 3618 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send" + "children": [ + { + "id": 4875, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 133, - "col": 2, - "byteIndex": 3351 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 134, - "col": 2, - "byteIndex": 3390 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.duration" + } + }, + { + "id": 4873, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 135, - "col": 2, - "byteIndex": 3429 - } + ] }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.error" + } + }, + { + "id": 4874, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 136, - "col": 2, - "byteIndex": 3461 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 137, - "col": 2, - "byteIndex": 3496 - } + "type": { + "type": "literal", + "value": "sqs:delete" }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 138, - "col": 2, - "byteIndex": 3525 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.kind" + } + }, + { + "id": 4872, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 139, - "col": 2, - "byteIndex": 3554 - } + "type": { + "type": "literal", + "value": true }, - { - "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-sqs/0.6.0/result.ts", - "line": 140, - "col": 2, - "byteIndex": 3588 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultFailure" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.ok" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 4871, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsDeleteResultBase" + }, + "name": "SqsDeleteResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendBatchResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 168, - "col": 0, - "byteIndex": 4286 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful batch send result.\n\nNote: `ok: true` even if some messages failed (partial failure).\nCheck `failed.length > 0` to detect partial failures." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 4602, + "name": "SqsEnsureQueueOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsSendBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultBase" - } + "kind": "text", + "text": "Options for ensuring a queue exists." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 169, - "col": 2, - "byteIndex": 4364 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 170, - "col": 2, - "byteIndex": 4392 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 171, - "col": 2, - "byteIndex": 4413 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "successful", - "jsDoc": { - "doc": "Array of successfully sent messages." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 173, - "col": 2, - "byteIndex": 4483 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchSuccessEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchSuccessEntry" - } - } - } + ] + }, + "children": [ + { + "id": 4603, + "name": "attributes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Queue attributes (e.g., DelaySeconds, MessageRetentionPeriod)" } - }, - "typeParams": [] + ] }, - { - "name": "failed", - "jsDoc": { - "doc": "Array of messages that failed to send (may be non-empty even with ok: true)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 175, - "col": 2, - "byteIndex": 4625 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } - } - } + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsSendBatchResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 181, - "col": 0, - "byteIndex": 4722 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Batch send result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsSendBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultBase" - } + ], + "name": "Record", + "package": "typescript" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 182, - "col": 2, - "byteIndex": 4798 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 4608, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 183, - "col": 2, - "byteIndex": 4826 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "typeParams": [] + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 184, - "col": 2, - "byteIndex": 4848 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + "inheritedFrom": { + "type": "reference", + "target": 4539, + "name": "SqsOptions.retry" + } + }, + { + "id": 4607, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "typeParams": [] + ] }, - { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 185, - "col": 2, - "byteIndex": 4876 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [] - } - } - }, - "typeParams": [] + "name": "AbortSignal", + "package": "typescript" }, - { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 186, - "col": 2, - "byteIndex": 4912 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [] - } - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsSendBatchResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 192, - "col": 0, - "byteIndex": 4999 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Batch send result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsSendBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultBase" - } + "inheritedFrom": { + "type": "reference", + "target": 4538, + "name": "SqsOptions.signal" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 193, - "col": 2, - "byteIndex": 5077 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 4604, + "name": "tags", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Queue tags" } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 194, - "col": 2, - "byteIndex": 5106 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 195, - "col": 2, - "byteIndex": 5128 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 4605, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } - }, - "typeParams": [] + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] }, - { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 196, - "col": 2, - "byteIndex": 5163 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "boolean" }, - { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 197, - "col": 2, - "byteIndex": 5192 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 4536, + "name": "SqsOptions.throwOnError" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4606, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 4537, + "name": "SqsOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4535, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendBatchResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 212, - "col": 0, - "byteIndex": 5462 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendBatchResultSuccess.", - "tags": [ + "id": 4997, + "name": "SqsEnsureQueueResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Ensure queue result with SQS error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 223, - "col": 4, - "byteIndex": 5850 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchSuccessEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchSuccessEntry" - } - } - } - } - }, - "typeParams": [] - }, - { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 224, - "col": 4, - "byteIndex": 5899 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } - } - } - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 225, - "col": 4, - "byteIndex": 5943 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 5003, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 222, - "col": 2, - "byteIndex": 5824 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send-batch" + }, + { + "id": 5000, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.error" + } + }, + { + "id": 5002, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 214, - "col": 2, - "byteIndex": 5548 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 215, - "col": 2, - "byteIndex": 5593 - } + "type": { + "type": "literal", + "value": "sqs:ensure-queue" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.kind" + } + }, + { + "id": 4999, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 216, - "col": 2, - "byteIndex": 5631 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 217, - "col": 2, - "byteIndex": 5662 - } + "type": { + "type": "literal", + "value": false }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchSuccessEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchSuccessEntry" - } - } - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.ok" + } + }, + { + "id": 4998, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 218, - "col": 2, - "byteIndex": 5687 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 219, - "col": 2, - "byteIndex": 5743 - } + "type": { + "type": "literal", + "value": true }, - { - "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-sqs/0.6.0/result.ts", - "line": 220, - "col": 2, - "byteIndex": 5794 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendBatchResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultSuccess" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 5001, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsEnsureQueueResultBase" + }, + "name": "SqsEnsureQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendBatchResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 237, - "col": 0, - "byteIndex": 6160 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendBatchResultError.", - "tags": [ + "id": 5004, + "name": "SqsEnsureQueueResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Ensure queue result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 247, - "col": 4, - "byteIndex": 6509 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 248, - "col": 4, - "byteIndex": 6530 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 5010, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 246, - "col": 2, - "byteIndex": 6483 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send-batch" + }, + { + "id": 5007, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 238, - "col": 2, - "byteIndex": 6240 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsFailureError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 239, - "col": 2, - "byteIndex": 6285 - } + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.error" + } + }, + { + "id": 5009, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 240, - "col": 2, - "byteIndex": 6323 - } + ] }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 241, - "col": 2, - "byteIndex": 6355 - } + "type": { + "type": "literal", + "value": "sqs:ensure-queue" }, - { - "tsType": null, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 242, - "col": 2, - "byteIndex": 6383 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.kind" + } + }, + { + "id": 5006, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "tsType": null, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 243, - "col": 2, - "byteIndex": 6420 - } + "type": { + "type": "literal", + "value": false }, - { - "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-sqs/0.6.0/result.ts", - "line": 244, - "col": 2, - "byteIndex": 6453 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.ok" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendBatchResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultError" - } + }, + { + "id": 5005, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 5008, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsEnsureQueueResultBase" + }, + "name": "SqsEnsureQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendBatchResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 259, - "col": 0, - "byteIndex": 6706 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendBatchResultFailure.", - "tags": [ + "id": 4990, + "name": "SqsEnsureQueueResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful ensure queue result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 270, - "col": 4, - "byteIndex": 7055 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 271, - "col": 4, - "byteIndex": 7083 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 269, - "col": 2, - "byteIndex": 7029 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send-batch" + "children": [ + { + "id": 4996, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 261, - "col": 2, - "byteIndex": 6792 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 262, - "col": 2, - "byteIndex": 6837 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.duration" + } + }, + { + "id": 4993, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 263, - "col": 2, - "byteIndex": 6876 - } + ] }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 264, - "col": 2, - "byteIndex": 6908 - } + "type": { + "type": "literal", + "value": null }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 265, - "col": 2, - "byteIndex": 6943 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.error" + } + }, + { + "id": 4995, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 266, - "col": 2, - "byteIndex": 6973 - } + "type": { + "type": "literal", + "value": "sqs:ensure-queue" }, - { - "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-sqs/0.6.0/result.ts", - "line": 267, - "col": 2, - "byteIndex": 6999 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendBatchResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultFailure" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsReceiveResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 292, - "col": 0, - "byteIndex": 7556 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful receive result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsReceiveResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultBase" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 293, - "col": 2, - "byteIndex": 7630 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 4992, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 294, - "col": 2, - "byteIndex": 7658 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.ok" + } + }, + { + "id": 4991, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 295, - "col": 2, - "byteIndex": 7679 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "messages", - "jsDoc": { - "doc": "Array of received messages (may be empty)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 297, - "col": 2, - "byteIndex": 7755 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessage" - } - } - } - } - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4994, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "URL of the queue (existing or newly created)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsEnsureQueueResultBase" + }, + "name": "SqsEnsureQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsReceiveResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 303, - "col": 0, - "byteIndex": 7842 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Receive result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5128, + "name": "SqsError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsReceiveResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultBase" - } + "kind": "text", + "text": "Base error class for SQS client errors." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 304, - "col": 2, - "byteIndex": 7914 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 305, - "col": 2, - "byteIndex": 7942 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 306, - "col": 2, - "byteIndex": 7964 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 5130, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 307, - "col": 2, - "byteIndex": 7992 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [] - } - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 5131, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 5129, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"SqsError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 5114, + "name": "SqsBatchError" + }, + { + "type": "reference", + "target": 5119, + "name": "SqsCommandError" + }, + { + "type": "reference", + "target": 5124, + "name": "SqsConnectionError" + }, + { + "type": "reference", + "target": 5132, + "name": "SqsMessageNotFoundError" + }, + { + "type": "reference", + "target": 5136, + "name": "SqsMessageTooLargeError" + }, + { + "type": "reference", + "target": 5142, + "name": "SqsQueueNotFoundError" + } + ] }, { - "name": "SqsReceiveResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 313, - "col": 0, - "byteIndex": 8078 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Receive result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 4662, + "name": "SqsErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsReceiveResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultBase" - } + "kind": "text", + "text": "Options for SQS errors." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 314, - "col": 2, - "byteIndex": 8152 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, + ] + }, + "children": [ + { + "id": 4663, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 4664, + "name": "SqsCommandErrorOptions" + } + ] + }, + { + "id": 4564, + "name": "SqsMessage", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 315, - "col": 2, - "byteIndex": 8181 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "kind": "text", + "text": "SQS message received from a queue." + } + ] + }, + "children": [ + { + "id": 4568, + "name": "attributes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 316, - "col": 2, - "byteIndex": 8203 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 4566, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4570, + "name": "md5OfBody", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4569, + "name": "messageAttributes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 4560, + "name": "SqsMessageAttribute", + "package": "@probitas-test/client-sqs" } - }, - "typeParams": [] - }, - { - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 317, - "col": 2, - "byteIndex": 8238 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + ], + "name": "Record", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4565, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4567, + "name": "receiptHandle", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "SqsReceiveResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 332, - "col": 0, - "byteIndex": 8496 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsReceiveResultSuccess.", - "tags": [ + "id": 4560, + "name": "SqsMessageAttribute", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "SQS message attributes." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 341, - "col": 4, - "byteIndex": 8812 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessage" - } - } - } - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 342, - "col": 4, - "byteIndex": 8849 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 4563, + "name": "binaryValue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" } ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 340, - "col": 2, - "byteIndex": 8786 - } + "name": "Uint8Array", + "package": "typescript" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:receive", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:receive" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 333, - "col": 2, - "byteIndex": 8576 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 334, - "col": 2, - "byteIndex": 8618 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 335, - "col": 2, - "byteIndex": 8656 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 336, - "col": 2, - "byteIndex": 8687 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessage" - } - } - } + }, + { + "id": 4561, + "name": "dataType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "String" + }, + { + "type": "literal", + "value": "Number" + }, + { + "type": "literal", + "value": "Binary" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 337, - "col": 2, - "byteIndex": 8712 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 338, - "col": 2, - "byteIndex": 8756 - } + ] } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + }, + { + "id": 4562, + "name": "stringValue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 5132, + "name": "SqsMessageNotFoundError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsReceiveResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultSuccess" - } + "kind": "text", + "text": "Error thrown when a message is not found or receipt handle is invalid." } - ], - "typeParams": [], - "superTypeParams": [] - } + ] + }, + "children": [ + { + "id": 5135, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 5130, + "name": "SqsError.code" + } + }, + { + "id": 5134, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "message_not_found" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 5131, + "name": "SqsError.kind" + } + }, + { + "id": 5133, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsMessageNotFoundError" + }, + "defaultValue": "\"SqsMessageNotFoundError\"", + "overwrites": { + "type": "reference", + "target": 5129, + "name": "SqsError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsReceiveResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 353, - "col": 0, - "byteIndex": 9027 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsReceiveResultError.", - "tags": [ + "id": 5136, + "name": "SqsMessageTooLargeError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Error thrown when a message exceeds the size limit." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 362, - "col": 4, - "byteIndex": 9334 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 363, - "col": 4, - "byteIndex": 9355 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 361, - "col": 2, - "byteIndex": 9308 - } + "children": [ + { + "id": 5141, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 5130, + "name": "SqsError.code" + } + }, + { + "id": 5138, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "message_too_large" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 5131, + "name": "SqsError.kind" + } + }, + { + "id": 5140, + "name": "maxSize", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5137, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsMessageTooLargeError" + }, + "defaultValue": "\"SqsMessageTooLargeError\"", + "overwrites": { + "type": "reference", + "target": 5129, + "name": "SqsError.name" } - ], - "properties": [ + }, + { + "id": 5139, + "name": "size", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 4535, + "name": "SqsOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "sqs:receive", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:receive" + "kind": "text", + "text": "Common options with throwOnError support." + } + ] + }, + "children": [ + { + "id": 4539, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 354, - "col": 2, - "byteIndex": 9103 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 355, - "col": 2, - "byteIndex": 9145 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 4538, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 356, - "col": 2, - "byteIndex": 9183 - } + ] }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 357, - "col": 2, - "byteIndex": 9215 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "tsType": null, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 358, - "col": 2, - "byteIndex": 9243 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 4536, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] }, - { - "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-sqs/0.6.0/result.ts", - "line": 359, - "col": 2, - "byteIndex": 9278 - } + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + }, + { + "id": 4537, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 4548, + "name": "SqsClientConfig" + }, + { + "type": "reference", + "target": 4571, + "name": "SqsSendOptions" + }, + { + "type": "reference", + "target": 4585, + "name": "SqsReceiveOptions" + }, + { + "type": "reference", + "target": 4602, + "name": "SqsEnsureQueueOptions" + }, + { + "type": "reference", + "target": 4609, + "name": "SqsDeleteOptions" + }, + { + "type": "reference", + "target": 4614, + "name": "SqsBatchOptions" + }, + { + "type": "reference", + "target": 4619, + "name": "SqsDeleteQueueOptions" + } + ] + }, + { + "id": 5142, + "name": "SqsQueueNotFoundError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsReceiveResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultError" - } + "kind": "text", + "text": "Error thrown when a queue is not found." } - ], - "typeParams": [], - "superTypeParams": [] - } + ] + }, + "children": [ + { + "id": 5146, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 5130, + "name": "SqsError.code" + } + }, + { + "id": 5144, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "queue_not_found" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 5131, + "name": "SqsError.kind" + } + }, + { + "id": 5143, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsQueueNotFoundError" + }, + "defaultValue": "\"SqsQueueNotFoundError\"", + "overwrites": { + "type": "reference", + "target": 5129, + "name": "SqsError.name" + } + }, + { + "id": 5145, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsReceiveResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 374, - "col": 0, - "byteIndex": 9529 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsReceiveResultFailure.", - "tags": [ + "id": 4585, + "name": "SqsReceiveOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Options for receiving messages." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 383, - "col": 4, - "byteIndex": 9841 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 384, - "col": 4, - "byteIndex": 9869 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 4589, + "name": "attributeNames", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "System attribute names to retrieve" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 382, - "col": 2, - "byteIndex": 9815 } } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:receive", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:receive" + }, + { + "id": 4586, + "name": "maxMessages", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum number of messages to receive (1-10, default: 1)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 375, - "col": 2, - "byteIndex": 9609 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 4590, + "name": "messageAttributeNames", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Message attribute names to retrieve" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 376, - "col": 2, - "byteIndex": 9651 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 377, - "col": 2, - "byteIndex": 9690 } + } + }, + { + "id": 4594, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 4539, + "name": "SqsOptions.retry" + } + }, + { + "id": 4593, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 378, - "col": 2, - "byteIndex": 9722 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 379, - "col": 2, - "byteIndex": 9757 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "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-sqs/0.6.0/result.ts", - "line": 380, - "col": 2, - "byteIndex": 9785 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsReceiveResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultFailure" - } + "inheritedFrom": { + "type": "reference", + "target": 4538, + "name": "SqsOptions.signal" } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 405, - "col": 0, - "byteIndex": 10337 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful delete result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultBase" - } + }, + { + "id": 4591, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 4536, + "name": "SqsOptions.throwOnError" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 406, - "col": 2, - "byteIndex": 10409 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 4592, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 407, - "col": 2, - "byteIndex": 10437 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 4537, + "name": "SqsOptions.timeout" + } + }, + { + "id": 4588, + "name": "visibilityTimeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Visibility timeout in seconds (0-43200)" } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 408, - "col": 2, - "byteIndex": 10458 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4587, + "name": "waitTimeSeconds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Wait time in seconds for long polling (0-20)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4535, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 414, - "col": 0, - "byteIndex": 10524 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 4817, + "name": "SqsReceiveResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultBase" - } + "kind": "text", + "text": "Receive result with SQS error." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 415, - "col": 2, - "byteIndex": 10594 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 4823, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 416, - "col": 2, - "byteIndex": 10622 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.duration" + } + }, + { + "id": 4820, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 417, - "col": 2, - "byteIndex": 10644 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + "type": { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.error" + } + }, + { + "id": 4822, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": "sqs:receive" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 423, - "col": 0, - "byteIndex": 10723 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultBase" + }, + { + "id": 4821, + "name": "messages", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" } } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 424, - "col": 2, - "byteIndex": 10795 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 4819, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 425, - "col": 2, - "byteIndex": 10824 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 426, - "col": 2, - "byteIndex": 10846 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4818, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsReceiveResultBase" + }, + "name": "SqsReceiveResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 441, - "col": 0, - "byteIndex": 11107 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteResultSuccess.", - "tags": [ + "id": 4824, + "name": "SqsReceiveResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Receive result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 449, - "col": 4, - "byteIndex": 11376 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 4830, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 448, - "col": 2, - "byteIndex": 11350 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete" + }, + { + "id": 4827, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 442, - "col": 2, - "byteIndex": 11185 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsFailureError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 443, - "col": 2, - "byteIndex": 11226 - } + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.error" + } + }, + { + "id": 4829, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 444, - "col": 2, - "byteIndex": 11264 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 445, - "col": 2, - "byteIndex": 11295 - } + "type": { + "type": "literal", + "value": "sqs:receive" }, - { - "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-sqs/0.6.0/result.ts", - "line": 446, - "col": 2, - "byteIndex": 11320 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultSuccess" - } + }, + { + "id": 4828, + "name": "messages", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 4826, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.ok" + } + }, + { + "id": 4825, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsReceiveResultBase" + }, + "name": "SqsReceiveResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 459, - "col": 0, - "byteIndex": 11516 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteResultError.", - "tags": [ + "id": 4810, + "name": "SqsReceiveResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful receive result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 467, - "col": 4, - "byteIndex": 11785 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 468, - "col": 4, - "byteIndex": 11806 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 4816, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.duration" + } + }, + { + "id": 4813, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.error" + } + }, + { + "id": 4815, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 466, - "col": 2, - "byteIndex": 11759 - } + ] + }, + "type": { + "type": "literal", + "value": "sqs:receive" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.kind" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete" + }, + { + "id": 4814, + "name": "messages", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of received messages (may be empty)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 460, - "col": 2, - "byteIndex": 11590 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4564, + "name": "SqsMessage", + "package": "@probitas-test/client-sqs" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 461, - "col": 2, - "byteIndex": 11631 } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + }, + { + "id": 4812, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 462, - "col": 2, - "byteIndex": 11669 - } + ] }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 463, - "col": 2, - "byteIndex": 11701 - } + "type": { + "type": "literal", + "value": true }, - { - "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-sqs/0.6.0/result.ts", - "line": 464, - "col": 2, - "byteIndex": 11729 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultError" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.ok" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 4811, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsReceiveResultBase" + }, + "name": "SqsReceiveResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 479, - "col": 0, - "byteIndex": 11979 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteResultFailure.", - "tags": [ + "id": 4751, + "name": "SqsSendBatchResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Batch send result with SQS error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 487, - "col": 4, - "byteIndex": 12260 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 488, - "col": 4, - "byteIndex": 12288 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 486, - "col": 2, - "byteIndex": 12234 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete" + "children": [ + { + "id": 4758, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 480, - "col": 2, - "byteIndex": 12057 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 481, - "col": 2, - "byteIndex": 12098 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.duration" + } + }, + { + "id": 4754, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 482, - "col": 2, - "byteIndex": 12137 - } + ] }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 483, - "col": 2, - "byteIndex": 12169 - } + "type": { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" }, - { - "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-sqs/0.6.0/result.ts", - "line": 484, - "col": 2, - "byteIndex": 12204 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultFailure" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.error" } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteBatchResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 512, - "col": 0, - "byteIndex": 12912 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful batch delete result.\n\nNote: `ok: true` even if some messages failed (partial failure).\nCheck `failed.length > 0` to detect partial failures." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultBase" + }, + { + "id": 4756, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" } } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 513, - "col": 2, - "byteIndex": 12994 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 4757, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 514, - "col": 2, - "byteIndex": 13022 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": "sqs:send-batch" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.kind" + } + }, + { + "id": 4753, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 515, - "col": 2, - "byteIndex": 13043 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "successful", - "jsDoc": { - "doc": "Array of message IDs that were successfully deleted." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 517, - "col": 2, - "byteIndex": 13129 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.ok" + } + }, + { + "id": 4752, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "failed", - "jsDoc": { - "doc": "Array of messages that failed to delete (may be non-empty even with ok: true)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 519, - "col": 2, - "byteIndex": 13259 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } - } - } - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4755, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsSendBatchResultBase" + }, + "name": "SqsSendBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteBatchResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 525, - "col": 0, - "byteIndex": 13358 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Batch delete result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 4759, + "name": "SqsSendBatchResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsDeleteBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultBase" - } + "kind": "text", + "text": "Batch send result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 526, - "col": 2, - "byteIndex": 13438 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 4766, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 527, - "col": 2, - "byteIndex": 13466 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.duration" + } + }, + { + "id": 4762, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 528, - "col": 2, - "byteIndex": 13488 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsFailureError" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.error" + } + }, + { + "id": 4764, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4765, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 529, - "col": 2, - "byteIndex": 13516 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [] - } + "type": { + "type": "literal", + "value": "sqs:send-batch" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.kind" + } + }, + { + "id": 4761, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 530, - "col": 2, - "byteIndex": 13552 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [] - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.ok" + } + }, + { + "id": 4760, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4763, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsSendBatchResultBase" + }, + "name": "SqsSendBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteBatchResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 536, - "col": 0, - "byteIndex": 13641 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Batch delete result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ + "id": 4743, + "name": "SqsSendBatchResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 537, - "col": 2, - "byteIndex": 13723 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "kind": "text", + "text": "Successful batch send result.\n\nNote: " }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 538, - "col": 2, - "byteIndex": 13752 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "kind": "code", + "text": "`ok: true`" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 539, - "col": 2, - "byteIndex": 13774 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] + "kind": "text", + "text": " even if some messages failed (partial failure).\nCheck " }, { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 540, - "col": 2, - "byteIndex": 13809 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "kind": "code", + "text": "`failed.length > 0`" }, { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 541, - "col": 2, - "byteIndex": 13838 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteBatchResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 556, - "col": 0, - "byteIndex": 14119 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteBatchResultSuccess.", - "tags": [ - { - "kind": "internal" + "kind": "text", + "text": " to detect partial failures." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 567, - "col": 4, - "byteIndex": 14499 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - }, - "typeParams": [] - }, - { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 568, - "col": 4, - "byteIndex": 14534 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } - } - } - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 569, - "col": 4, - "byteIndex": 14578 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 4750, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 566, - "col": 2, - "byteIndex": 14473 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-batch" + }, + { + "id": 4746, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 558, - "col": 2, - "byteIndex": 14209 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.error" + } + }, + { + "id": 4748, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of messages that failed to send (may be non-empty even with ok: true)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 559, - "col": 2, - "byteIndex": 14256 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4598, + "name": "SqsBatchFailedEntry", + "package": "@probitas-test/client-sqs" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 560, - "col": 2, - "byteIndex": 14294 } + } + }, + { + "id": 4749, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 561, - "col": 2, - "byteIndex": 14325 - } + "type": { + "type": "literal", + "value": "sqs:send-batch" }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.kind" + } + }, + { + "id": 4745, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 562, - "col": 2, - "byteIndex": 14350 - } + ] }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 563, - "col": 2, - "byteIndex": 14392 - } + "type": { + "type": "literal", + "value": true }, - { - "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-sqs/0.6.0/result.ts", - "line": 564, - "col": 2, - "byteIndex": 14443 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.ok" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteBatchResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultSuccess" - } + }, + { + "id": 4744, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.processed" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 4747, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of successfully sent messages." + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 4595, + "name": "SqsBatchSuccessEntry", + "package": "@probitas-test/client-sqs" + } + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsSendBatchResultBase" + }, + "name": "SqsSendBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteBatchResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 581, - "col": 0, - "byteIndex": 14797 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteBatchResultError.", - "tags": [ + "id": 4571, + "name": "SqsSendOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Options for sending a message." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 592, - "col": 4, - "byteIndex": 15154 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 593, - "col": 4, - "byteIndex": 15175 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 4572, + "name": "delaySeconds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delay in seconds before the message becomes visible (0-900)" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 591, - "col": 2, - "byteIndex": 15128 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-batch" + }, + { + "id": 4573, + "name": "messageAttributes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Message attributes" } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 583, - "col": 2, - "byteIndex": 14883 - } + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 4560, + "name": "SqsMessageAttribute", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 4575, + "name": "messageDeduplicationId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Message deduplication ID (required for FIFO queues without content-based deduplication)" + } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4574, + "name": "messageGroupId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Message group ID (required for FIFO queues)" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 584, - "col": 2, - "byteIndex": 14930 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4579, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 585, - "col": 2, - "byteIndex": 14968 - } + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + "inheritedFrom": { + "type": "reference", + "target": 4539, + "name": "SqsOptions.retry" + } + }, + { + "id": 4578, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 586, - "col": 2, - "byteIndex": 15000 - } + "name": "AbortSignal", + "package": "typescript" }, - { - "tsType": null, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 587, - "col": 2, - "byteIndex": 15028 - } + "inheritedFrom": { + "type": "reference", + "target": 4538, + "name": "SqsOptions.signal" + } + }, + { + "id": 4576, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] }, - { - "tsType": null, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 588, - "col": 2, - "byteIndex": 15065 - } + "type": { + "type": "intrinsic", + "name": "boolean" }, - { - "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-sqs/0.6.0/result.ts", - "line": 589, - "col": 2, - "byteIndex": 15098 - } + "inheritedFrom": { + "type": "reference", + "target": 4536, + "name": "SqsOptions.throwOnError" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteBatchResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultError" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 4577, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 4537, + "name": "SqsOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 4535, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteBatchResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 604, - "col": 0, - "byteIndex": 15353 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteBatchResultFailure.", - "tags": [ + "id": 4678, + "name": "SqsSendResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Send result with SQS error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 615, - "col": 4, - "byteIndex": 15708 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 616, - "col": 4, - "byteIndex": 15736 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 614, - "col": 2, - "byteIndex": 15682 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-batch" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 606, - "col": 2, - "byteIndex": 15443 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "children": [ + { + "id": 4686, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 607, - "col": 2, - "byteIndex": 15490 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 608, - "col": 2, - "byteIndex": 15529 - } + "type": { + "type": "intrinsic", + "name": "number" }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.duration" + } + }, + { + "id": 4681, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 609, - "col": 2, - "byteIndex": 15561 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 610, - "col": 2, - "byteIndex": 15596 - } + ] }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 611, - "col": 2, - "byteIndex": 15626 - } + "type": { + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" }, - { - "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-sqs/0.6.0/result.ts", - "line": 612, - "col": 2, - "byteIndex": 15652 - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.error" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteBatchResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultFailure" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsEnsureQueueResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 637, - "col": 0, - "byteIndex": 16232 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful ensure queue result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsEnsureQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultBase" - } + }, + { + "id": 4685, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "sqs:send" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 638, - "col": 2, - "byteIndex": 16314 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 4683, + "name": "md5OfBody", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4682, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4680, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 639, - "col": 2, - "byteIndex": 16342 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.ok" + } + }, + { + "id": 4679, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 640, - "col": 2, - "byteIndex": 16363 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "queueUrl", - "jsDoc": { - "doc": "URL of the queue (existing or newly created)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 642, - "col": 2, - "byteIndex": 16442 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4684, + "name": "sequenceNumber", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsSendResultBase" + }, + "name": "SqsSendResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsEnsureQueueResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 648, - "col": 0, - "byteIndex": 16519 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Ensure queue result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 4687, + "name": "SqsSendResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsEnsureQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultBase" - } + "kind": "text", + "text": "Send result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 649, - "col": 2, - "byteIndex": 16599 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 4695, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 650, - "col": 2, - "byteIndex": 16627 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.duration" + } + }, + { + "id": 4690, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 651, - "col": 2, - "byteIndex": 16649 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsFailureError" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.error" + } + }, + { + "id": 4694, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 652, - "col": 2, - "byteIndex": 16677 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:send" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsEnsureQueueResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 658, - "col": 0, - "byteIndex": 16761 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Ensure queue result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsEnsureQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultBase" - } + }, + { + "id": 4692, + "name": "md5OfBody", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 659, - "col": 2, - "byteIndex": 16843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 4691, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 4689, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 660, - "col": 2, - "byteIndex": 16872 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 661, - "col": 2, - "byteIndex": 16894 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.ok" + } + }, + { + "id": 4688, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 662, - "col": 2, - "byteIndex": 16929 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 4693, + "name": "sequenceNumber", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsSendResultBase" + }, + "name": "SqsSendResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsEnsureQueueResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 677, - "col": 0, - "byteIndex": 17212 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsEnsureQueueResultSuccess.", - "tags": [ + "id": 4669, + "name": "SqsSendResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful send result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 687, - "col": 4, - "byteIndex": 17528 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 688, - "col": 4, - "byteIndex": 17550 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 4677, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 686, - "col": 2, - "byteIndex": 17502 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:ensure-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:ensure-queue" + }, + { + "id": 4672, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 679, - "col": 2, - "byteIndex": 17302 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 680, - "col": 2, - "byteIndex": 17349 - } + "type": { + "type": "literal", + "value": null }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.error" + } + }, + { + "id": 4676, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 681, - "col": 2, - "byteIndex": 17387 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 682, - "col": 2, - "byteIndex": 17418 - } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 683, - "col": 2, - "byteIndex": 17443 - } + "type": { + "type": "literal", + "value": "sqs:send" }, - { - "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-sqs/0.6.0/result.ts", - "line": 684, - "col": 2, - "byteIndex": 17472 - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsEnsureQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultSuccess" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsEnsureQueueResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 699, - "col": 0, - "byteIndex": 17732 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsEnsureQueueResultError.", - "tags": [ - { - "kind": "internal" + }, + { + "id": 4674, + "name": "md5OfBody", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MD5 hash of the message body (for integrity verification)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 709, - "col": 4, - "byteIndex": 18047 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 710, - "col": 4, - "byteIndex": 18068 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + }, + { + "id": 4673, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unique identifier for the sent message." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 708, - "col": 2, - "byteIndex": 18021 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:ensure-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:ensure-queue" + }, + { + "id": 4671, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 701, - "col": 2, - "byteIndex": 17818 - } + ] }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.ok" + } + }, + { + "id": 4670, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 702, - "col": 2, - "byteIndex": 17865 - } + ] }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 703, - "col": 2, - "byteIndex": 17903 - } + "type": { + "type": "literal", + "value": true }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.processed" + } + }, + { + "id": 4675, + "name": "sequenceNumber", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sequence number for FIFO queues (present only for FIFO queues)." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 704, - "col": 2, - "byteIndex": 17935 - } + ] }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "result.ts", + "qualifiedName": "SqsSendResultBase" + }, + "name": "SqsSendResultBase", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 5106, + "name": "SqsDeleteBatchResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 705, - "col": 2, - "byteIndex": 17963 - } + "kind": "text", + "text": "Result of batch deleting messages." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 4923, + "name": "SqsDeleteBatchResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "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-sqs/0.6.0/result.ts", - "line": 706, - "col": 2, - "byteIndex": 17991 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 4931, + "name": "SqsDeleteBatchResultError", + "package": "@probitas-test/client-sqs" + }, { - "repr": "SqsEnsureQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultError" - } + "type": "reference", + "target": 4939, + "name": "SqsDeleteBatchResultFailure", + "package": "@probitas-test/client-sqs" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "SqsEnsureQueueResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 721, - "col": 0, - "byteIndex": 18246 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsEnsureQueueResultFailure.", - "tags": [ + "id": 5107, + "name": "SqsDeleteQueueResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Result of deleting a queue." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 731, - "col": 4, - "byteIndex": 18573 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 732, - "col": 4, - "byteIndex": 18601 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 730, - "col": 2, - "byteIndex": 18547 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:ensure-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:ensure-queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 723, - "col": 2, - "byteIndex": 18336 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 724, - "col": 2, - "byteIndex": 18383 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 725, - "col": 2, - "byteIndex": 18422 - } - }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 726, - "col": 2, - "byteIndex": 18454 - } + "type": "reference", + "target": 5050, + "name": "SqsDeleteQueueResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 727, - "col": 2, - "byteIndex": 18489 - } + "type": "reference", + "target": 5056, + "name": "SqsDeleteQueueResultError", + "package": "@probitas-test/client-sqs" }, { - "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-sqs/0.6.0/result.ts", - "line": 728, - "col": 2, - "byteIndex": 18517 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsEnsureQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultFailure" - } + "type": "reference", + "target": 5062, + "name": "SqsDeleteQueueResultFailure", + "package": "@probitas-test/client-sqs" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "SqsDeleteQueueResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 753, - "col": 0, - "byteIndex": 19097 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful delete queue result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5108, + "name": "SqsDeleteResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsDeleteQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultBase" - } + "kind": "text", + "text": "Result of deleting a message." } - ], - "constructors": [], - "methods": [], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 754, - "col": 2, - "byteIndex": 19179 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + "type": "reference", + "target": 4870, + "name": "SqsDeleteResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 755, - "col": 2, - "byteIndex": 19207 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + "type": "reference", + "target": 4876, + "name": "SqsDeleteResultError", + "package": "@probitas-test/client-sqs" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 756, - "col": 2, - "byteIndex": 19228 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "reference", + "target": 4882, + "name": "SqsDeleteResultFailure", + "package": "@probitas-test/client-sqs" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "SqsDeleteQueueResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 762, - "col": 0, - "byteIndex": 19300 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete queue result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5109, + "name": "SqsEnsureQueueResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsDeleteQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultBase" - } + "kind": "text", + "text": "Result of ensuring a queue exists." } - ], - "constructors": [], - "methods": [], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 763, - "col": 2, - "byteIndex": 19380 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + "type": "reference", + "target": 4990, + "name": "SqsEnsureQueueResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 764, - "col": 2, - "byteIndex": 19408 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": "reference", + "target": 4997, + "name": "SqsEnsureQueueResultError", + "package": "@probitas-test/client-sqs" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 765, - "col": 2, - "byteIndex": 19430 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] + "type": "reference", + "target": 5004, + "name": "SqsEnsureQueueResultFailure", + "package": "@probitas-test/client-sqs" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "SqsDeleteQueueResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 771, - "col": 0, - "byteIndex": 19515 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete queue result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 4668, + "name": "SqsFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsDeleteQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultBase" - } + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the SQS service." } - ], - "constructors": [], - "methods": [], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 772, - "col": 2, - "byteIndex": 19597 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": "reference", + "target": 5124, + "name": "SqsConnectionError", + "package": "@probitas-test/client-sqs" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 773, - "col": 2, - "byteIndex": 19626 + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "name": "AbortError", + "package": "@probitas-test/client" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 774, - "col": 2, - "byteIndex": 19648 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "typeParams": [] + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "SqsDeleteQueueResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 789, - "col": 0, - "byteIndex": 19932 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteQueueResultSuccess.", - "tags": [ + "id": 4667, + "name": "SqsOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Error types that indicate an operation was processed by the server.\nThese errors occur after the operation reaches the SQS service." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 798, - "col": 4, - "byteIndex": 20219 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 797, - "col": 2, - "byteIndex": 20193 - } - } - ], - "properties": [ + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "sqs:delete-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 791, - "col": 2, - "byteIndex": 20022 - } + "type": "reference", + "target": 5119, + "name": "SqsCommandError", + "package": "@probitas-test/client-sqs" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 792, - "col": 2, - "byteIndex": 20069 - } + "type": "reference", + "target": 5142, + "name": "SqsQueueNotFoundError", + "package": "@probitas-test/client-sqs" }, { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 793, - "col": 2, - "byteIndex": 20107 - } + "type": "reference", + "target": 5136, + "name": "SqsMessageTooLargeError", + "package": "@probitas-test/client-sqs" }, { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 794, - "col": 2, - "byteIndex": 20138 - } + "type": "reference", + "target": 5114, + "name": "SqsBatchError", + "package": "@probitas-test/client-sqs" }, { - "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-sqs/0.6.0/result.ts", - "line": 795, - "col": 2, - "byteIndex": 20163 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 5132, + "name": "SqsMessageNotFoundError", + "package": "@probitas-test/client-sqs" + }, { - "repr": "SqsDeleteQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultSuccess" - } + "type": "reference", + "target": 5128, + "name": "SqsError", + "package": "@probitas-test/client-sqs" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "SqsDeleteQueueResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 808, - "col": 0, - "byteIndex": 20364 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteQueueResultError.", - "tags": [ + "id": 5110, + "name": "SqsReceiveResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Result of receiving messages." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 817, - "col": 4, - "byteIndex": 20651 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 818, - "col": 4, - "byteIndex": 20672 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 816, - "col": 2, - "byteIndex": 20625 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 810, - "col": 2, - "byteIndex": 20450 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 811, - "col": 2, - "byteIndex": 20497 - } - }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 812, - "col": 2, - "byteIndex": 20535 - } + "type": "reference", + "target": 4810, + "name": "SqsReceiveResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 813, - "col": 2, - "byteIndex": 20567 - } + "type": "reference", + "target": 4817, + "name": "SqsReceiveResultError", + "package": "@probitas-test/client-sqs" }, { - "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-sqs/0.6.0/result.ts", - "line": 814, - "col": 2, - "byteIndex": 20595 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultError" - } + "type": "reference", + "target": 4824, + "name": "SqsReceiveResultFailure", + "package": "@probitas-test/client-sqs" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "SqsDeleteQueueResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 829, - "col": 0, - "byteIndex": 20850 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteQueueResultFailure.", - "tags": [ + "id": 5111, + "name": "SqsResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Union type of all SQS result types." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 838, - "col": 4, - "byteIndex": 21149 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 839, - "col": 4, - "byteIndex": 21177 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 837, - "col": 2, - "byteIndex": 21123 - } - } - ], - "properties": [ + "type": "reference", + "target": 5113, + "name": "SqsSendResult", + "package": "@probitas-test/client-sqs" + }, { - "tsType": { - "repr": "sqs:delete-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 831, - "col": 2, - "byteIndex": 20940 - } + "type": "reference", + "target": 5112, + "name": "SqsSendBatchResult", + "package": "@probitas-test/client-sqs" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 832, - "col": 2, - "byteIndex": 20987 - } + "type": "reference", + "target": 5110, + "name": "SqsReceiveResult", + "package": "@probitas-test/client-sqs" }, { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 833, - "col": 2, - "byteIndex": 21026 - } + "type": "reference", + "target": 5108, + "name": "SqsDeleteResult", + "package": "@probitas-test/client-sqs" }, { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 834, - "col": 2, - "byteIndex": 21058 - } + "type": "reference", + "target": 5106, + "name": "SqsDeleteBatchResult", + "package": "@probitas-test/client-sqs" }, { - "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-sqs/0.6.0/result.ts", - "line": 835, - "col": 2, - "byteIndex": 21093 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 5109, + "name": "SqsEnsureQueueResult", + "package": "@probitas-test/client-sqs" + }, { - "repr": "SqsDeleteQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultFailure" - } + "type": "reference", + "target": 5107, + "name": "SqsDeleteQueueResult", + "package": "@probitas-test/client-sqs" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "createSqsClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/client.ts", - "line": 495, - "col": 0, - "byteIndex": 13915 + "id": 5112, + "name": "SqsSendBatchResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result of batch sending messages." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new Amazon SQS client instance.\n\nThe client provides queue management, message publishing and consumption,\nbatch operations, and supports both standard and FIFO queues via AWS SDK.\n", - "tags": [ + "type": { + "type": "union", + "types": [ { - "kind": "param", - "name": "config", - "doc": "- SQS client configuration" + "type": "reference", + "target": 4743, + "name": "SqsSendBatchResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "kind": "return", - "doc": "A promise resolving to a new SQS client instance\n" + "type": "reference", + "target": 4751, + "name": "SqsSendBatchResultError", + "package": "@probitas-test/client-sqs" }, { - "kind": "example", - "doc": "Basic usage with existing queue\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"ap-northeast-1\",\n queueUrl: \"https://sqs.ap-northeast-1.amazonaws.com/123456789/my-queue\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n\n // Send a message\n const sendResult = await sqs.send(JSON.stringify({\n type: \"ORDER\",\n orderId: \"123\",\n }));\n\n if (sendResult.ok) {\n console.log(\"Message ID:\", sendResult.messageId);\n } else {\n console.error(\"Error:\", sendResult.error.message);\n }\n\n await sqs.close();\n}\n```\n" - }, + "type": "reference", + "target": 4759, + "name": "SqsSendBatchResultFailure", + "package": "@probitas-test/client-sqs" + } + ] + } + }, + { + "id": 5113, + "name": "SqsSendResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Using ElasticMQ for local development\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: {\n accessKeyId: \"test\",\n secretAccessKey: \"test\",\n },\n });\n\n // Create queue dynamically (also sets queueUrl)\n const result = await sqs.ensureQueue(\"test-queue\");\n if (result.ok) {\n console.log(result.queueUrl); // http://localhost:9324/000000000000/test-queue\n }\n\n await sqs.close();\n}\n```\n" - }, + "kind": "text", + "text": "Result of sending a message." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "kind": "example", - "doc": "Receiving messages with long polling\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n await sqs.ensureQueue(\"test-queue\");\n\n // Long polling waits up to 20 seconds for messages\n const receiveResult = await sqs.receive({\n maxMessages: 10,\n waitTimeSeconds: 20,\n visibilityTimeout: 30,\n });\n\n if (receiveResult.ok) {\n console.log(\"Received:\", receiveResult.messages.length);\n\n // Process and acknowledge messages\n for (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\n await sqs.close();\n}\n```\n" + "type": "reference", + "target": 4669, + "name": "SqsSendResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "kind": "example", - "doc": "Batch operations for high throughput\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n await sqs.ensureQueue(\"test-queue\");\n\n // Send multiple messages in a single API call\n const batchResult = await sqs.sendBatch([\n { id: \"1\", body: JSON.stringify({ event: \"user.created\", userId: \"a1\" }) },\n { id: \"2\", body: JSON.stringify({ event: \"user.created\", userId: \"a2\" }) },\n { id: \"3\", body: JSON.stringify({ event: \"user.updated\", userId: \"a3\" }) },\n ]);\n\n if (batchResult.ok) {\n console.log(`Sent: ${batchResult.successful.length}`);\n console.log(`Failed: ${batchResult.failed.length}`);\n }\n\n // Batch delete processed messages\n const receiveResult = await sqs.receive({ maxMessages: 10 });\n if (receiveResult.ok) {\n const handles = receiveResult.messages.map((m) => m.receiptHandle);\n await sqs.deleteBatch(handles);\n }\n\n await sqs.close();\n}\n```\n" + "type": "reference", + "target": 4678, + "name": "SqsSendResultError", + "package": "@probitas-test/client-sqs" }, { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n await using sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n\n await sqs.ensureQueue(\"test-queue\");\n await sqs.send(\"Hello, SQS!\");\n // Client automatically closed when scope exits\n}\n```" + "type": "reference", + "target": 4687, + "name": "SqsSendResultFailure", + "package": "@probitas-test/client-sqs" } ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "SqsClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsClientConfig" + } + }, + { + "id": 5103, + "name": "createSqsClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 5104, + "name": "createSqsClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new Amazon SQS client instance.\n\nThe client provides queue management, message publishing and consumption,\nbatch operations, and supports both standard and FIFO queues via AWS SDK." } - } - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsClient" - } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new SQS client instance" + } + ] + }, + { + "tag": "@example", + "name": "Basic usage with existing queue", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"ap-northeast-1\",\n queueUrl: \"https://sqs.ap-northeast-1.amazonaws.com/123456789/my-queue\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n\n // Send a message\n const sendResult = await sqs.send(JSON.stringify({\n type: \"ORDER\",\n orderId: \"123\",\n }));\n\n if (sendResult.ok) {\n console.log(\"Message ID:\", sendResult.messageId);\n } else {\n console.error(\"Error:\", sendResult.error.message);\n }\n\n await sqs.close();\n}\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using ElasticMQ for local development", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: {\n accessKeyId: \"test\",\n secretAccessKey: \"test\",\n },\n });\n\n // Create queue dynamically (also sets queueUrl)\n const result = await sqs.ensureQueue(\"test-queue\");\n if (result.ok) {\n console.log(result.queueUrl); // http://localhost:9324/000000000000/test-queue\n }\n\n await sqs.close();\n}\n```" + } + ] + }, + { + "tag": "@example", + "name": "Receiving messages with long polling", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n await sqs.ensureQueue(\"test-queue\");\n\n // Long polling waits up to 20 seconds for messages\n const receiveResult = await sqs.receive({\n maxMessages: 10,\n waitTimeSeconds: 20,\n visibilityTimeout: 30,\n });\n\n if (receiveResult.ok) {\n console.log(\"Received:\", receiveResult.messages.length);\n\n // Process and acknowledge messages\n for (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\n await sqs.close();\n}\n```" + } + ] + }, + { + "tag": "@example", + "name": "Batch operations for high throughput", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n await sqs.ensureQueue(\"test-queue\");\n\n // Send multiple messages in a single API call\n const batchResult = await sqs.sendBatch([\n { id: \"1\", body: JSON.stringify({ event: \"user.created\", userId: \"a1\" }) },\n { id: \"2\", body: JSON.stringify({ event: \"user.created\", userId: \"a2\" }) },\n { id: \"3\", body: JSON.stringify({ event: \"user.updated\", userId: \"a3\" }) },\n ]);\n\n if (batchResult.ok) {\n console.log(`Sent: ${batchResult.successful.length}`);\n console.log(`Failed: ${batchResult.failed.length}`);\n }\n\n // Batch delete processed messages\n const receiveResult = await sqs.receive({ maxMessages: 10 });\n if (receiveResult.ok) {\n const handles = receiveResult.messages.map((m) => m.receiptHandle);\n await sqs.deleteBatch(handles);\n }\n\n await sqs.close();\n}\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n await using sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n\n await sqs.ensureQueue(\"test-queue\");\n await sqs.send(\"Hello, SQS!\");\n // Client automatically closed when scope exits\n}\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 5105, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQS client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 4548, + "name": "SqsClientConfig", + "package": "@probitas-test/client-sqs" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 4624, + "name": "SqsClient", + "package": "@probitas-test/client-sqs" } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/client-sqs", + "packageVersion": "0.6.1" } diff --git a/data/api/client.json b/data/api/client.json index 60efb4f..22eee9d 100644 --- a/data/api/client.json +++ b/data/api/client.json @@ -1,1141 +1,1615 @@ { - "name": "client", - "specifier": "@probitas/client", - "version": "0.6.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-test/client\";\nimport { ClientError, ConnectionError, TimeoutError } from \"@probitas-test/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-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/probitas-test/probitas-client)\n- [Probitas Framework](https://github.com/probitas-test/probitas)\n", - "exports": [ - { - "name": "CommonConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 29, - "col": 0, - "byteIndex": 839 + "schemaVersion": "2.0", + "id": 28, + "name": "@probitas-test/client", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Core utilities and types for Probitas client libraries.\n\nThis package provides shared types, error classes, and utilities used across\nall " }, - "declarationKind": "export", - "jsDoc": { - "doc": "Common connection configuration shared across all network clients.\n\nThis interface provides a unified way to configure connection parameters\nfor all network-based clients. Each client extends this with service-specific\noptions while maintaining a consistent base.\n", - "tags": [ - { - "kind": "example", - "doc": "Use with string URL\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\nconst client = createHttpClient({ url: \"http://localhost:3000\" });\nawait client[Symbol.asyncDispose]();\n```\n" - }, + { + "kind": "code", + "text": "`@probitas-test/client-*`" + }, + { + "kind": "text", + "text": " packages.\n\n## Features\n\n- **Common Options**: Shared configuration types like " + }, + { + "kind": "code", + "text": "`CommonOptions`" + }, + { + "kind": "text", + "text": " and " + }, + { + "kind": "code", + "text": "`RetryOptions`" + }, + { + "kind": "text", + "text": "\n- **Error Hierarchy**: Base error classes (" + }, + { + "kind": "code", + "text": "`ClientError`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`ConnectionError`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`TimeoutError`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`AbortError`" + }, + { + "kind": "text", + "text": ")\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\nnpm install @probitas-test/client\n```" + }, + { + "kind": "text", + "text": "\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" + }, + { + "kind": "code", + "text": "```ts\nimport type { CommonOptions, RetryOptions } from \"@probitas-test/client\";\nimport { ClientError, ConnectionError, TimeoutError } from \"@probitas-test/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```" + }, + { + "kind": "text", + "text": "\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-http`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-http) | HTTP client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-graphql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-graphql) | GraphQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-grpc`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-grpc) | gRPC client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-connectrpc`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-connectrpc) | ConnectRPC client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-postgres`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-postgres) | PostgreSQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-mysql`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-mysql) | MySQL client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-sqlite`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-sqlite) | SQLite client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sql-duckdb`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sql-duckdb) | DuckDB client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-redis`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-redis) | Redis client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-mongodb`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-mongodb) | MongoDB client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-rabbitmq`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-rabbitmq) | RabbitMQ client |\n| [" + }, + { + "kind": "code", + "text": "`@probitas-test/client-sqs`" + }, + { + "kind": "text", + "text": "](https://www.npmjs.com/package/@probitas-test/client-sqs) | AWS SQS client |\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas-packages)\n- [Probitas Framework](https://github.com/probitas-test/probitas)" + } + ] + }, + "children": [ + { + "id": 82, + "name": "AbortError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Use with config object\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\nconst client = createHttpClient({\n url: {\n host: \"api.example.com\",\n port: 443,\n username: \"user\",\n password: \"secret\",\n },\n});\nawait client[Symbol.asyncDispose]();\n```" + "kind": "text", + "text": "Error thrown when an operation is aborted via AbortSignal." } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "host", - "jsDoc": { - "doc": "Hostname or IP address.", - "tags": [ + "children": [ + { + "id": 83, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 84, + "name": "AbortError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"localhost\"" + "id": 85, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 86, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 34, - "col": 2, - "byteIndex": 950 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 82, + "name": "AbortError", + "package": "@probitas-test/client" + }, + "overwrites": { + "type": "reference", + "target": 60, + "name": "ClientError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 59, + "name": "ClientError.constructor" + } + }, + { + "id": 88, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "abort" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 65, + "name": "ClientError.kind" + } + }, + { + "id": 87, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "AbortError" }, + "defaultValue": "\"AbortError\"", + "overwrites": { + "type": "reference", + "target": 64, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 58, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 58, + "name": "ClientError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "port", - "jsDoc": { - "doc": "Port number. Each service has its own default." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 39, - "col": 2, - "byteIndex": 1041 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Base error class for all client errors.\n\nThe " }, { - "name": "username", - "jsDoc": { - "doc": "Username for authentication." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 44, - "col": 2, - "byteIndex": 1114 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "code", + "text": "`kind`" }, { - "name": "password", - "jsDoc": { - "doc": "Password for authentication." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 49, - "col": 2, - "byteIndex": 1191 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own error kinds without modifying this core package.\nSubclasses can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + }, + "children": [ + { + "id": 59, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 60, + "name": "ClientError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 61, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 62, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"unknown\"" + }, + { + "id": 63, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": 58, + "name": "ClientError", + "package": "@probitas-test/client" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + }, + { + "id": 65, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 64, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"ClientError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 66, + "name": "ConnectionError" + }, + { + "type": "reference", + "target": 73, + "name": "TimeoutError" + }, + { + "type": "reference", + "target": 82, + "name": "AbortError" + } + ] }, { - "name": "RetryOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 55, - "col": 0, - "byteIndex": 1262 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Retry configuration options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + "id": 66, + "name": "ConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "maxAttempts", - "jsDoc": { - "doc": "Maximum number of attempts (1 = no retry).", - "tags": [ + "kind": "text", + "text": "Error thrown when a connection cannot be established." + } + ] + }, + "children": [ + { + "id": 67, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 68, + "name": "ConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "unsupported", - "value": "@default 1" + "id": 69, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 70, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 60, - "col": 2, - "byteIndex": 1372 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 66, + "name": "ConnectionError", + "package": "@probitas-test/client" + }, + "overwrites": { + "type": "reference", + "target": 60, + "name": "ClientError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 59, + "name": "ClientError.constructor" + } + }, + { + "id": 72, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 65, + "name": "ClientError.kind" + } + }, + { + "id": 71, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "ConnectionError" }, + "defaultValue": "\"ConnectionError\"", + "overwrites": { + "type": "reference", + "target": 64, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 58, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 73, + "name": "TimeoutError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "backoff", - "jsDoc": { - "doc": "Backoff strategy.", - "tags": [ + "kind": "text", + "text": "Error thrown when an operation times out." + } + ] + }, + "children": [ + { + "id": 74, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 75, + "name": "TimeoutError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"exponential\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 66, - "col": 2, - "byteIndex": 1469 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "id": 76, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "repr": "linear", - "kind": "literal", - "literal": { - "kind": "string", - "string": "linear" + "id": 77, + "name": "timeoutMs", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } }, { - "repr": "exponential", - "kind": "literal", - "literal": { - "kind": "string", - "string": "exponential" + "id": 78, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" } } - ] - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 73, + "name": "TimeoutError", + "package": "@probitas-test/client" + }, + "overwrites": { + "type": "reference", + "target": 60, + "name": "ClientError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 59, + "name": "ClientError.constructor" + } + }, + { + "id": 80, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "timeout" + }, + "defaultValue": "...", + "overwrites": { + "type": "reference", + "target": 65, + "name": "ClientError.kind" + } + }, + { + "id": 79, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "TimeoutError" }, + "defaultValue": "\"TimeoutError\"", + "overwrites": { + "type": "reference", + "target": 64, + "name": "ClientError.name" + } + }, + { + "id": 81, + "name": "timeoutMs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 58, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 47, + "name": "ClientResult", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "initialDelay", - "jsDoc": { - "doc": "Initial delay in milliseconds.", - "tags": [ - { - "kind": "unsupported", - "value": "@default 1000" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 72, - "col": 2, - "byteIndex": 1584 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Base interface for all client result types.\n\nAll client operation results (responses, query results, etc.) extend this interface,\nproviding a consistent structure across all Probitas clients. The " }, { - "name": "maxDelay", - "jsDoc": { - "doc": "Maximum delay in milliseconds.", - "tags": [ - { - "kind": "unsupported", - "value": "@default 30000" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 78, - "col": 2, - "byteIndex": 1687 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property\nserves as a discriminator for type-safe switch statements.\n\nThis mirrors the design of " + }, + { + "kind": "inline-tag", + "tag": "@link", + "text": "ClientError", + "target": 58 + }, + { + "kind": "text", + "text": " where " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " is used instead of " + }, + { + "kind": "code", + "text": "`type`" + }, + { + "kind": "text", + "text": "\nfor consistency across the framework." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ClientResult } from \"@probitas-test/client\";\n\ninterface HttpResponse extends ClientResult {\n readonly kind: \"http\";\n readonly status: number;\n}\n\ninterface SqlQueryResult extends ClientResult {\n readonly kind: \"sql\";\n readonly rowCount: number;\n}\n\ntype MyResult = HttpResponse | SqlQueryResult;\n\nfunction handleResult(result: MyResult) {\n // Check if request reached the server\n if (!result.processed) {\n console.error(\"Network failure:\", result.error);\n return;\n }\n\n // Check if operation succeeded\n if (!result.ok) {\n console.error(\"Operation failed:\", result.error);\n return;\n }\n\n // Type narrowing by kind\n switch (result.kind) {\n case \"http\":\n console.log(`HTTP ${result.status} in ${result.duration}ms`);\n break;\n case \"sql\":\n console.log(`${result.rowCount} rows in ${result.duration}ms`);\n break;\n }\n}\n```" + } + ] + } + ] + }, + "children": [ + { + "id": 52, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 51, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 48, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 50, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 49, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 29, + "name": "CommonConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Common connection configuration shared across all network clients.\n\nThis interface provides a unified way to configure connection parameters\nfor all network-based clients. Each client extends this with service-specific\noptions while maintaining a consistent base." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Use with string URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\nconst client = createHttpClient({ url: \"http://localhost:3000\" });\nawait client[Symbol.asyncDispose]();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Use with config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\nconst client = createHttpClient({\n url: {\n host: \"api.example.com\",\n port: 443,\n username: \"user\",\n password: \"secret\",\n },\n});\nawait client[Symbol.asyncDispose]();\n```" + } + ] + } + ] + }, + "children": [ + { + "id": 30, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "retryOn", - "jsDoc": { - "doc": "Function to determine if the error should trigger a retry." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 83, - "col": 2, - "byteIndex": 1794 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "params": [ + "comment": { + "summary": [ + { + "kind": "text", + "text": "Hostname or IP address." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" - } - } + "kind": "code", + "text": "```ts\n\"localhost\"\n```" } - ], - "typeParams": [] + ] } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "CommonOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 89, - "col": 0, - "byteIndex": 1896 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Common options shared across all clients." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "timeout", - "jsDoc": { - "doc": "Timeout in milliseconds." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 93, - "col": 2, - "byteIndex": 1973 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + }, + { + "id": 33, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "signal", - "jsDoc": { - "doc": "AbortSignal for cancellation." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 98, - "col": 2, - "byteIndex": 2050 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "AbortSignal", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortSignal" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." } - }, - "typeParams": [] + ] }, - { - "name": "retry", - "jsDoc": { - "doc": "Retry configuration." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 103, - "col": 2, - "byteIndex": 2122 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "RetryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RetryOptions" + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 31, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 32, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "ClientResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 157, - "col": 0, - "byteIndex": 3592 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base interface for all client result types.\n\nAll client operation results (responses, query results, etc.) extend this interface,\nproviding a consistent structure across all Probitas clients. The `kind` property\nserves as a discriminator for type-safe switch statements.\n\nThis mirrors the design of {@link ClientError} where `kind` is used instead of `type`\nfor consistency across the framework.\n", - "tags": [ + "id": 43, + "name": "CommonOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nimport type { ClientResult } from \"@probitas-test/client\";\n\ninterface HttpResponse extends ClientResult {\n readonly kind: \"http\";\n readonly status: number;\n}\n\ninterface SqlQueryResult extends ClientResult {\n readonly kind: \"sql\";\n readonly rowCount: number;\n}\n\ntype MyResult = HttpResponse | SqlQueryResult;\n\nfunction handleResult(result: MyResult) {\n // Check if request reached the server\n if (!result.processed) {\n console.error(\"Network failure:\", result.error);\n return;\n }\n\n // Check if operation succeeded\n if (!result.ok) {\n console.error(\"Operation failed:\", result.error);\n return;\n }\n\n // Type narrowing by kind\n switch (result.kind) {\n case \"http\":\n console.log(`HTTP ${result.status} in ${result.duration}ms`);\n break;\n case \"sql\":\n console.log(`${result.rowCount} rows in ${result.duration}ms`);\n break;\n }\n}\n```" + "kind": "text", + "text": "Common options shared across all clients." } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "kind", - "jsDoc": { - "doc": "Result kind discriminator.\n\nThe `kind` property is typed as `string` to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with `as const`." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 165, - "col": 2, - "byteIndex": 3906 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "children": [ + { + "id": 46, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "processed", - "jsDoc": { - "doc": "Whether the operation was processed by the server.\n\n- `true`: Server received and processed the request (success or error response)\n- `false`: Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 175, - "col": 2, - "byteIndex": 4277 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] }, - { - "name": "ok", - "jsDoc": { - "doc": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways `false` when `processed` is `false`." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 184, - "col": 2, - "byteIndex": 4541 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 34, + "name": "RetryOptions", + "package": "@probitas-test/client" + } + }, + { + "id": 45, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "error", - "jsDoc": { - "doc": "Error that occurred during the operation (null if successful).\n\nContains the error when `ok` is `false`. The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 192, - "col": 2, - "byteIndex": 4796 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] }, - { - "name": "duration", - "jsDoc": { - "doc": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 200, - "col": 2, - "byteIndex": 4998 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "name": "AbortSignal", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 44, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] }, { - "name": "Fetch", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/types.ts", - "line": 210, - "col": 0, - "byteIndex": 5268 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "A `fetch`-compatible function.\n\nDeclared structurally instead of as `typeof fetch` because runtime typings\nadd members (Bun's `fetch.preconnect`) that a custom implementation or test\ndouble should not have to provide." + "id": 34, + "name": "RetryOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration options." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "children": [ + { + "id": 36, + "name": "backoff", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Backoff strategy." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Response" - } + "kind": "code", + "text": "```ts\n\"exponential\"\n```" } - ], - "typeName": "Promise" + ] } - }, - "params": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "input", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RequestInfo", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RequestInfo" - } - }, - { - "repr": "URL", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "URL" - } - } - ] - } + "type": "literal", + "value": "linear" }, { - "kind": "identifier", - "name": "init", - "optional": true, - "tsType": { - "repr": "RequestInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RequestInit" - } - } + "type": "literal", + "value": "exponential" } - ], - "typeParams": [] + ] } }, - "typeParams": [] - } - }, - { - "name": "ClientError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 8, - "col": 0, - "byteIndex": 275 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for all client errors.\n\nThe `kind` property is typed as `string` to allow client-specific packages\nto define their own error kinds without modifying this core package.\nSubclasses can narrow the type using literal types with `as const`." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + { + "id": 37, + "name": "initialDelay", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Initial delay in milliseconds." + } + ], + "blockTags": [ { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n1000\n```" } - }, - "right": "unknown", - "tsType": null - }, + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 35, + "name": "maxAttempts", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } + "kind": "text", + "text": "Maximum number of attempts (1 = no retry)." } ], - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 12, - "col": 2, - "byteIndex": 394 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 9, - "col": 2, - "byteIndex": 318 - } + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n1\n```" + } + ] + } + ] }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 10, - "col": 2, - "byteIndex": 368 - } + "type": { + "type": "intrinsic", + "name": "number" } - ], - "indexSignatures": [], - "methods": [], - "extends": "Error", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "ConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 25, - "col": 0, - "byteIndex": 615 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a connection cannot be established." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 38, + "name": "maxDelay", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Maximum delay in milliseconds." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n30000\n```" } - } + ] } - ], - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 29, - "col": 2, - "byteIndex": 765 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 26, - "col": 2, - "byteIndex": 668 - } + }, + { + "id": 39, + "name": "retryOn", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function to determine if the error should trigger a retry." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 27, - "col": 2, - "byteIndex": 714 + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 40, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 41, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 42, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] } } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ] }, { - "name": "TimeoutError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 37, - "col": 0, - "byteIndex": 923 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when an operation times out." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 53, + "name": "Fetch", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "timeoutMs", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 42, - "col": 2, - "byteIndex": 1094 - } - } - ], - "properties": [ + "kind": "text", + "text": "A " + }, { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 38, - "col": 2, - "byteIndex": 973 - } + "kind": "code", + "text": "`fetch`" }, { - "tsType": { - "repr": "timeout", - "kind": "literal", - "literal": { - "kind": "string", - "string": "timeout" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 39, - "col": 2, - "byteIndex": 1016 - } + "kind": "text", + "text": "-compatible function.\n\nDeclared structurally instead of as " }, { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "timeoutMs", - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 40, - "col": 2, - "byteIndex": 1063 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "AbortError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 51, - "col": 0, - "byteIndex": 1317 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when an operation is aborted via AbortSignal." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "kind": "code", + "text": "`typeof fetch`" + }, { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 55, - "col": 2, - "byteIndex": 1452 - } - } - ], - "properties": [ + "kind": "text", + "text": " because runtime typings\nadd members (Bun's " + }, { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 52, - "col": 2, - "byteIndex": 1365 - } + "kind": "code", + "text": "`fetch.preconnect`" }, { - "tsType": { - "repr": "abort", - "kind": "literal", - "literal": { - "kind": "string", - "string": "abort" + "kind": "text", + "text": ") that a custom implementation or test\ndouble should not have to provide." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 54, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 55, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 56, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "RequestInfo" + }, + "name": "RequestInfo", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "URL" + }, + "name": "URL", + "package": "typescript" + } + ] + } + }, + { + "id": 57, + "name": "init", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "RequestInit" + }, + "name": "RequestInit", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client/0.6.0/errors.ts", - "line": 53, - "col": 2, - "byteIndex": 1406 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] + ] + } } } - ] + ], + "packageName": "@probitas-test/client", + "packageVersion": "0.6.1" } diff --git a/data/api/core.json b/data/api/core.json index 5bde4b8..6e1f547 100644 --- a/data/api/core.json +++ b/data/api/core.json @@ -1,1341 +1,1823 @@ { - "name": "core", - "specifier": "@probitas/core", - "version": "0.3.3", - "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/probitas-test/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- Import `Origin` from `@probitas/core/origin` for file and line information\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/core/0.3.3/types/scenario.ts", - "line": 23, - "col": 0, - "byteIndex": 551 + "schemaVersion": "2.0", + "id": 5147, + "name": "@probitas-test/core", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "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/probitas-test/probitas)\n- [@probitas-test/probitas](https://www.npmjs.com/package/@probitas-test/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas-test/builder](https://www.npmjs.com/package/@probitas-test/builder) | Uses these types to build scenarios |\n| [@probitas-test/runner](https://www.npmjs.com/package/@probitas-test/runner) | Executes scenario definitions |\n| [@probitas-test/discover](https://www.npmjs.com/package/@probitas-test/discover) | Discovers scenario files to load |\n\n## Type Definitions\n\nThe type system is designed around immutable data structures:\n\n- " }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration options for scenario execution.\n\nDefines metadata and default behavior for an entire scenario.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nconst options: ScenarioOptions = {\n tags: [\"api\", \"integration\", \"slow\"],\n timeout: 30000,\n stepOptions: {\n timeout: 60000,\n retry: { maxAttempts: 2, backoff: \"linear\" }\n }\n};\n```\n" - }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioDefinition", + "target": 5152 + }, + { + "kind": "text", + "text": " - Complete scenario with name, options, and entries\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "StepDefinition", + "target": 5185 + }, + { + "kind": "text", + "text": " - Individual step with function, options, and source\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "SetupDefinition" + }, + { + "kind": "text", + "text": " - Setup hook with cleanup function support\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ResourceDefinition" + }, + { + "kind": "text", + "text": " - Named resource with fn function\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "StepContext", + "target": 5173 + }, + { + "kind": "text", + "text": " - Context object passed to all functions\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "Entry" + }, + { + "kind": "text", + "text": " - Discriminated union of step, setup, or resource\n\n## Options Types\n\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioOptions", + "target": 5148 + }, + { + "kind": "text", + "text": " - Scenario-level configuration (tags, default step options)\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "StepOptions", + "target": 5164 + }, + { + "kind": "text", + "text": " - Step execution settings (timeout, retry strategy)\n- Import " + }, + { + "kind": "code", + "text": "`Origin`" + }, + { + "kind": "text", + "text": " from " + }, + { + "kind": "code", + "text": "`@probitas-test/core/origin`" + }, + { + "kind": "text", + "text": " for file and line information\n\n## Function Types\n\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "StepFunction", + "target": 5180 + }, + { + "kind": "text", + "text": " - Signature for step execution functions\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "SetupFunction" + }, + { + "kind": "text", + "text": " - Signature for setup hooks (returns cleanup)\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ResourceFunction" + }, + { + "kind": "text", + "text": " - Signature for resource creation functions\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "SetupCleanup", + "target": 5170 + }, + { + "kind": "text", + "text": " - Return type of setup functions\n\n## Loader Utilities\n\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "loadScenarios" + }, + { + "kind": "text", + "text": " - Load scenario definitions from file paths\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "LoadScenariosOptions" + }, + { + "kind": "text", + "text": " - Options for the loader\n\n## Selector Utilities\n\nSelectors provide powerful filtering capabilities:\n\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "applySelectors" + }, + { + "kind": "text", + "text": " - Filter scenarios using selector strings\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "parseSelector" + }, + { + "kind": "text", + "text": " - Parse selector string into Selector objects\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "matchesSelector" + }, + { + "kind": "text", + "text": " - Check if a scenario matches a single selector\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "Selector" + }, + { + "kind": "text", + "text": " - Parsed selector object\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "SelectorType" + }, + { + "kind": "text", + "text": " - Type of selector (\"tag\" or \"name\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Loading scenarios from files", + "content": [ { - "kind": "see", - "doc": "{@linkcode StepOptions} for step-level configuration" + "kind": "code", + "text": "```ts\nimport { loadScenarios } from \"@probitas-test/core/loader\";\n\nconst scenarios = await loadScenarios([\n \"/path/to/auth.probitas.ts\",\n \"/path/to/api.probitas.ts\",\n]);\nconsole.log(`Loaded ${scenarios.length} scenarios`);\n```" } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + { + "tag": "@example", + "name": "Filtering scenarios with selectors", + "content": [ { - "name": "tags", - "jsDoc": { - "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/core/0.3.3/types/scenario.ts", - "line": 34, - "col": 2, - "byteIndex": 945 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - }, - "typeParams": [] - }, - { - "name": "timeout", - "jsDoc": { - "doc": "Maximum time in milliseconds for the entire scenario to complete.\n\nWhen specified, this timeout applies to the total execution time of all\nsteps in the scenario. If the scenario exceeds this limit, a\n{@linkcode ScenarioTimeoutError} is thrown.\n\nPriority: scenario timeout > RunOptions timeout\n", - "tags": [ - { - "kind": "unsupported", - "value": "@default undefined (uses RunOptions timeout if set, otherwise no timeout)\n" - }, - { - "kind": "example", - "doc": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Quick API Test\", { timeout: 5000 })\n .step(\"Call API\", async () => {\n // This step and all others must complete within 5 seconds total\n })\n .build();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 58, - "col": 2, - "byteIndex": 1696 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + "kind": "code", + "text": "```ts\nimport { applySelectors } from \"@probitas-test/core/selector\";\nimport type { ScenarioDefinition } from \"@probitas-test/core\";\n\nconst scenarios: ScenarioDefinition[] = [];\n\n// Filter by tag (OR logic between strings)\nconst apiOrDb = applySelectors(scenarios, [\"tag:api\", \"tag:db\"]);\n\n// Filter by multiple conditions (AND logic within string)\nconst criticalApi = applySelectors(scenarios, [\"tag:api,tag:critical\"]);\n\n// Exclude scenarios with specific tag\nconst notSlow = applySelectors(scenarios, [\"!tag:slow\"]);\n\n// Filter by name pattern (regex supported)\nconst loginTests = applySelectors(scenarios, [\"name:login\"]);\n```" + } + ] + }, + { + "tag": "@example", + "name": "Working with scenario definitions", + "content": [ { - "name": "stepOptions", - "jsDoc": { - "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/core/0.3.3/types/scenario.ts", - "line": 66, - "col": 2, - "byteIndex": 1913 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "StepOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepOptions" - } - }, - "typeParams": [] + "kind": "code", + "text": "```ts\nimport type { ScenarioDefinition } from \"@probitas-test/core\";\n\nfunction inspectScenario(scenario: ScenarioDefinition) {\n console.log(`Scenario: ${scenario.name}`);\n console.log(`Tags: ${scenario.tags.join(\", \")}`);\n console.log(`Steps: ${scenario.steps.length}`);\n\n for (const step of scenario.steps) {\n if (step.kind === \"step\") {\n console.log(` Step: ${step.name}`);\n } else if (step.kind === \"resource\") {\n console.log(` Resource: ${step.name}`);\n } else {\n console.log(` Setup hook`);\n }\n }\n}\n```" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } - }, + ] + }, + "children": [ { + "id": 5152, "name": "ScenarioDefinition", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 118, - "col": 0, - "byteIndex": 3373 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Complete, immutable definition of a scenario.\n\nThis is the core type produced by the builder and consumed by the runner.\nIt contains everything needed to execute a scenario: its name, options,\nand ordered sequence of entries (steps, resources, setups).\n", - "tags": [ + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "unsupported", - "value": "@remarks\nScenario definitions are:\n- **Immutable**: The entries array is frozen after creation\n- **Self-contained**: All options have defaults applied\n- **Portable**: Can be serialized (minus functions) for tooling\n" + "kind": "text", + "text": "Complete, immutable definition of a scenario.\n\nThis is the core type produced by the builder and consumed by the runner.\nIt contains everything needed to execute a scenario: its name, options,\nand ordered sequence of entries (steps, resources, setups)." + } + ], + "blockTags": [ + { + "tag": "@remarks", + "content": [ + { + "kind": "text", + "text": "Scenario definitions are:\n- **Immutable**: The entries array is frozen after creation\n- **Self-contained**: All options have defaults applied\n- **Portable**: Can be serialized (minus functions) for tooling" + } + ] }, { - "kind": "example", - "doc": "Typical scenario structure\n```ts\nimport type { ScenarioDefinition } from \"@probitas-test/core\";\n\n// Created by: scenario(\"Login Flow\").step(...).build()\nconst definition: ScenarioDefinition = {\n name: \"Login Flow\",\n tags: [\"auth\", \"smoke\"],\n steps: [\n {\n kind: \"resource\",\n name: \"api\",\n fn: () => fetch,\n timeout: 30000,\n retry: { maxAttempts: 1, backoff: \"linear\" },\n },\n {\n kind: \"step\",\n name: \"Login\",\n fn: () => {},\n timeout: 30000,\n retry: { maxAttempts: 1, backoff: \"linear\" },\n },\n {\n kind: \"step\",\n name: \"Verify\",\n fn: () => {},\n timeout: 30000,\n retry: { maxAttempts: 1, backoff: \"linear\" },\n },\n ],\n origin: { path: \"/tests/auth.probitas.ts\", line: 5 },\n};\nconsole.log(definition);\n```" + "tag": "@example", + "name": "Typical scenario structure", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ScenarioDefinition } from \"@probitas-test/core\";\n\n// Created by: scenario(\"Login Flow\").step(...).build()\nconst definition: ScenarioDefinition = {\n name: \"Login Flow\",\n tags: [\"auth\", \"smoke\"],\n steps: [\n {\n kind: \"resource\",\n name: \"api\",\n fn: () => fetch,\n timeout: 30000,\n retry: { maxAttempts: 1, backoff: \"linear\" },\n },\n {\n kind: \"step\",\n name: \"Login\",\n fn: () => {},\n timeout: 30000,\n retry: { maxAttempts: 1, backoff: \"linear\" },\n },\n {\n kind: \"step\",\n name: \"Verify\",\n fn: () => {},\n timeout: 30000,\n retry: { maxAttempts: 1, backoff: \"linear\" },\n },\n ],\n origin: { path: \"/tests/auth.probitas.ts\", line: 5 },\n};\nconsole.log(definition);\n```" + } + ] } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "name", - "jsDoc": { - "doc": "Human-readable scenario name (displayed in reports and CLI)" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 120, - "col": 2, - "byteIndex": 3482 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "children": [ + { + "id": 5153, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "tags", - "jsDoc": { - "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/core/0.3.3/types/scenario.ts", - "line": 132, - "col": 2, - "byteIndex": 3865 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Human-readable scenario name (displayed in reports and CLI)" } - }, - "typeParams": [] + ] }, - { - "name": "timeout", - "jsDoc": { - "doc": "Maximum time in milliseconds for the entire scenario to complete.\n\nWhen set, overrides the RunOptions timeout for this specific scenario.\nWhen timeout occurs, a {@linkcode ScenarioTimeoutError} is thrown." - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 140, - "col": 2, - "byteIndex": 4138 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5157, + "name": "origin", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "steps", - "jsDoc": { - "doc": "Ordered sequence of entries (resources → setups → steps)" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 143, - "col": 2, - "byteIndex": 4238 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "StepDefinition", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepDefinition" - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Origin where the scenario was defined" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "origin.ts", + "qualifiedName": "Origin" + }, + "name": "Origin", + "package": "@probitas-test/core" + } + }, + { + "id": 5156, + "name": "steps", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Ordered sequence of entries (resources → setups → steps)" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 5185, + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" } - } + ], + "name": "StepDefinition", + "package": "@probitas-test/core" } - }, - "typeParams": [] + } + } + }, + { + "id": 5154, + "name": "tags", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "origin", - "jsDoc": { - "doc": "Origin where the scenario was defined" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 146, - "col": 2, - "byteIndex": 4331 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Origin", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Origin" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Tags for filtering and organizing scenarios.\n\nTags can be used with the CLI to run specific subsets:\n" + }, + { + "kind": "code", + "text": "```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```" } - }, - "typeParams": [] + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 5155, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum time in milliseconds for the entire scenario to complete.\n\nWhen set, overrides the RunOptions timeout for this specific scenario.\nWhen timeout occurs, a " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioTimeoutError" + }, + { + "kind": "text", + "text": " is thrown." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] }, { + "id": 5158, "name": "ScenarioMetadata", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 167, - "col": 0, - "byteIndex": 4887 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Serializable scenario metadata (without executable functions).\n\nUsed by the JSON reporter and tooling to output scenario information\nwithout including non-serializable function references.\n", - "tags": [ + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Serializable scenario metadata (without executable functions).\n\nUsed by the JSON reporter and tooling to output scenario information\nwithout including non-serializable function references." + } + ], + "blockTags": [ { - "kind": "example", - "doc": "JSON reporter output\n```json\n{\n \"name\": \"Login Flow\",\n \"options\": { \"tags\": [\"auth\"], \"stepOptions\": { ... } },\n \"entries\": [\n { \"kind\": \"step\", \"value\": { \"name\": \"Login\", \"options\": { ... } } }\n ],\n \"origin\": { \"path\": \"/tests/auth.probitas.ts\", \"line\": 5 }\n}\n```" + "tag": "@example", + "name": "JSON reporter output", + "content": [ + { + "kind": "code", + "text": "```json\n{\n \"name\": \"Login Flow\",\n \"options\": { \"tags\": [\"auth\"], \"stepOptions\": { ... } },\n \"entries\": [\n { \"kind\": \"step\", \"value\": { \"name\": \"Login\", \"options\": { ... } } }\n ],\n \"origin\": { \"path\": \"/tests/auth.probitas.ts\", \"line\": 5 }\n}\n```" + } + ] } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + "children": [ + { + "id": 5159, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Scenario name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5163, + "name": "origin", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Origin where the scenario was defined" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "origin.ts", + "qualifiedName": "Origin" + }, + "name": "Origin", + "package": "@probitas-test/core" + } + }, + { + "id": 5162, + "name": "steps", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Entry metadata (functions omitted for serialization)" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 5196, + "name": "StepMetadata", + "package": "@probitas-test/core" + } + } + } + }, + { + "id": 5160, + "name": "tags", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Tags for filtering and organizing scenarios.\n\nTags can be used with the CLI to run specific subsets:\n" + }, + { + "kind": "code", + "text": "```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```" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + }, + { + "id": 5161, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum time in milliseconds for the entire scenario to complete.\n\nWhen set, overrides the RunOptions timeout for this specific scenario." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 5148, + "name": "ScenarioOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "name", - "jsDoc": { - "doc": "Scenario name" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 169, - "col": 2, - "byteIndex": 4948 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "Configuration options for scenario execution.\n\nDefines metadata and default behavior for an entire scenario." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst options: ScenarioOptions = {\n tags: [\"api\", \"integration\", \"slow\"],\n timeout: 30000,\n stepOptions: {\n timeout: 60000,\n retry: { maxAttempts: 2, backoff: \"linear\" }\n }\n};\n```" + } + ] }, { - "name": "tags", - "jsDoc": { - "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/core/0.3.3/types/scenario.ts", - "line": 181, - "col": 2, - "byteIndex": 5331 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "tag": "@see", + "content": [ + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "StepOptions", + "target": 5164 + }, + { + "kind": "text", + "text": " for step-level configuration" + } + ] + } + ] + }, + "children": [ + { + "id": 5151, + "name": "stepOptions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default options applied to all steps in this scenario.\n\nIndividual steps can override these defaults by specifying\ntheir own options in the " + }, + { + "kind": "code", + "text": "`.step()`" + }, + { + "kind": "text", + "text": " call." + } + ] + }, + "type": { + "type": "reference", + "target": 5164, + "name": "StepOptions", + "package": "@probitas-test/core" + } + }, + { + "id": 5149, + "name": "tags", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Tags for filtering and organizing scenarios.\n\nTags can be used with the CLI to run specific subsets:\n" + }, + { + "kind": "code", + "text": "```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```" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + }, + { + "id": 5150, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum time in milliseconds for the entire scenario to complete.\n\nWhen specified, this timeout applies to the total execution time of all\nsteps in the scenario. If the scenario exceeds this limit, a\n" + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioTimeoutError" + }, + { + "kind": "text", + "text": " is thrown.\n\nPriority: scenario timeout > RunOptions timeout" + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nundefined (uses RunOptions timeout if set, otherwise no timeout)\n```" } - } + ] + }, + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Quick API Test\", { timeout: 5000 })\n .step(\"Call API\", async () => {\n // This step and all others must complete within 5 seconds total\n })\n .build();\n```" + } + ] } - }, - "typeParams": [] + ] }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 5173, + "name": "StepContext", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "timeout", - "jsDoc": { - "doc": "Maximum time in milliseconds for the entire scenario to complete.\n\nWhen set, overrides the RunOptions timeout for this specific scenario." - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 188, - "col": 2, - "byteIndex": 5532 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Execution context provided to steps, resources, and setup hooks.\n\nThe context provides access to:\n- Previous step results with full type inference\n- All accumulated results as a typed tuple\n- Named resources registered with " }, { - "name": "steps", - "jsDoc": { - "doc": "Entry metadata (functions omitted for serialization)" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 191, - "col": 2, - "byteIndex": 5624 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "StepMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepMetadata" - } - } - } + "kind": "code", + "text": "`.resource()`" + }, + { + "kind": "text", + "text": "\n- Shared storage for cross-step communication\n- Abort signal for timeout and cancellation handling" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Accessing previous result", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { StepContext } from \"@probitas-test/core\";\n\n// Steps receive context with the previous step's result\nconst stepFn = (ctx: StepContext) => {\n // ctx.previous contains the result from the previous step\n const prev = ctx.previous as { id: number };\n console.log(prev.id); // Access typed result\n};\nconsole.log(stepFn);\n```" } - }, - "typeParams": [] + ] }, { - "name": "origin", - "jsDoc": { - "doc": "Origin where the scenario was defined" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/scenario.ts", - "line": 194, - "col": 2, - "byteIndex": 5715 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Origin", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Origin" + "tag": "@example", + "name": "Using shared store", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { StepContext } from \"@probitas-test/core\";\n\n// The store is shared across all steps in a scenario\nconst setupFn = (ctx: StepContext) => {\n ctx.store.set(\"startTime\", Date.now());\n};\n\nconst stepFn = (ctx: StepContext) => {\n const start = ctx.store.get(\"startTime\") as number;\n console.log(`Elapsed: ${Date.now() - start}ms`);\n};\nconsole.log(setupFn, stepFn);\n```" } - }, - "typeParams": [] + ] } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + }, + "children": [ + { + "id": 5174, + "name": "index", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Current step index (0-based).\n\nUseful for conditional logic based on position in the scenario." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5175, + "name": "previous", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result from the previous step.\n\nFully typed based on what the previous step returned.\nFor the first step, this is " + }, + { + "kind": "code", + "text": "`unknown`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + }, + { + "id": 5178, + "name": "resources", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Named resources registered with " + }, + { + "kind": "code", + "text": "`.resource()`" + }, + { + "kind": "text", + "text": ".\n\nResources are typed based on their registration:\n" + }, + { + "kind": "code", + "text": "```ts\nimport type { StepContext } from \"@probitas-test/core\";\n\ninterface DbResource {\n query(sql: string): unknown;\n}\n\n// Access resources registered with .resource()\nconst stepFn = (ctx: StepContext) => {\n const db = ctx.resources[\"db\"] as DbResource;\n return db.query(\"SELECT 1\");\n};\nconsole.log(stepFn);\n```" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 5176, + "name": "results", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n" + }, + { + "kind": "code", + "text": "```ts\nimport type { StepContext } from \"@probitas-test/core\";\n\nconst stepFn = (ctx: StepContext) => {\n ctx.results[0]; // First step's result\n ctx.results[1]; // Second step's result\n};\nconsole.log(stepFn);\n```" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + }, + { + "id": 5179, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Abort signal that fires on timeout or manual cancellation.\n\nPass this to fetch() or other APIs that support AbortSignal\nfor proper timeout handling." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + } + }, + { + "id": 5177, + "name": "store", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "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." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2015.collection.d.ts", + "qualifiedName": "Map" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Map", + "package": "typescript" + } + } + ] }, { - "name": "StepOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 22, - "col": 0, - "byteIndex": 547 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration options for individual step execution.\n\nControls timeout and retry behavior for a step. These options can be set at:\n1. Step level (highest priority)\n2. Scenario level (applies to all steps in scenario)\n3. Default values (30s timeout, no retry)\n", - "tags": [ + "id": 5185, + "name": "StepDefinition", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nconst options: StepOptions = {\n timeout: 60000, // 60 seconds\n retry: {\n maxAttempts: 3,\n backoff: \"exponential\" // Waits 1s, 2s, 4s between retries\n }\n};\n```" + "kind": "text", + "text": "Immutable definition of a scenario step.\n\nContains all information needed to execute a single step:\nthe step function, its options, and debugging metadata." + } + ], + "blockTags": [ + { + "tag": "@remarks", + "content": [ + { + "kind": "text", + "text": "Step definitions are created by the builder and consumed by the runner.\nThey are immutable and should not be modified after creation." + } + ] } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "timeout", - "jsDoc": { - "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/core/0.3.3/types/step.ts", - "line": 29, - "col": 2, - "byteIndex": 744 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "children": [ + { + "id": 5189, + "name": "fn", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "retry", - "jsDoc": { - "doc": "Retry configuration for handling transient failures" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 32, - "col": 2, - "byteIndex": 835 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "maxAttempts", - "jsDoc": { - "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/core/0.3.3/types/step.ts", - "line": 42, - "col": 4, - "byteIndex": 1104 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Step function to execute" + } + ] + }, + "type": { + "type": "reference", + "target": 5180, + "typeArguments": [ + { + "type": "reference", + "target": 5186, + "name": "T", + "package": "@probitas-test/core", + "qualifiedName": "StepDefinition.T", + "refersToTypeParameter": true + } + ], + "name": "StepFunction", + "package": "@probitas-test/core" + } + }, + { + "id": 5187, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "step" + }, + { + "type": "literal", + "value": "resource" + }, + { + "type": "literal", + "value": "setup" + } + ] + } + }, + { + "id": 5188, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Human-readable step name (displayed in reports)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5195, + "name": "origin", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Origin where the step was defined (for error messages)" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "origin.ts", + "qualifiedName": "Origin" + }, + "name": "Origin", + "package": "@probitas-test/core" + } + }, + { + "id": 5191, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration for handling transient failures" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5192, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 5194, + "name": "backoff", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "backoff", - "jsDoc": { - "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/core/0.3.3/types/step.ts", - "line": 52, - "col": 4, - "byteIndex": 1385 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "linear", - "kind": "literal", - "literal": { - "kind": "string", - "string": "linear" - } - }, - { - "repr": "exponential", - "kind": "literal", - "literal": { - "kind": "string", - "string": "exponential" - } - } - ] - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Backoff strategy for delay between retry attempts.\n\n- " + }, + { + "kind": "code", + "text": "`\"linear\"`" + }, + { + "kind": "text", + "text": ": Fixed 1 second delay between attempts\n- " + }, + { + "kind": "code", + "text": "`\"exponential\"`" + }, + { + "kind": "text", + "text": ": Doubles delay each attempt (1s, 2s, 4s, 8s...)\n\nDefault: \"linear\"" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "linear" + }, + { + "type": "literal", + "value": "exponential" + } + ] } - ], - "callSignatures": [], - "indexSignatures": [] + }, + { + "id": 5193, + "name": "maxAttempts", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum number of execution attempts.\n\n- " + }, + { + "kind": "code", + "text": "`1`" + }, + { + "kind": "text", + "text": " = No retry (fail immediately on error)\n- " + }, + { + "kind": "code", + "text": "`2`" + }, + { + "kind": "text", + "text": " = One retry (2 total attempts)\n- " + }, + { + "kind": "code", + "text": "`n`" + }, + { + "kind": "text", + "text": " = n-1 retries (n total attempts)\n\nDefault: 1 (no retry)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 5190, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum execution time in milliseconds.\n\nIf the step takes longer, a " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "TimeoutError" + }, + { + "kind": "text", + "text": " is thrown.\nDefault: 30000 (30 seconds)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "typeParameters": [ + { + "id": 5186, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Type of this step's return value" } - }, - "typeParams": [] + ] + }, + "default": { + "type": "intrinsic", + "name": "unknown" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "SetupCleanup", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 97, - "col": 0, - "byteIndex": 2729 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Cleanup handler returned by setup functions.\n\nSetup functions can return various cleanup mechanisms that are automatically\ninvoked after the scenario completes (regardless of success or failure).\n\nSupported cleanup patterns:\n- `void` / `undefined`: No cleanup needed\n- `() => void`: Synchronous cleanup function\n- `() => Promise`: Async cleanup function\n- `Disposable`: Object with `[Symbol.dispose]()` method\n- `AsyncDisposable`: Object with `[Symbol.asyncDispose]()` method\n", - "tags": [ + "id": 5164, + "name": "StepOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Cleanup function\n```ts\nimport type { SetupCleanup } from \"@probitas-test/core\";\n\n// Setup functions can return a cleanup function\nconst setupWithCleanup = (): SetupCleanup => {\n const file = Deno.makeTempFileSync();\n return () => Deno.removeSync(file); // Cleanup function\n};\nconsole.log(setupWithCleanup);\n```\n" - }, + "kind": "text", + "text": "Configuration options for individual step execution.\n\nControls timeout and retry behavior for a step. These options can be set at:\n1. Step level (highest priority)\n2. Scenario level (applies to all steps in scenario)\n3. Default values (30s timeout, no retry)" + } + ], + "blockTags": [ { - "kind": "example", - "doc": "Disposable object\n```ts\nimport type { SetupCleanup } from \"@probitas-test/core\";\n\n// Setup functions can return an AsyncDisposable\nconst setupWithDisposable = async (): Promise => {\n const conn: AsyncDisposable = {\n async [Symbol.asyncDispose]() {\n // cleanup logic\n },\n };\n return conn;\n};\nconsole.log(setupWithDisposable);\n```" + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst options: StepOptions = {\n timeout: 60000, // 60 seconds\n retry: {\n maxAttempts: 3,\n backoff: \"exponential\" // Waits 1s, 2s, 4s between retries\n }\n};\n```" + } + ] } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + "children": [ + { + "id": 5166, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration for handling transient failures" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5167, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 5169, + "name": "backoff", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Backoff strategy for delay between retry attempts.\n\n- " + }, + { + "kind": "code", + "text": "`\"linear\"`" + }, + { + "kind": "text", + "text": ": Fixed 1 second delay between attempts\n- " + }, + { + "kind": "code", + "text": "`\"exponential\"`" + }, + { + "kind": "text", + "text": ": Doubles delay each attempt (1s, 2s, 4s, 8s...)\n\nDefault: \"linear\"" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "linear" + }, + { + "type": "literal", + "value": "exponential" + } + ] + } + }, + { + "id": 5168, + "name": "maxAttempts", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum number of execution attempts.\n\n- " + }, + { + "kind": "code", + "text": "`1`" + }, + { + "kind": "text", + "text": " = No retry (fail immediately on error)\n- " + }, { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "kind": "code", + "text": "`2`" }, { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + "kind": "text", + "text": " = One retry (2 total attempts)\n- " + }, + { + "kind": "code", + "text": "`n`" + }, + { + "kind": "text", + "text": " = n-1 retries (n total attempts)\n\nDefault: 1 (no retry)" } ] }, - "params": [], - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + } } - } - }, - { - "repr": "Disposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Disposable" - } - }, - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + ] } - ] + } }, - "typeParams": [] - } + { + "id": 5165, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum execution time in milliseconds.\n\nIf the step takes longer, a " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "TimeoutError" + }, + { + "kind": "text", + "text": " is thrown.\nDefault: 30000 (30 seconds)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] }, { - "name": "StepContext", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 142, - "col": 0, - "byteIndex": 4076 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Execution context provided to steps, resources, and setup hooks.\n\nThe context provides access to:\n- Previous step results with full type inference\n- All accumulated results as a typed tuple\n- Named resources registered with `.resource()`\n- Shared storage for cross-step communication\n- Abort signal for timeout and cancellation handling\n", - "tags": [ + "id": 5170, + "name": "SetupCleanup", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Accessing previous result\n```ts\nimport type { StepContext } from \"@probitas-test/core\";\n\n// Steps receive context with the previous step's result\nconst stepFn = (ctx: StepContext) => {\n // ctx.previous contains the result from the previous step\n const prev = ctx.previous as { id: number };\n console.log(prev.id); // Access typed result\n};\nconsole.log(stepFn);\n```\n" + "kind": "text", + "text": "Cleanup handler returned by setup functions.\n\nSetup functions can return various cleanup mechanisms that are automatically\ninvoked after the scenario completes (regardless of success or failure).\n\nSupported cleanup patterns:\n- " }, { - "kind": "example", - "doc": "Using shared store\n```ts\nimport type { StepContext } from \"@probitas-test/core\";\n\n// The store is shared across all steps in a scenario\nconst setupFn = (ctx: StepContext) => {\n ctx.store.set(\"startTime\", Date.now());\n};\n\nconst stepFn = (ctx: StepContext) => {\n const start = ctx.store.get(\"startTime\") as number;\n console.log(`Elapsed: ${Date.now() - start}ms`);\n};\nconsole.log(setupFn, stepFn);\n```" - } - ] - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + "kind": "code", + "text": "`void`" + }, { - "name": "index", - "jsDoc": { - "doc": "Current step index (0-based).\n\nUseful for conditional logic based on position in the scenario." - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 148, - "col": 2, - "byteIndex": 4230 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": " / " }, { - "name": "previous", - "jsDoc": { - "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/core/0.3.3/types/step.ts", - "line": 156, - "col": 2, - "byteIndex": 4413 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] + "kind": "code", + "text": "`undefined`" }, { - "name": "results", - "jsDoc": { - "doc": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n```ts\nimport type { StepContext } from \"@probitas-test/core\";\n\nconst stepFn = (ctx: StepContext) => {\n ctx.results[0]; // First step's result\n ctx.results[1]; // Second step's result\n};\nconsole.log(stepFn);\n```" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 172, - "col": 2, - "byteIndex": 4817 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - } - }, - "typeParams": [] + "kind": "text", + "text": ": No cleanup needed\n- " }, { - "name": "store", - "jsDoc": { - "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/core/0.3.3/types/step.ts", - "line": 180, - "col": 2, - "byteIndex": 5057 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Map", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Map" - } - }, - "typeParams": [] + "kind": "code", + "text": "`() => void`" }, { - "name": "resources", - "jsDoc": { - "doc": "Named resources registered with `.resource()`.\n\nResources are typed based on their registration:\n```ts\nimport type { StepContext } from \"@probitas-test/core\";\n\ninterface DbResource {\n query(sql: string): unknown;\n}\n\n// Access resources registered with .resource()\nconst stepFn = (ctx: StepContext) => {\n const db = ctx.resources[\"db\"] as DbResource;\n return db.query(\"SELECT 1\");\n};\nconsole.log(stepFn);\n```" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 201, - "col": 2, - "byteIndex": 5603 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - "typeParams": [] + "kind": "text", + "text": ": Synchronous cleanup function\n- " }, { - "name": "signal", - "jsDoc": { - "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/core/0.3.3/types/step.ts", - "line": 209, - "col": 2, - "byteIndex": 5831 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "AbortSignal", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortSignal" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "StepFunction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 244, - "col": 0, - "byteIndex": 6664 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Function signature for step execution.\n\nA step function receives the execution context and returns a value\n(sync or async) that becomes available to subsequent steps.\n", - "tags": [ + "kind": "code", + "text": "`() => Promise`" + }, + { + "kind": "text", + "text": ": Async cleanup function\n- " + }, + { + "kind": "code", + "text": "`Disposable`" + }, + { + "kind": "text", + "text": ": Object with " + }, { - "kind": "template", - "name": "T", - "doc": "- Type of this step's return value\n" + "kind": "code", + "text": "`[Symbol.dispose]()`" }, { - "kind": "example", - "doc": "Sync step returning data\n```ts\nimport type { StepFunction } from \"@probitas-test/core\";\n\nconst step: StepFunction<{ name: string }> = (_ctx) => {\n return { name: \"Alice\" };\n};\n```\n" + "kind": "text", + "text": " method\n- " }, { - "kind": "example", - "doc": "Async step with API call\n```ts\nimport type { StepFunction } from \"@probitas-test/core\";\n\ninterface User {\n id: number;\n name: string;\n}\n\nconst step: StepFunction = async (ctx) => {\n const response = await fetch(\"/api/user\", { signal: ctx.signal });\n return response.json();\n};\n```" + "kind": "code", + "text": "`AsyncDisposable`" + }, + { + "kind": "text", + "text": ": Object with " + }, + { + "kind": "code", + "text": "`[Symbol.asyncDispose]()`" + }, + { + "kind": "text", + "text": " method" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Cleanup function", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SetupCleanup } from \"@probitas-test/core\";\n\n// Setup functions can return a cleanup function\nconst setupWithCleanup = (): SetupCleanup => {\n const file = Deno.makeTempFileSync();\n return () => Deno.removeSync(file); // Cleanup function\n};\nconsole.log(setupWithCleanup);\n```" + } + ] + }, + { + "tag": "@example", + "name": "Disposable object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SetupCleanup } from \"@probitas-test/core\";\n\n// Setup functions can return an AsyncDisposable\nconst setupWithDisposable = async (): Promise => {\n const conn: AsyncDisposable = {\n async [Symbol.asyncDispose]() {\n // cleanup logic\n },\n };\n return conn;\n};\nconsole.log(setupWithDisposable);\n```" + } + ] } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { + "type": "reflection", + "declaration": { + "id": 5171, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 5172, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "typeName": "Promise" + ] } } ] - }, - "params": [ - { - "kind": "identifier", - "name": "ctx", - "optional": false, - "tsType": { - "repr": "StepContext", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepContext" - } - } - } - ], - "typeParams": [] - } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "Disposable" + }, + "name": "Disposable", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" } ] } }, { - "name": "StepDefinition", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 258, - "col": 0, - "byteIndex": 7127 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Immutable definition of a scenario step.\n\nContains all information needed to execute a single step:\nthe step function, its options, and debugging metadata.\n", - "tags": [ + "id": 5180, + "name": "StepFunction", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function signature for step execution.\n\nA step function receives the execution context and returns a value\n(sync or async) that becomes available to subsequent steps." + } + ], + "blockTags": [ { - "kind": "template", - "name": "T", - "doc": "- Type of this step's return value\n" + "tag": "@example", + "name": "Sync step returning data", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { StepFunction } from \"@probitas-test/core\";\n\nconst step: StepFunction<{ name: string }> = (_ctx) => {\n return { name: \"Alice\" };\n};\n```" + } + ] }, { - "kind": "unsupported", - "value": "@remarks\nStep definitions are created by the builder and consumed by the runner.\nThey are immutable and should not be modified after creation." + "tag": "@example", + "name": "Async step with API call", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { StepFunction } from \"@probitas-test/core\";\n\ninterface User {\n id: number;\n name: string;\n}\n\nconst step: StepFunction = async (ctx) => {\n const response = await fetch(\"/api/user\", { signal: ctx.signal });\n return response.json();\n};\n```" + } + ] } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 259, - "col": 2, - "byteIndex": 7176 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "step", - "kind": "literal", - "literal": { - "kind": "string", - "string": "step" - } - }, - { - "repr": "resource", - "kind": "literal", - "literal": { - "kind": "string", - "string": "resource" - } - }, + "typeParameters": [ + { + "id": 5184, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Type of this step's return value" + } + ] + }, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 5181, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5182, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "setup", - "kind": "literal", - "literal": { - "kind": "string", - "string": "setup" + "id": 5183, + "name": "ctx", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 5173, + "name": "StepContext", + "package": "@probitas-test/core" } } - ] - }, - "typeParams": [] - }, - { - "name": "name", - "jsDoc": { - "doc": "Human-readable step name (displayed in reports)" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 262, - "col": 2, - "byteIndex": 7282 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "fn", - "jsDoc": { - "doc": "Step function to execute" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 265, - "col": 2, - "byteIndex": 7342 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "StepFunction", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "StepFunction" - } - }, - "typeParams": [] - }, - { - "name": "timeout", - "jsDoc": { - "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/core/0.3.3/types/step.ts", - "line": 273, - "col": 2, - "byteIndex": 7539 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "retry", - "jsDoc": { - "doc": "Retry configuration for handling transient failures" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 276, - "col": 2, - "byteIndex": 7630 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ + ], + "type": { + "type": "union", + "types": [ { - "name": "maxAttempts", - "jsDoc": { - "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/core/0.3.3/types/step.ts", - "line": 286, - "col": 4, - "byteIndex": 7899 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": "reference", + "target": 5184, + "name": "T", + "package": "@probitas-test/core", + "refersToTypeParameter": true }, { - "name": "backoff", - "jsDoc": { - "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/core/0.3.3/types/step.ts", - "line": 296, - "col": 4, - "byteIndex": 8180 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "linear", - "kind": "literal", - "literal": { - "kind": "string", - "string": "linear" - } - }, - { - "repr": "exponential", - "kind": "literal", - "literal": { - "kind": "string", - "string": "exponential" - } - } - ] + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, - "typeParams": [] + "typeArguments": [ + { + "type": "reference", + "target": 5184, + "name": "T", + "package": "@probitas-test/core", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [] - } - }, - "typeParams": [] - }, - { - "name": "origin", - "jsDoc": { - "doc": "Origin where the step was defined (for error messages)" - }, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 300, - "col": 2, - "byteIndex": 8297 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Origin", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Origin" + ] } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } - } - ] + ] + } } }, { + "id": 5196, "name": "StepMetadata", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/core/0.3.3/types/step.ts", - "line": 308, - "col": 0, - "byteIndex": 8464 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Serializable step metadata (without the function).\n\nUsed for JSON output, tooling, and inspection without executing code." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "Omit", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "StepDefinition", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepDefinition" - } - }, - { - "repr": "fn", - "kind": "literal", - "literal": { - "kind": "string", - "string": "fn" - } - } - ], - "typeName": "Omit" + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Serializable step metadata (without the function).\n\nUsed for JSON output, tooling, and inspection without executing code." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Omit" }, - "typeParams": [] + "typeArguments": [ + { + "type": "reference", + "target": 5185, + "name": "StepDefinition", + "package": "@probitas-test/core" + }, + { + "type": "literal", + "value": "fn" + } + ], + "name": "Omit", + "package": "typescript" } } - ] + ], + "packageName": "@probitas-test/core", + "packageVersion": "0.3.4" } diff --git a/data/api/discover.json b/data/api/discover.json index 699ea55..296c7a5 100644 --- a/data/api/discover.json +++ b/data/api/discover.json @@ -1,338 +1,499 @@ { - "name": "discover", - "specifier": "@probitas/discover", - "version": "0.4.1", - "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/probitas-test/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/core](https://jsr.io/@probitas/core) | 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 Types\n\n- {@linkcode DiscoverOptions} - Options for customizing discovery behavior\n- {@linkcode DiscoverProgress} - Progress information during discovery\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": "DiscoverProgress", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/discover/0.4.1/discover.ts", - "line": 86, - "col": 0, - "byteIndex": 2263 + "schemaVersion": "2.0", + "id": 5197, + "name": "@probitas-test/discover", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Scenario file discovery utilities for Probitas.\n\nThis package provides utilities for discovering scenario files (" + }, + { + "kind": "code", + "text": "`.probitas.ts`" + }, + { + "kind": "text", + "text": ")\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/probitas-test/probitas)\n- [@probitas-test/probitas](https://www.npmjs.com/package/@probitas-test/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas-test/core](https://www.npmjs.com/package/@probitas-test/core) | Load discovered files with " + }, + { + "kind": "code", + "text": "`loadScenarios`" + }, + { + "kind": "text", + "text": " |\n| [probitas](https://github.com/probitas-test/probitas) | CLI that uses these reporters |\n\n## Core Function\n\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "discoverScenarioFiles", + "target": 5198 + }, + { + "kind": "text", + "text": " - Discover scenario files from paths\n\n## Configuration Types\n\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "DiscoverOptions", + "target": 5205 + }, + { + "kind": "text", + "text": " - Options for customizing discovery behavior\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "DiscoverProgress", + "target": 5202 }, - "declarationKind": "export", - "jsDoc": { - "doc": "Progress information during file discovery.\n\nProvides real-time feedback about the discovery process, useful for\ndisplaying progress in CLI applications." + { + "kind": "text", + "text": " - Progress information during discovery\n\n## Default Behavior\n\nBy default, the discovery function:\n- Searches for files matching " }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + { + "kind": "code", + "text": "`**/*.probitas.ts`" + }, + { + "kind": "text", + "text": " in directories\n- Returns direct file paths as-is (no pattern matching)\n- Returns absolute paths sorted alphabetically\n\n## Permissions\n\nRequires " + }, + { + "kind": "code", + "text": "`--allow-read`" + }, + { + "kind": "text", + "text": " permission to read the file system." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Basic usage", + "content": [ { - "name": "currentPath", - "jsDoc": { - "doc": "The directory or file path currently being processed." - }, - "location": { - "filename": "https://jsr.io/@probitas/discover/0.4.1/discover.ts", - "line": 90, - "col": 2, - "byteIndex": 2372 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, + "kind": "code", + "text": "```ts\nimport { discoverScenarioFiles } from \"@probitas-test/discover\";\n\n// Discover from current directory\nconst files = await discoverScenarioFiles([\".\"]);\nconsole.log(files);\n// [\"/path/to/auth.probitas.ts\", \"/path/to/api.probitas.ts\"]\n```" + } + ] + }, + { + "tag": "@example", + "name": "Mixed files and directories", + "content": [ { - "name": "filesFound", - "jsDoc": { - "doc": "Total number of matching files found so far." - }, - "location": { - "filename": "https://jsr.io/@probitas/discover/0.4.1/discover.ts", - "line": 95, - "col": 2, - "byteIndex": 2458 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "```ts\nimport { discoverScenarioFiles } from \"@probitas-test/discover\";\n\n// Combine specific files with directory scanning\nconst files = await discoverScenarioFiles([\n \"./critical.probitas.ts\", // Direct file\n \"./tests/api/\", // Directory to scan\n \"./tests/integration/\", // Another directory\n]);\n```" + } + ] + }, + { + "tag": "@example", + "name": "Custom patterns", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { discoverScenarioFiles } from \"@probitas-test/discover\";\n\n// Use custom include/exclude patterns\nconst files = await discoverScenarioFiles([\"./tests\"], {\n includes: [\"**/*.test.ts\", \"**/*.spec.ts\"], // Custom patterns\n excludes: [\"**/_*.ts\", \"**/helpers/**\"], // Skip files starting with _\n});\n```" + } + ] + }, + { + "tag": "@example", + "name": "Integration with loader", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { discoverScenarioFiles } from \"@probitas-test/discover\";\nimport { loadScenarios } from \"@probitas-test/core/loader\";\nimport type { Reporter } from \"@probitas-test/runner\";\nimport { Runner } from \"@probitas-test/runner\";\n\n// Complete workflow: discover -> load -> run\nconst files = await discoverScenarioFiles([\"./scenarios\"]);\nconst scenarios = await loadScenarios(files);\nconst reporter: Reporter = {}; // Minimal reporter (all methods optional)\nconst runner = new Runner(reporter);\nconst summary = await runner.run(scenarios);\n```" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } - }, + ] + }, + "children": [ { + "id": 5205, "name": "DiscoverOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/discover/0.4.1/discover.ts", - "line": 103, - "col": 0, - "byteIndex": 2611 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for discovering scenario files.\n\nControls which files are included or excluded when scanning directories." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "includes", - "jsDoc": { - "doc": "Glob patterns for files to include when scanning directories.\n\nUses standard glob syntax with `**` for recursive matching.\n", - "tags": [ - { - "kind": "unsupported", - "value": "@default [\"**\\/*.probitas.ts\"]" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/discover/0.4.1/discover.ts", - "line": 111, - "col": 2, - "byteIndex": 2838 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Options for discovering scenario files.\n\nControls which files are included or excluded when scanning directories." + } + ] + }, + "children": [ + { + "id": 5207, + "name": "excludes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Glob patterns for files to exclude." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nExcludes common large directories (node_modules, target, .git, etc.)\n```" } - } + ] } - }, - "typeParams": [] + ] }, - { - "name": "excludes", - "jsDoc": { - "doc": "Glob patterns for files to exclude.\n", - "tags": [ - { - "kind": "unsupported", - "value": "@default Excludes common large directories (node_modules, target, .git, etc.)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/discover/0.4.1/discover.ts", - "line": 118, - "col": 2, - "byteIndex": 3012 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + }, + { + "id": 5206, + "name": "includes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Glob patterns for files to include when scanning directories.\n\nUses standard glob syntax with " + }, + { + "kind": "code", + "text": "`**`" + }, + { + "kind": "text", + "text": " for recursive matching." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n[\"**/*.probitas.ts\"]\n```" } - } + ] } - }, - "typeParams": [] + ] }, - { - "name": "onProgress", - "jsDoc": { - "doc": "Callback invoked during discovery to report progress.\n\nCalled when processing each path (file or directory) and after\ncompleting pattern matching within a directory. This allows CLI\napplications to display real-time progress feedback.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nawait discoverScenarioFiles([\"./scenarios\"], {\n onProgress: ({ currentPath, filesFound }) => {\n console.log(`Discovering: ${currentPath} (${filesFound} files found)`);\n },\n});\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/discover/0.4.1/discover.ts", - "line": 136, - "col": 2, - "byteIndex": 3561 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + }, + { + "id": 5208, + "name": "onProgress", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Callback invoked during discovery to report progress.\n\nCalled when processing each path (file or directory) and after\ncompleting pattern matching within a directory. This allows CLI\napplications to display real-time progress feedback." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ { - "kind": "identifier", - "name": "progress", - "optional": false, - "tsType": { - "repr": "DiscoverProgress", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DiscoverProgress" + "kind": "code", + "text": "```ts\nawait discoverScenarioFiles([\"./scenarios\"], {\n onProgress: ({ currentPath, filesFound }) => {\n console.log(`Discovering: ${currentPath} (${filesFound} files found)`);\n },\n});\n```" + } + ] + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5209, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5210, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5211, + "name": "progress", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 5202, + "name": "DiscoverProgress", + "package": "@probitas-test/discover" } } + ], + "type": { + "type": "intrinsic", + "name": "void" } - ], - "typeParams": [] - } - }, - "typeParams": [] + } + ] + } } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "discoverScenarioFiles", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/discover/0.4.1/discover.ts", - "line": 180, - "col": 0, - "byteIndex": 4927 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Discover scenario files from paths (files or directories).\n\nHandles two input types:\n- **File path**: Returns the file directly (no pattern matching)\n- **Directory path**: Scans using include/exclude patterns\n", - "tags": [ - { - "kind": "param", - "name": "paths", - "doc": "- Array of file paths or directory paths to scan" - }, - { - "kind": "param", - "name": "options", - "doc": "- Include/exclude patterns for directory scanning" - }, - { - "kind": "return", - "doc": "Array of absolute file paths, sorted alphabetically\n" - }, - { - "kind": "unsupported", - "value": "@remarks\n- Requires `--allow-read` permission\n- Non-existent paths are silently skipped\n- Duplicate files are automatically deduplicated\n- Output is always sorted for deterministic ordering\n" - }, - { - "kind": "example", - "doc": "Discover from directories\n```ts\nimport { discoverScenarioFiles } from \"@probitas-test/discover\";\n\n// Use default patterns (*.probitas.ts)\nconst files = await discoverScenarioFiles([\"./tests\", \"./integration\"]);\n```\n" - }, - { - "kind": "example", - "doc": "Discover with custom patterns\n```ts\nconst files = await discoverScenarioFiles([\"./src\"], {\n includes: [\"**\\/*.test.ts\", \"**\\/*.spec.ts\"],\n excludes: [\"**\\/__fixtures__/**\"]\n});\n```\n" - }, + "id": 5202, + "name": "DiscoverProgress", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Mixed files and directories\n```ts\nconst files = await discoverScenarioFiles([\n \"./tests/\", // Scan directory\n \"./smoke.probitas.ts\" // Include specific file\n]);\n```" + "kind": "text", + "text": "Progress information during file discovery.\n\nProvides real-time feedback about the discovery process, useful for\ndisplaying progress in CLI applications." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "paths", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "children": [ + { + "id": 5203, + "name": "currentPath", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The directory or file path currently being processed." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5204, + "name": "filesFound", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Total number of matching files found so far." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 5198, + "name": "discoverScenarioFiles", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 5199, + "name": "discoverScenarioFiles", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Discover scenario files from paths (files or directories).\n\nHandles two input types:\n- **File path**: Returns the file directly (no pattern matching)\n- **Directory path**: Scans using include/exclude patterns" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "Array of absolute file paths, sorted alphabetically" } - } + ] + }, + { + "tag": "@remarks", + "content": [ + { + "kind": "text", + "text": "- Requires " + }, + { + "kind": "code", + "text": "`--allow-read`" + }, + { + "kind": "text", + "text": " permission\n- Non-existent paths are silently skipped\n- Duplicate files are automatically deduplicated\n- Output is always sorted for deterministic ordering" + } + ] + }, + { + "tag": "@example", + "name": "Discover from directories", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { discoverScenarioFiles } from \"@probitas-test/discover\";\n\n// Use default patterns (*.probitas.ts)\nconst files = await discoverScenarioFiles([\"./tests\", \"./integration\"]);\n```" + } + ] + }, + { + "tag": "@example", + "name": "Discover with custom patterns", + "content": [ + { + "kind": "code", + "text": "```ts\nconst files = await discoverScenarioFiles([\"./src\"], {\n includes: [\"**/*.test.ts\", \"**/*.spec.ts\"],\n excludes: [\"**/__fixtures__/**\"]\n});\n```" + } + ] + }, + { + "tag": "@example", + "name": "Mixed files and directories", + "content": [ + { + "kind": "code", + "text": "```ts\nconst files = await discoverScenarioFiles([\n \"./tests/\", // Scan directory\n \"./smoke.probitas.ts\" // Include specific file\n]);\n```" + } + ] } - } + ] }, - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "DiscoverOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DiscoverOptions" + "parameters": [ + { + "id": 5200, + "name": "paths", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of file paths or directory paths to scan" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } } }, - "right": "[UNSUPPORTED]", - "tsType": null - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + { + "id": 5201, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Include/exclude patterns for directory scanning" + } + ] + }, + "type": { + "type": "reference", + "target": 5205, + "name": "DiscoverOptions", + "package": "@probitas-test/discover" + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } } ], - "typeName": "Promise" + "name": "Promise", + "package": "typescript" } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/discover", + "packageVersion": "0.4.2" } diff --git a/data/api/expect.json b/data/api/expect.json index b7f2a30..5c6de07 100644 --- a/data/api/expect.json +++ b/data/api/expect.json @@ -1,105694 +1,114872 @@ { - "name": "expect", - "specifier": "@probitas/expect", - "version": "0.5.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.5.0/expect.ts", - "line": 62, - "col": 0, - "byteIndex": 2249 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object.\n", - "tags": [ + "schemaVersion": "2.0", + "id": 5212, + "name": "@probitas-test/expect", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Type-safe expectation library for Probitas scenario testing with specialized assertions for various client types.\n\nThis module provides a unified " + }, + { + "kind": "code", + "text": "`expect()`" + }, + { + "kind": "text", + "text": " 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 " + }, + { + "kind": "code", + "text": "`expect()`" + }, + { + "kind": "text", + "text": " 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 " + }, + { + "kind": "code", + "text": "`toBeXxx`" + }, + { + "kind": "text", + "text": " or " + }, + { + "kind": "code", + "text": "`toHaveXxx`" + }, + { + "kind": "text", + "text": " patterns\n- **Generic fallback**: Chainable wrapper for @std/expect matchers\n\n## Usage\n\n### Unified expect Function\n\nThe " + }, + { + "kind": "code", + "text": "`expect()`" + }, + { + "kind": "text", + "text": " function automatically dispatches to the appropriate expectation based on the input type:" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "HTTP Response expectations", + "content": [ { - "kind": "example", - "doc": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + "kind": "code", + "text": "```typescript\nimport type { HttpResponse } from \"@probitas-test/client-http\";\nimport { expectHttpResponse } from \"./mod.ts\";\n\n// Mock HTTP response for example\nconst response = {\n kind: \"http\",\n ok: true,\n status: 200,\n statusText: \"OK\",\n headers: new Headers({ \"content-type\": \"application/json\" }),\n url: \"http://example.com/api/users\",\n body: null,\n duration: 100,\n text: null,\n json: { users: [] },\n} as unknown as HttpResponse;\n\nexpectHttpResponse(response)\n .toBeOk() // Status 2xx\n .toHaveStatus(200); // Specific status code\n```" } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "NotAny" - } - } + { + "tag": "@example", + "name": "GraphQL Response expectations", + "content": [ + { + "kind": "code", + "text": "```typescript\nimport type { GraphqlResponse } from \"@probitas-test/client-graphql\";\nimport { expectGraphqlResponse } from \"./mod.ts\";\n\n// Mock GraphQL response for example\nconst response = {\n kind: \"graphql\",\n ok: true,\n status: 200,\n headers: {},\n raw: { data: { user: { name: \"Alice\" } } },\n data: { user: { name: \"Alice\" } },\n error: null,\n duration: 50,\n} as unknown as GraphqlResponse;\n\nexpectGraphqlResponse(response)\n .toBeOk()\n .toHaveDataPresent()\n .toHaveErrorNull();\n```" } - ], - "returnType": { - "repr": "HttpResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponseExpectation" + ] + }, + { + "tag": "@example", + "name": "SQL Query Result expectations", + "content": [ + { + "kind": "code", + "text": "```typescript\nimport type { SqlQueryResult } from \"@probitas-test/client-sql\";\nimport { expectSqlQueryResult } from \"./mod.ts\";\n\n// Mock SQL query result for example\nconst result = {\n kind: \"sql\",\n ok: true,\n rows: Array.from({ length: 10 }, (_, i) => ({ id: i + 1, name: `User ${i + 1}` })),\n rowCount: 10,\n duration: 25,\n map: (_fn: (row: Record) => U) => [],\n as: () => ({ rows: [] as U[], rowCount: 0 }),\n} as unknown as SqlQueryResult;\n\nexpectSqlQueryResult(result)\n .toBeOk()\n .toHaveRowCount(10);\n```" } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + ] + }, + { + "tag": "@example", + "name": "Generic value expectations (chainable @std/expect)", + "content": [ { - "name": "T", - "constraint": { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } - } + "kind": "code", + "text": "```typescript\nimport { expect } from \"./mod.ts\";\n\n// All @std/expect matchers are supported\nexpect(42)\n .toBe(42)\n .toBeGreaterThan(40)\n .toBeLessThan(50);\n\n// .not modifier works correctly\nexpect(\"hello\")\n .not.toBe(\"world\")\n .not.toBeNull()\n .toContain(\"ello\");\n```" + }, + { + "kind": "text", + "text": "\n\n## Supported Client Types\n\n- **HTTP** - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expectHttpResponse", + "target": 5213 + }, + { + "kind": "text", + "text": " for REST API testing\n- **GraphQL** - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expectGraphqlResponse", + "target": 5736 + }, + { + "kind": "text", + "text": " for GraphQL queries\n- **ConnectRPC** - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expectConnectRpcResponse", + "target": 6116 + }, + { + "kind": "text", + "text": " for RPC calls\n- **gRPC** - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expectGrpcResponse", + "target": 6563 + }, + { + "kind": "text", + "text": " for gRPC calls\n- **SQL** - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expectSqlQueryResult", + "target": 9193 + }, + { + "kind": "text", + "text": " for database queries\n- **Redis** - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expectRedisResult", + "target": 6801 + }, + { + "kind": "text", + "text": " for Redis operations\n- **MongoDB** - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expectMongoResult", + "target": 7452 + }, + { + "kind": "text", + "text": " for MongoDB operations\n- **RabbitMQ** - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expectRabbitMqResult", + "target": 8682 + }, + { + "kind": "text", + "text": " for message queue operations\n- **SQS** - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expectSqsResult", + "target": 8105 + }, + { + "kind": "text", + "text": " for AWS SQS operations\n\nAll expectation methods follow a consistent naming pattern (" + }, + { + "kind": "code", + "text": "`toBeXxx`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`toHaveXxx`" + }, + { + "kind": "text", + "text": ") and support method chaining for fluent assertions.\n\n## Method Naming Convention\n\nAll expectation methods follow these patterns:\n\n- " + }, + { + "kind": "code", + "text": "`toBeXxx()`" + }, + { + "kind": "text", + "text": " - Assertions about the state (e.g., " + }, + { + "kind": "code", + "text": "`toBeOk()`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`toBeNull()`" + }, + { + "kind": "text", + "text": ")\n- " + }, + { + "kind": "code", + "text": "`toHaveXxx()`" + }, + { + "kind": "text", + "text": " - Assertions about properties (e.g., " + }, + { + "kind": "code", + "text": "`toHaveStatus()`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`toHaveLength()`" + }, + { + "kind": "text", + "text": ")\n- " + }, + { + "kind": "code", + "text": "`toMatchXxx()`" + }, + { + "kind": "text", + "text": " - Pattern matching (e.g., " + }, + { + "kind": "code", + "text": "`toMatchObject()`" + }, + { + "kind": "text", + "text": ")\n- Comparison methods use full names (e.g., " + }, + { + "kind": "code", + "text": "`toBeGreaterThan()`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`toBeLessThanOrEqual()`" + }, + { + "kind": "text", + "text": ")\n\n## Negation with .not\n\nAll expectation types support the " + }, + { + "kind": "code", + "text": "`.not`" + }, + { + "kind": "text", + "text": " modifier to negate assertions:" } ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 65, - "col": 0, - "byteIndex": 2345 }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "NotAny" - } - } + { + "tag": "@example", + "name": "Using .not modifier", + "content": [ + { + "kind": "code", + "text": "```typescript\nimport type { HttpResponse } from \"@probitas-test/client-http\";\nimport { expect, expectHttpResponse } from \"./mod.ts\";\n\n// Mock HTTP response for example\nconst response = {\n kind: \"http\",\n ok: true,\n status: 200,\n statusText: \"OK\",\n headers: new Headers(),\n url: \"http://example.com\",\n body: null,\n duration: 50,\n text: null,\n json: {},\n} as unknown as HttpResponse;\n\nexpectHttpResponse(response)\n .not.toHaveStatus(404)\n .toHaveStatus(200);\n\nexpect(42)\n .not.toBe(43)\n .not.toBeNull();\n```" + }, + { + "kind": "text", + "text": "\n\nThe " + }, + { + "kind": "code", + "text": "`.not`" + }, + { + "kind": "text", + "text": " modifier only affects the immediately following assertion, then resets to non-negated state:" } - ], - "returnType": { - "repr": "ConnectRpcResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponseExpectation" + ] + }, + { + "tag": "@example", + "name": ".not scoping", + "content": [ + { + "kind": "code", + "text": "```typescript\nimport { expect } from \"./mod.ts\";\n\nexpect(42)\n .not.toBe(43) // Negated\n .toBeGreaterThan(40); // Not negated\n```" + }, + { + "kind": "text", + "text": "\n\n## Chainable Expectations for Generic Values\n\nFor values that don't match any specific client type, " + }, + { + "kind": "code", + "text": "`expect()`" + }, + { + "kind": "text", + "text": " falls back to " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expectAnything", + "target": 9727 + }, + { + "kind": "text", + "text": ",\na chainable wrapper around @std/expect:" } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + ] + }, + { + "tag": "@example", + "name": "Chaining generic expectations", + "content": [ { - "name": "T", - "constraint": { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } - } + "kind": "code", + "text": "```typescript\nimport { expect } from \"./mod.ts\";\n\n// All @std/expect matchers are supported\nexpect(42)\n .toBe(42)\n .toBeGreaterThan(40)\n .toBeLessThan(50);\n\n// .not modifier works correctly\nexpect(\"hello\")\n .not.toBe(\"world\")\n .not.toBeNull()\n .toContain(\"ello\");\n\n// Complex assertions\nexpect({ a: 1, b: 2, c: 3 })\n .toMatchObject({ a: 1 })\n .toHaveProperty(\"b\", 2)\n .not.toBeNull();\n```" + }, + { + "kind": "text", + "text": "\n\n**Note:** " + }, + { + "kind": "code", + "text": "`.resolves`" + }, + { + "kind": "text", + "text": " and " + }, + { + "kind": "code", + "text": "`.rejects`" + }, + { + "kind": "text", + "text": " are intentionally not supported as they require " + }, + { + "kind": "code", + "text": "`.then()`" + }, + { + "kind": "text", + "text": " chaining,\nwhich degrades the UX compared to synchronous method chaining." } ] } - }, + ] + }, + "children": [ { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 68, - "col": 0, - "byteIndex": 2453 + "id": 6432, + "name": "ConnectRpcError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error class for ConnectRPC/gRPC errors.\n\nUse " + }, + { + "kind": "code", + "text": "`statusCode`" + }, + { + "kind": "text", + "text": " to distinguish between different gRPC error codes." + } + ] }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "children": [ + { + "id": 6433, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 6434, + "name": "ConnectRpcError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 6435, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "NotAny" + }, + { + "id": 6436, + "name": "statusCode", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 6414, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 6437, + "name": "statusMessage", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6438, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6429, + "name": "ConnectRpcErrorOptions", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "type": { + "type": "reference", + "target": 6432, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } } - } - ], - "returnType": { - "repr": "GraphqlResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlResponseExpectation" + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlResponse" + { + "id": 6444, + "name": "details", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 6426, + "name": "ErrorDetail", + "package": "@probitas-test/client-connectrpc" } } } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 71, - "col": 0, - "byteIndex": 2555 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "NotAny" + }, + { + "id": 6440, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 6443, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null } - } + ] } - ], - "returnType": { - "repr": "SqlQueryResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryResultExpectation" + }, + { + "id": 6439, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" } }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryResult" - } - } + { + "id": 6441, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 6414, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" } - ] - } + }, + { + "id": 6442, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] }, { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 74, - "col": 0, - "byteIndex": 2655 + "id": 6419, + "name": "ConnectRpcNetworkError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a network-level failure occurs.\n\nThis error indicates that the request could not be processed by the server\ndue to network issues (connection refused, DNS resolution failure, timeout, etc.).\nUnlike ConnectRpcError, this error means the server was never reached." + } + ] }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "children": [ + { + "id": 6420, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 6421, + "name": "ConnectRpcNetworkError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 6422, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "NotAny" + }, + { + "id": 6423, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": 6419, + "name": "ConnectRpcNetworkError", + "package": "@probitas-test/client-connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "returnType": { - "repr": "RedisExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisExpectation" + }, + { + "id": 6425, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" } }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "RedisResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisResult" - } - } + { + "id": 6424, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] }, { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 77, - "col": 0, - "byteIndex": 2746 + "id": 9395, + "name": "ConstraintError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a constraint violation occurs." + } + ] }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "children": [ + { + "id": 9396, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 9397, + "name": "ConstraintError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 9398, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "NotAny" + }, + { + "id": 9399, + "name": "constraint", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 9400, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 9376, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": 9395, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 9380, + "name": "SqlError.constructor" } } + ], + "overwrites": { + "type": "reference", + "target": 9379, + "name": "SqlError.constructor" } - ], - "returnType": { - "repr": "MongoExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoExpectation" + }, + { + "id": 9403, + "name": "constraint", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" } }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "MongoResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoResult" + { + "id": 9402, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "constraint" + }, + "overwrites": { + "type": "reference", + "target": 9385, + "name": "SqlError.kind" + } + }, + { + "id": 9401, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "ConstraintError" + }, + "defaultValue": "\"ConstraintError\"", + "overwrites": { + "type": "reference", + "target": 9384, + "name": "SqlError.name" + } + }, + { + "id": 9404, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 9386, + "name": "SqlError.sqlState" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 9378, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 80, - "col": 0, - "byteIndex": 2837 + "id": 9405, + "name": "DeadlockError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown when a deadlock is detected." + } + ] }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "children": [ + { + "id": 9406, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 9407, + "name": "DeadlockError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 9408, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "NotAny" + }, + { + "id": 9409, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 9376, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } + } + ], + "type": { + "type": "reference", + "target": 9405, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 9380, + "name": "SqlError.constructor" } } + ], + "overwrites": { + "type": "reference", + "target": 9379, + "name": "SqlError.constructor" } - ], - "returnType": { - "repr": "RabbitMqExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 9411, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "deadlock" + }, + "overwrites": { + "type": "reference", + "target": 9385, + "name": "SqlError.kind" + } + }, + { + "id": 9410, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "DeadlockError" + }, + "defaultValue": "\"DeadlockError\"", + "overwrites": { + "type": "reference", + "target": 9384, + "name": "SqlError.name" + } + }, + { + "id": 9412, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "literal", + "value": null } - ], - "typeName": "RabbitMqExpectation" + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 9386, + "name": "SqlError.sqlState" } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 9378, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 9623, + "name": "ExpectationError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "constraint": { - "repr": "RabbitMqResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqResult" + "kind": "text", + "text": "Custom error class for expectation failures.\n\nThis class is used to identify expectation errors and format them differently\nfrom regular errors (e.g., without \"Error:\" prefix in reporters)." + } + ] + }, + "children": [ + { + "id": 9624, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 9625, + "name": "ExpectationError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 9626, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 9623, + "name": "ExpectationError", + "package": "@probitas-test/expect" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] }, { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 83, - "col": 0, - "byteIndex": 2934 + "id": 6025, + "name": "GraphqlExecutionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error thrown for GraphQL execution errors.\n\nThis error is returned when the GraphQL server processes the request\nbut returns errors in the response (validation errors, resolver errors, etc.)." + } + ] }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "children": [ + { + "id": 6026, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 6027, + "name": "GraphqlExecutionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 6028, + "name": "errors", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 5962, + "name": "GraphqlErrorItem", + "package": "@probitas-test/client-graphql" + } } } - ], - "typeName": "NotAny" + }, + { + "id": 6029, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": 6025, + "name": "GraphqlExecutionError", + "package": "@probitas-test/client-graphql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "returnType": { - "repr": "SqsExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 6032, + "name": "errors", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "GraphQL errors from response" } - ], - "typeName": "SqsExpectation" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "SqsResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsResult" + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 5962, + "name": "GraphqlErrorItem", + "package": "@probitas-test/client-graphql" } } } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 87, - "col": 0, - "byteIndex": 3138 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "returnType": { - "repr": "AnythingExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AnythingExpectation" + }, + { + "id": 6031, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "graphql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" } }, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + { + "id": 6030, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "GraphqlExecutionError" + }, + "defaultValue": "\"GraphqlExecutionError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] }, { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 88, - "col": 0, - "byteIndex": 3195 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ + "id": 6033, + "name": "GraphqlNetworkError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Error thrown for network-level failures.\n\nThis error indicates that the request could not reach or be processed\nby the GraphQL server (connection refused, HTTP errors, etc.)." } - ], - "returnType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "ExpectationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/error.ts", - "line": 27, - "col": 0, - "byteIndex": 765 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Custom error class for expectation failures.\n\nThis class is used to identify expectation errors and format them differently\nfrom regular errors (e.g., without \"Error:\" prefix in reporters)." + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "children": [ + { + "id": 6034, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 6035, + "name": "GraphqlNetworkError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 6036, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6037, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } } + ], + "type": { + "type": "reference", + "target": 6033, + "name": "GraphqlNetworkError", + "package": "@probitas-test/client-graphql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/error.ts", - "line": 28, - "col": 2, - "byteIndex": 813 } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "properties": [], - "indexSignatures": [], - "methods": [], - "extends": "Error", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 6039, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "network" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 6038, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "GraphqlNetworkError" + }, + "defaultValue": "\"GraphqlNetworkError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] }, { - "name": "isExpectationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/error.ts", - "line": 40, - "col": 0, - "byteIndex": 1083 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if an error is an ExpectationError.\n\nHandles both same-process (instanceof) and cross-process (name check)\nscenarios, supporting worker serialization." - }, - "kind": "function", - "functionDef": { - "params": [ + "id": 5620, + "name": "HttpError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "err", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "HTTP error class for non-2xx responses.\n\nThis error is thrown (or returned in response.error) when the server\nresponds with a 4xx or 5xx status code. It includes the response body\nfor inspecting error details." } ], - "returnType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "AnythingExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 21, - "col": 0, - "byteIndex": 507 - }, - "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": [ + "blockTags": [ { - "name": "toBe", - "jsDoc": { - "doc": "Asserts that the value is strictly equal (`===`) to the expected value.\n", - "tags": [ + "tag": "@example", + "name": "Check status code and body", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient, HttpError } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({ url: \"http://localhost:3000\", throwOnError: true });\ntry {\n await http.get(\"/not-found\");\n} catch (error) {\n if (error instanceof HttpError && error.status === 404) {\n console.log(\"Not found:\", error.text);\n }\n}\n```" + } + ] + } + ] + }, + "children": [ + { + "id": 5621, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 5622, + "name": "HttpError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 5623, + "name": "status", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + "id": 5624, + "name": "statusText", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(42).toBe(42);\nexpectAnything(\"hello\").toBe(\"hello\");\n```" + "id": 5625, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5617, + "name": "HttpErrorOptions", + "package": "@probitas-test/client-http" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 49, - "col": 2, - "byteIndex": 1124 - }, - "params": [ + ], + "type": { + "type": "reference", + "target": 5620, + "name": "HttpError", + "package": "@probitas-test/client-http" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 5631, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Response headers (null if not available)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toEqual", - "jsDoc": { - "doc": "Asserts that the value is deeply equal to the expected value.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" }, - { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything({ a: 1 }).toEqual({ a: 1 });\nexpectAnything([1, 2, 3]).toEqual([1, 2, 3]);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 63, - "col": 2, - "byteIndex": 1476 - }, - "params": [ + "name": "Headers", + "package": "typescript" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + } + }, + { + "id": 5628, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "http" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 5627, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + }, + { + "id": 5629, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toStrictEqual", - "jsDoc": { - "doc": "Asserts that the value is strictly deeply equal to the expected value.\nUnlike {@linkcode toEqual}, this checks object types and `undefined` properties.\n", - "tags": [ + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5630, + "name": "statusText", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status text" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5634, + "name": "arrayBuffer", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 5635, + "name": "arrayBuffer", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + "kind": "text", + "text": "Get body as ArrayBuffer (null if no body)" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything({ a: 1 }).toStrictEqual({ a: 1 });\n```" + "type": "literal", + "value": null } ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 77, - "col": 2, - "byteIndex": 1881 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + } + }, + { + "id": 5636, + "name": "blob", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 5637, + "name": "blob", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as Blob (null if no body)" } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + ] }, - "typeParams": [] - }, - { - "name": "toMatch", - "jsDoc": { - "doc": "Asserts that the string matches the expected pattern.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- A string or RegExp pattern" + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(\"hello world\").toMatch(/world/);\nexpectAnything(\"hello world\").toMatch(/^hello/);\n```" + "type": "literal", + "value": null } ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 91, - "col": 2, - "byteIndex": 2249 - }, - "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", - "jsDoc": { - "doc": "Asserts that the object matches a subset of properties.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- An object containing expected properties" - }, + } + } + }, + { + "id": 5632, + "name": "body", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 5633, + "name": "body", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + "kind": "text", + "text": "Response body as raw bytes (null if no body)" } ] }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 104, - "col": 2, - "byteIndex": 2589 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toBeDefined", - "jsDoc": { - "doc": "Asserts that the value is not `undefined`.\n", - "tags": [ + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(42).toBeDefined();\nexpectAnything(\"hello\").toBeDefined();\n```" + "type": "literal", + "value": null } ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 117, - "col": 2, - "byteIndex": 2888 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toBeUndefined", - "jsDoc": { - "doc": "Asserts that the value is `undefined`.\n", - "tags": [ + } + } + }, + { + "id": 5640, + "name": "json", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 5641, + "name": "json", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(undefined).toBeUndefined();\n```" + "kind": "text", + "text": "Get body as parsed JSON (null if no body)." } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 129, - "col": 2, - "byteIndex": 3113 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toBeNull", - "jsDoc": { - "doc": "Asserts that the value is `null`.\n", - "tags": [ + ], + "blockTags": [ { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(null).toBeNull();\n```" + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "SyntaxError if body is not valid JSON" + } + ] } ] }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 141, - "col": 2, - "byteIndex": 3325 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toBeNaN", - "jsDoc": { - "doc": "Asserts that the value is `NaN`.\n", - "tags": [ + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 5638, + "name": "text", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 5639, + "name": "text", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(NaN).toBeNaN();\n```" + "kind": "text", + "text": "Get body as text (null if no body)" } ] }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 153, - "col": 2, - "byteIndex": 3529 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toBeTruthy", - "jsDoc": { - "doc": "Asserts that the value is truthy (not `false`, `0`, `\"\"`, `null`, `undefined`, or `NaN`).\n", - "tags": [ + "type": { + "type": "union", + "types": [ { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(1).toBeTruthy();\nexpectAnything(\"hello\").toBeTruthy();\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 166, - "col": 2, - "byteIndex": 3833 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toBeFalsy", - "jsDoc": { - "doc": "Asserts that the value is falsy (`false`, `0`, `\"\"`, `null`, `undefined`, or `NaN`).\n", - "tags": [ + "type": "intrinsic", + "name": "string" + }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(0).toBeFalsy();\nexpectAnything(\"\").toBeFalsy();\n```" + "type": "literal", + "value": null } ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 179, - "col": 2, - "byteIndex": 4128 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 5642, + "name": "HttpNetworkError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toContain", - "jsDoc": { - "doc": "Asserts that an array or string contains the expected item or substring.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The item or substring to check for" + "kind": "text", + "text": "Error thrown when a network-level failure occurs.\n\nThis error indicates that the request could not be processed by the server\ndue to network issues (connection refused, DNS resolution failure, etc.)." + } + ] + }, + "children": [ + { + "id": 5643, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 5644, + "name": "HttpNetworkError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 5645, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything([1, 2, 3]).toContain(2);\nexpectAnything(\"hello\").toContain(\"ell\");\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 193, - "col": 2, - "byteIndex": 4487 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 5646, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } } + ], + "type": { + "type": "reference", + "target": 5642, + "name": "HttpNetworkError", + "package": "@probitas-test/client-http" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 5648, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "network" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 5647, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "HttpNetworkError" + }, + "defaultValue": "\"HttpNetworkError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 7576, + "name": "MongoConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toContainEqual", - "jsDoc": { - "doc": "Asserts that an array contains an item equal to the expected value.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The item to check for equality" + "kind": "text", + "text": "Error thrown when a MongoDB connection cannot be established." + } + ] + }, + "children": [ + { + "id": 7577, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7578, + "name": "MongoConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7579, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything([{ a: 1 }, { b: 2 }]).toContainEqual({ a: 1 });\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 206, - "col": 2, - "byteIndex": 4830 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 7580, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7565, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } } + ], + "type": { + "type": "reference", + "target": 7576, + "name": "MongoConnectionError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 7569, + "name": "MongoError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": 7568, + "name": "MongoError.constructor" + } + }, + { + "id": 7583, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7574, + "name": "MongoError.code" + } + }, + { + "id": 7582, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection" + }, + "overwrites": { + "type": "reference", + "target": 7575, + "name": "MongoError.kind" + } + }, + { + "id": 7581, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoConnectionError" + }, + "defaultValue": "\"MongoConnectionError\"", + "overwrites": { + "type": "reference", + "target": 7573, + "name": "MongoError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7594, + "name": "MongoDuplicateKeyError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveLength", - "jsDoc": { - "doc": "Asserts that the array or string has the expected length.\n", - "tags": [ + "kind": "text", + "text": "Error thrown when a duplicate key constraint is violated." + } + ] + }, + "children": [ + { + "id": 7595, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7596, + "name": "MongoDuplicateKeyError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7597, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected length" + "id": 7598, + "name": "keyPattern", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 7599, + "name": "keyValue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything([1, 2, 3]).toHaveLength(3);\nexpectAnything(\"hello\").toHaveLength(5);\n```" + "id": 7600, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7565, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 220, - "col": 2, - "byteIndex": 5183 - }, - "params": [ + ], + "type": { + "type": "reference", + "target": 7594, + "name": "MongoDuplicateKeyError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 7569, + "name": "MongoError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 7568, + "name": "MongoError.constructor" + } + }, + { + "id": 7605, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7574, + "name": "MongoError.code" + } + }, + { + "id": 7603, + "name": "keyPattern", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "number" } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toBeGreaterThan", - "jsDoc": { - "doc": "Asserts that the number is greater than the expected value.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - }, - { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(10).toBeGreaterThan(5);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 233, - "col": 2, - "byteIndex": 5494 - }, - "params": [ + "name": "Record", + "package": "typescript" + } + }, + { + "id": 7604, + "name": "keyValue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "unknown" } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "name": "Record", + "package": "typescript" + } + }, + { + "id": 7602, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "duplicate_key" + }, + "overwrites": { + "type": "reference", + "target": 7575, + "name": "MongoError.kind" + } + }, + { + "id": 7601, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoDuplicateKeyError" + }, + "defaultValue": "\"MongoDuplicateKeyError\"", + "overwrites": { + "type": "reference", + "target": 7573, + "name": "MongoError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7567, + "name": "MongoError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toBeGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the number is greater than or equal to the expected value.\n", - "tags": [ + "kind": "text", + "text": "Base error class for MongoDB client errors." + } + ] + }, + "children": [ + { + "id": 7568, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7569, + "name": "MongoError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7570, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + "id": 7571, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(10).toBeGreaterThanOrEqual(10);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 246, - "col": 2, - "byteIndex": 5828 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 7572, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7565, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } } + ], + "type": { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 7574, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 7575, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 7573, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 7576, + "name": "MongoConnectionError" + }, + { + "type": "reference", + "target": 7584, + "name": "MongoQueryError" + }, + { + "type": "reference", + "target": 7594, + "name": "MongoDuplicateKeyError" + }, + { + "type": "reference", + "target": 7606, + "name": "MongoValidationError" + }, + { + "type": "reference", + "target": 7616, + "name": "MongoWriteError" + }, + { + "type": "reference", + "target": 7634, + "name": "MongoNotFoundError" + } + ] + }, + { + "id": 7634, + "name": "MongoNotFoundError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toBeLessThan", - "jsDoc": { - "doc": "Asserts that the number is less than the expected value.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + "kind": "text", + "text": "Error thrown when a document is not found (for firstOrThrow, lastOrThrow)." + } + ] + }, + "children": [ + { + "id": 7635, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7636, + "name": "MongoNotFoundError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7637, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(5).toBeLessThan(10);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 259, - "col": 2, - "byteIndex": 6143 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 7638, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7565, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } } + ], + "type": { + "type": "reference", + "target": 7634, + "name": "MongoNotFoundError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 7569, + "name": "MongoError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": 7568, + "name": "MongoError.constructor" + } + }, + { + "id": 7641, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7574, + "name": "MongoError.code" + } + }, + { + "id": 7640, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "not_found" + }, + "overwrites": { + "type": "reference", + "target": 7575, + "name": "MongoError.kind" + } + }, + { + "id": 7639, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoNotFoundError" + }, + "defaultValue": "\"MongoNotFoundError\"", + "overwrites": { + "type": "reference", + "target": 7573, + "name": "MongoError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7584, + "name": "MongoQueryError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toBeLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the number is less than or equal to the expected value.\n", - "tags": [ + "kind": "text", + "text": "Error thrown when a MongoDB query fails." + } + ] + }, + "children": [ + { + "id": 7585, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7586, + "name": "MongoQueryError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7587, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + "id": 7588, + "name": "collection", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(10).toBeLessThanOrEqual(10);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 272, - "col": 2, - "byteIndex": 6468 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 7589, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7565, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } } + ], + "type": { + "type": "reference", + "target": 7584, + "name": "MongoQueryError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 7569, + "name": "MongoError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": 7568, + "name": "MongoError.constructor" + } + }, + { + "id": 7593, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7574, + "name": "MongoError.code" + } + }, + { + "id": 7592, + "name": "collection", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7591, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "query" + }, + "overwrites": { + "type": "reference", + "target": 7575, + "name": "MongoError.kind" + } + }, + { + "id": 7590, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoQueryError" + }, + "defaultValue": "\"MongoQueryError\"", + "overwrites": { + "type": "reference", + "target": 7573, + "name": "MongoError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7606, + "name": "MongoValidationError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toBeCloseTo", - "jsDoc": { - "doc": "Asserts that the number is close to the expected value within a certain precision.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + "kind": "text", + "text": "Error thrown when document validation fails." + } + ] + }, + "children": [ + { + "id": 7607, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7608, + "name": "MongoValidationError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7609, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "numDigits", - "doc": "- Number of decimal digits to check (default: 2)" + "id": 7610, + "name": "validationErrors", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(0.1 + 0.2).toBeCloseTo(0.3);\nexpectAnything(0.123).toBeCloseTo(0.12, 2);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 287, - "col": 2, - "byteIndex": 6924 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 7611, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7565, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } } + ], + "type": { + "type": "reference", + "target": 7606, + "name": "MongoValidationError", + "package": "@probitas-test/client-mongodb" }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "overwrites": { + "type": "reference", + "target": 7569, + "name": "MongoError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } + ], + "overwrites": { + "type": "reference", + "target": 7568, + "name": "MongoError.constructor" + } + }, + { + "id": 7615, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7574, + "name": "MongoError.code" + } + }, + { + "id": 7613, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "validation" + }, + "overwrites": { + "type": "reference", + "target": 7575, + "name": "MongoError.kind" + } + }, + { + "id": 7612, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoValidationError" + }, + "defaultValue": "\"MongoValidationError\"", + "overwrites": { + "type": "reference", + "target": 7573, + "name": "MongoError.name" + } + }, + { + "id": 7614, + "name": "validationErrors", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7616, + "name": "MongoWriteError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toBeInstanceOf", - "jsDoc": { - "doc": "Asserts that the value is an instance of the expected class.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected constructor/class" + "kind": "text", + "text": "Error thrown when a write operation fails." + } + ] + }, + "children": [ + { + "id": 7617, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7618, + "name": "MongoWriteError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7619, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(new Date()).toBeInstanceOf(Date);\nexpectAnything(new Error(\"oops\")).toBeInstanceOf(Error);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 302, - "col": 2, - "byteIndex": 7448 - }, - "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" - } + "id": 7620, + "name": "writeErrors", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 7621, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 7623, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 7622, + "name": "index", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 7624, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] } } - ], - "typeParams": [] + } } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toThrow", - "jsDoc": { - "doc": "Asserts that a function throws an error matching the expected pattern.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- Optional string, RegExp, or Error to match" }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(() => { throw new Error(\"oops\"); }).toThrow(\"oops\");\nexpectAnything(() => { throw new Error(\"oops\"); }).toThrow(/oops/);\n```" + "id": 7625, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7565, + "name": "MongoErrorOptions", + "package": "@probitas-test/client-mongodb" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 316, - "col": 2, - "byteIndex": 7909 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + ], + "type": { + "type": "reference", + "target": 7616, + "name": "MongoWriteError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": 7569, + "name": "MongoError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 7568, + "name": "MongoError.constructor" + } + }, + { + "id": 7633, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7574, + "name": "MongoError.code" + } + }, + { + "id": 7627, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "write" + }, + "overwrites": { + "type": "reference", + "target": 7575, + "name": "MongoError.kind" + } + }, + { + "id": 7626, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "MongoWriteError" + }, + "defaultValue": "\"MongoWriteError\"", + "overwrites": { + "type": "reference", + "target": 7573, + "name": "MongoError.name" + } + }, + { + "id": 7628, + "name": "writeErrors", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 7629, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 7631, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "id": 7630, + "name": "index", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } }, { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" + "id": 7632, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } } ] } } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 9387, + "name": "QuerySyntaxError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveProperty", - "jsDoc": { - "doc": "Asserts that the object has a property at the specified path.\n", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- The property path (string or array of strings)" - }, - { - "kind": "param", - "name": "expectedValue", - "doc": "- Optional expected value at the path" + "kind": "text", + "text": "Error thrown when a SQL query has syntax errors." + } + ] + }, + "children": [ + { + "id": 9388, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 9389, + "name": "QuerySyntaxError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 9390, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything({ a: { b: 1 } }).toHaveProperty(\"a.b\");\nexpectAnything({ a: { b: 1 } }).toHaveProperty([\"a\", \"b\"], 1);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 331, - "col": 2, - "byteIndex": 8400 - }, - "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" - } - } - ] + "id": 9391, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 9376, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } } + ], + "type": { + "type": "reference", + "target": 9387, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" }, - { - "kind": "identifier", - "name": "expectedValue", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "overwrites": { + "type": "reference", + "target": 9380, + "name": "SqlError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveBeenCalled", - "jsDoc": { - "doc": "Asserts that a mock function was called at least once.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn();\nmock();\nexpectAnything(mock).toHaveBeenCalled();\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 351, - "col": 2, - "byteIndex": 8810 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveBeenCalledTimes", - "jsDoc": { - "doc": "Asserts that a mock function was called exactly the specified number of times.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected number of calls" - }, - { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn();\nmock(); mock();\nexpectAnything(mock).toHaveBeenCalledTimes(2);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 367, - "col": 2, - "byteIndex": 9220 - }, - "params": [ + } + ], + "overwrites": { + "type": "reference", + "target": 9379, + "name": "SqlError.constructor" + } + }, + { + "id": 9393, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "query" + }, + "overwrites": { + "type": "reference", + "target": 9385, + "name": "SqlError.kind" + } + }, + { + "id": 9392, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "QuerySyntaxError" + }, + "defaultValue": "\"QuerySyntaxError\"", + "overwrites": { + "type": "reference", + "target": 9384, + "name": "SqlError.name" + } + }, + { + "id": 9394, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, + "inheritedFrom": { + "type": "reference", + "target": 9386, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 9378, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 8886, + "name": "RabbitMqChannelError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveBeenCalledWith", - "jsDoc": { - "doc": "Asserts that a mock function was called with the specified arguments.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected arguments" + "kind": "text", + "text": "Error thrown when a RabbitMQ channel operation fails." + } + ] + }, + "children": [ + { + "id": 8887, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 8888, + "name": "RabbitMqChannelError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 8889, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn();\nmock(\"hello\", 42);\nexpectAnything(mock).toHaveBeenCalledWith(\"hello\", 42);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 383, - "col": 2, - "byteIndex": 9648 - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "id": 8890, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8883, + "name": "RabbitMqChannelErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": 8886, + "name": "RabbitMqChannelError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": 8868, + "name": "RabbitMqError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": 8867, + "name": "RabbitMqError.constructor" + } + }, + { + "id": 8893, + "name": "channelId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8894, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8873, + "name": "RabbitMqError.code" + } + }, + { + "id": 8892, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "channel" + }, + "overwrites": { + "type": "reference", + "target": 8874, + "name": "RabbitMqError.kind" + } + }, + { + "id": 8891, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RabbitMqChannelError" + }, + "defaultValue": "\"RabbitMqChannelError\"", + "overwrites": { + "type": "reference", + "target": 8872, + "name": "RabbitMqError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8866, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8875, + "name": "RabbitMqConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveBeenLastCalledWith", - "jsDoc": { - "doc": "Asserts that a mock function was last called with the specified arguments.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected arguments" + "kind": "text", + "text": "Error thrown when a RabbitMQ connection cannot be established." + } + ] + }, + "children": [ + { + "id": 8876, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 8877, + "name": "RabbitMqConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 8878, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn();\nmock(\"first\"); mock(\"last\");\nexpectAnything(mock).toHaveBeenLastCalledWith(\"last\");\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 399, - "col": 2, - "byteIndex": 10095 - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 8879, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8864, + "name": "RabbitMqErrorOptions", + "package": "@probitas-test/client-rabbitmq" } } + ], + "type": { + "type": "reference", + "target": 8875, + "name": "RabbitMqConnectionError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": 8868, + "name": "RabbitMqError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": 8867, + "name": "RabbitMqError.constructor" + } + }, + { + "id": 8882, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8873, + "name": "RabbitMqError.code" + } + }, + { + "id": 8881, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection" + }, + "overwrites": { + "type": "reference", + "target": 8874, + "name": "RabbitMqError.kind" + } + }, + { + "id": 8880, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RabbitMqConnectionError" + }, + "defaultValue": "\"RabbitMqConnectionError\"", + "overwrites": { + "type": "reference", + "target": 8872, + "name": "RabbitMqError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8866, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8866, + "name": "RabbitMqError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveBeenNthCalledWith", - "jsDoc": { - "doc": "Asserts that the nth call of a mock function was with the specified arguments.\n", - "tags": [ - { - "kind": "param", - "name": "n", - "doc": "- The call index (1-based)" + "kind": "text", + "text": "Base error class for RabbitMQ client errors." + } + ] + }, + "children": [ + { + "id": 8867, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 8868, + "name": "RabbitMqError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 8869, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "expected", - "doc": "- The expected arguments" + "id": 8870, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn();\nmock(\"first\"); mock(\"second\");\nexpectAnything(mock).toHaveBeenNthCalledWith(1, \"first\");\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 416, - "col": 2, - "byteIndex": 10596 - }, - "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" + "id": 8871, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8864, + "name": "RabbitMqErrorOptions", + "package": "@probitas-test/client-rabbitmq" } } + ], + "type": { + "type": "reference", + "target": 8866, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 8873, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8874, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 8872, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 8875, + "name": "RabbitMqConnectionError" + }, + { + "type": "reference", + "target": 8886, + "name": "RabbitMqChannelError" + }, + { + "type": "reference", + "target": 8898, + "name": "RabbitMqNotFoundError" + }, + { + "type": "reference", + "target": 8910, + "name": "RabbitMqPreconditionFailedError" + } + ] + }, + { + "id": 8898, + "name": "RabbitMqNotFoundError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveReturned", - "jsDoc": { - "doc": "Asserts that a mock function returned successfully at least once.\n", - "tags": [ + "kind": "text", + "text": "Error thrown when a RabbitMQ resource (queue or exchange) is not found." + } + ] + }, + "children": [ + { + "id": 8899, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 8900, + "name": "RabbitMqNotFoundError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 8901, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn(() => 42);\nmock();\nexpectAnything(mock).toHaveReturned();\n```" + "id": 8902, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 8895, + "name": "RabbitMqNotFoundErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 431, - "col": 2, - "byteIndex": 10973 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + ], + "type": { + "type": "reference", + "target": 8898, + "name": "RabbitMqNotFoundError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": 8868, + "name": "RabbitMqError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "target": 8867, + "name": "RabbitMqError.constructor" + } + }, + { + "id": 8906, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8873, + "name": "RabbitMqError.code" + } + }, + { + "id": 8904, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "not_found" + }, + "overwrites": { + "type": "reference", + "target": 8874, + "name": "RabbitMqError.kind" + } + }, + { + "id": 8903, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RabbitMqNotFoundError" + }, + "defaultValue": "\"RabbitMqNotFoundError\"", + "overwrites": { + "type": "reference", + "target": 8872, + "name": "RabbitMqError.name" + } + }, + { + "id": 8905, + "name": "resource", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8866, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8910, + "name": "RabbitMqPreconditionFailedError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveReturnedTimes", - "jsDoc": { - "doc": "Asserts that a mock function returned successfully the specified number of times.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected number of successful returns" + "kind": "text", + "text": "Error thrown when a RabbitMQ precondition check fails." + } + ] + }, + "children": [ + { + "id": 8911, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 8912, + "name": "RabbitMqPreconditionFailedError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 8913, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn(() => 42);\nmock(); mock();\nexpectAnything(mock).toHaveReturnedTimes(2);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 447, - "col": 2, - "byteIndex": 11403 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8914, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 8907, + "name": "RabbitMqPreconditionFailedErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": 8910, + "name": "RabbitMqPreconditionFailedError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": 8868, + "name": "RabbitMqError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": 8867, + "name": "RabbitMqError.constructor" + } + }, + { + "id": 8918, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8873, + "name": "RabbitMqError.code" + } + }, + { + "id": 8916, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "precondition_failed" + }, + "overwrites": { + "type": "reference", + "target": 8874, + "name": "RabbitMqError.kind" + } + }, + { + "id": 8915, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RabbitMqPreconditionFailedError" + }, + "defaultValue": "\"RabbitMqPreconditionFailedError\"", + "overwrites": { + "type": "reference", + "target": 8872, + "name": "RabbitMqError.name" + } + }, + { + "id": 8917, + "name": "reason", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8866, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 7428, + "name": "RedisCommandError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveReturnedWith", - "jsDoc": { - "doc": "Asserts that a mock function returned the specified value at least once.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected return value" + "kind": "text", + "text": "Error thrown when a Redis command fails." + } + ] + }, + "children": [ + { + "id": 7429, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7430, + "name": "RedisCommandError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7431, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn(() => 42);\nmock();\nexpectAnything(mock).toHaveReturnedWith(42);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 463, - "col": 2, - "byteIndex": 11821 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 7432, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7425, + "name": "RedisCommandErrorOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": 7428, + "name": "RedisCommandError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": 7410, + "name": "RedisError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": 7409, + "name": "RedisError.constructor" + } + }, + { + "id": 7436, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 7415, + "name": "RedisError.code" + } + }, + { + "id": 7435, + "name": "command", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7434, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "command" + }, + "overwrites": { + "type": "reference", + "target": 7416, + "name": "RedisError.kind" + } + }, + { + "id": 7433, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RedisCommandError" + }, + "defaultValue": "\"RedisCommandError\"", + "overwrites": { + "type": "reference", + "target": 7414, + "name": "RedisError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7408, + "name": "RedisError", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 7417, + "name": "RedisConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveLastReturnedWith", - "jsDoc": { - "doc": "Asserts that a mock function last returned the specified value.\n", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected return value" + "kind": "text", + "text": "Error thrown when a Redis connection cannot be established." + } + ] + }, + "children": [ + { + "id": 7418, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7419, + "name": "RedisConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7420, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn(() => 42);\nmock();\nexpectAnything(mock).toHaveLastReturnedWith(42);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 479, - "col": 2, - "byteIndex": 12234 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 7421, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7406, + "name": "RedisErrorOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": 7417, + "name": "RedisConnectionError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": 7410, + "name": "RedisError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "overwrites": { + "type": "reference", + "target": 7409, + "name": "RedisError.constructor" + } + }, + { + "id": 7424, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 7415, + "name": "RedisError.code" + } + }, + { + "id": 7423, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection" + }, + "overwrites": { + "type": "reference", + "target": 7416, + "name": "RedisError.kind" + } + }, + { + "id": 7422, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RedisConnectionError" + }, + "defaultValue": "\"RedisConnectionError\"", + "overwrites": { + "type": "reference", + "target": 7414, + "name": "RedisError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7408, + "name": "RedisError", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 7408, + "name": "RedisError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveNthReturnedWith", - "jsDoc": { - "doc": "Asserts that the nth call of a mock function returned the specified value.\n", - "tags": [ - { - "kind": "param", - "name": "n", - "doc": "- The call index (1-based)" + "kind": "text", + "text": "Base error class for Redis client errors." + } + ] + }, + "children": [ + { + "id": 7409, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7410, + "name": "RedisError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7411, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "expected", - "doc": "- The expected return value" + "id": 7412, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn((x: number) => x * 2);\nmock(1); mock(2);\nexpectAnything(mock).toHaveNthReturnedWith(2, 4);\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 496, - "col": 2, - "byteIndex": 12726 - }, - "params": [ - { - "kind": "identifier", - "name": "n", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 7413, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7406, + "name": "RedisErrorOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": 7408, + "name": "RedisError", + "package": "@probitas-test/client-redis" }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(42).not.toBe(43);\nexpectAnything(\"hello\").not.toBeNull();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 33, - "col": 2, - "byteIndex": 773 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + }, + { + "id": 7415, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 7416, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 7414, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 7417, + "name": "RedisConnectionError" + }, + { + "type": "reference", + "target": 7428, + "name": "RedisCommandError" + }, + { + "type": "reference", + "target": 7440, + "name": "RedisScriptError" + } + ] }, { - "name": "expectAnything", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/anything.ts", - "line": 525, - "col": 0, - "byteIndex": 13454 - }, - "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" - }, + "id": 7440, + "name": "RedisScriptError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nimport { expectAnything } from \"@probitas-test/expect\";\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(\"ello\");\n```" + "kind": "text", + "text": "Error thrown when a Redis Lua script fails." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "children": [ + { + "id": 7441, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 7442, + "name": "RedisScriptError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 7443, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7444, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7437, + "name": "RedisScriptErrorOptions", + "package": "@probitas-test/client-redis" + } + } + ], + "type": { + "type": "reference", + "target": 7440, + "name": "RedisScriptError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": 7410, + "name": "RedisError.constructor" } } + ], + "overwrites": { + "type": "reference", + "target": 7409, + "name": "RedisError.constructor" } - ], - "returnType": { - "repr": "AnythingExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AnythingExpectation" + }, + { + "id": 7448, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 7415, + "name": "RedisError.code" } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T" + { + "id": 7446, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "script" + }, + "overwrites": { + "type": "reference", + "target": 7416, + "name": "RedisError.kind" } - ] - } + }, + { + "id": 7445, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "RedisScriptError" + }, + "defaultValue": "\"RedisScriptError\"", + "overwrites": { + "type": "reference", + "target": 7414, + "name": "RedisError.name" + } + }, + { + "id": 7447, + "name": "script", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7408, + "name": "RedisError", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "HttpResponseExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 10, - "col": 0, - "byteIndex": 265 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for HTTP response validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the response is successful (status 2xx).\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { HttpResponse } from \"@probitas-test/client-http\";\nimport { expectHttpResponse } from \"./http.ts\";\nconst response = {\n kind: \"http\",\n ok: true,\n status: 200,\n statusText: \"OK\",\n headers: new Headers(),\n url: \"http://example.com\",\n body: null,\n duration: 0,\n text: null,\n json: null,\n} as unknown as HttpResponse;\n\nexpectHttpResponse(response).toBeOk();\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 60, - "col": 2, - "byteIndex": 1502 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "id": 9413, + "name": "SqlConnectionError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveStatus", - "jsDoc": { - "doc": "Asserts that the status equals the expected value.", - "tags": [ + "kind": "text", + "text": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" + } + ] + }, + "children": [ + { + "id": 9414, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 9415, + "name": "SqlConnectionError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 9416, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected status value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 66, - "col": 2, - "byteIndex": 1638 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 9417, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 9376, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" + } } + ], + "type": { + "type": "reference", + "target": 9413, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": 9380, + "name": "SqlError.constructor" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusEqual", - "jsDoc": { - "doc": "Asserts that the status equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected status value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 72, - "col": 2, - "byteIndex": 1817 - }, - "params": [ + } + ], + "overwrites": { + "type": "reference", + "target": 9379, + "name": "SqlError.constructor" + } + }, + { + "id": 9419, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection" + }, + "overwrites": { + "type": "reference", + "target": 9385, + "name": "SqlError.kind" + } + }, + { + "id": 9418, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqlConnectionError" + }, + "defaultValue": "\"SqlConnectionError\"", + "overwrites": { + "type": "reference", + "target": 9384, + "name": "SqlError.name" + } + }, + { + "id": 9420, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, + "inheritedFrom": { + "type": "reference", + "target": 9386, + "name": "SqlError.sqlState" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 9378, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 9378, + "name": "SqlError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveStatusStrictEqual", - "jsDoc": { - "doc": "Asserts that the status strictly equals the expected value.", - "tags": [ + "kind": "text", + "text": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." + } + ] + }, + "children": [ + { + "id": 9379, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 9380, + "name": "SqlError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 9381, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected status value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 78, - "col": 2, - "byteIndex": 1990 - }, - "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": "toHaveStatusSatisfying", - "jsDoc": { - "doc": "Asserts that the status satisfies the provided matcher function.", - "tags": [ + "id": 9382, + "name": "kind", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9375, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + } + }, { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the status and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 84, - "col": 2, - "byteIndex": 2207 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] + "id": 9383, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 9376, + "name": "SqlErrorOptions", + "package": "@probitas-test/client-sql" } } + ], + "type": { + "type": "reference", + "target": 9378, + "name": "SqlError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.constructor", + "package": "@probitas-test/client" + } + }, + { + "id": 9385, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 9375, + "name": "SqlErrorKind", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 9384, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + }, + { + "id": 9386, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 9387, + "name": "QuerySyntaxError" + }, + { + "type": "reference", + "target": 9395, + "name": "ConstraintError" + }, + { + "type": "reference", + "target": 9405, + "name": "DeadlockError" + }, + { + "type": "reference", + "target": 9413, + "name": "SqlConnectionError" + } + ] + }, + { + "id": 9630, + "name": "AnythingExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Chainable expectation interface for any value using @std/expect matchers.\n\nUnlike @std/expect which returns void from matchers, this interface returns\n" }, { - "name": "toHaveStatusNaN", - "jsDoc": { - "doc": "Asserts that the status is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 89, - "col": 2, - "byteIndex": 2323 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "code", + "text": "`this`" }, { - "name": "toHaveStatusGreaterThan", - "jsDoc": { - "doc": "Asserts that the status is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 95, - "col": 2, - "byteIndex": 2480 - }, - "params": [ + "kind": "text", + "text": " to enable method chaining." + } + ] + }, + "children": [ + { + "id": 9631, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Negates the next assertion." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the status is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 101, - "col": 2, - "byteIndex": 2673 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(42).not.toBe(43);\nexpectAnything(\"hello\").not.toBeNull();\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveStatusLessThan", - "jsDoc": { - "doc": "Asserts that the status is less than the expected value.", - "tags": [ + "type": { + "type": "reference", + "target": 9630, + "name": "AnythingExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 9632, + "name": "toBe", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9633, + "name": "toBe", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is strictly equal (" + }, + { + "kind": "code", + "text": "`===`" + }, + { + "kind": "text", + "text": ") to the expected value." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(42).toBe(42);\nexpectAnything(\"hello\").toBe(\"hello\");\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9634, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 107, - "col": 2, - "byteIndex": 2858 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the status is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 9680, + "name": "toBeCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9681, + "name": "toBeCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the number is close to the expected value within a certain precision." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(0.1 + 0.2).toBeCloseTo(0.3);\nexpectAnything(0.123).toBeCloseTo(0.12, 2);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9682, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 113, - "col": 2, - "byteIndex": 3045 - }, - "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": "toHaveStatusCloseTo", - "jsDoc": { - "doc": "Asserts that the status is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", + "id": 9683, "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 120, - "col": 2, - "byteIndex": 3291 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9647, + "name": "toBeDefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9648, + "name": "toBeDefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is not " + }, + { + "kind": "code", + "text": "`undefined`" + }, + { + "kind": "text", + "text": "." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(42).toBeDefined();\nexpectAnything(\"hello\").toBeDefined();\n```" + } + ] + } + ] }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusOneOf", - "jsDoc": { - "doc": "Asserts that the status is one of the specified values.", - "tags": [ - { - "kind": "param", - "name": "values", - "doc": "- Array of acceptable values" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 126, - "col": 2, - "byteIndex": 3480 - }, - "params": [ - { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 9657, + "name": "toBeFalsy", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9658, + "name": "toBeFalsy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is falsy (" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`0`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`\"\"`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`null`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`undefined`" + }, + { + "kind": "text", + "text": ", or " + }, + { + "kind": "code", + "text": "`NaN`" + }, + { + "kind": "text", + "text": ")." } - } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(0).toBeFalsy();\nexpectAnything(\"\").toBeFalsy();\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusText", - "jsDoc": { - "doc": "Asserts that the status text equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 9668, + "name": "toBeGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9669, + "name": "toBeGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the number is greater than the expected value." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(10).toBeGreaterThan(5);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9670, "name": "expected", - "doc": "- The expected status text" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 132, - "col": 2, - "byteIndex": 3648 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusTextEqual", - "jsDoc": { - "doc": "Asserts that the status text equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 9671, + "name": "toBeGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9672, + "name": "toBeGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the number is greater than or equal to the expected value." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(10).toBeGreaterThanOrEqual(10);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9673, "name": "expected", - "doc": "- The expected status text" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 138, - "col": 2, - "byteIndex": 3835 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusTextStrictEqual", - "jsDoc": { - "doc": "Asserts that the status text strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 9684, + "name": "toBeInstanceOf", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9685, + "name": "toBeInstanceOf", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is an instance of the expected class." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(new Date()).toBeInstanceOf(Date);\nexpectAnything(new Error(\"oops\")).toBeInstanceOf(Error);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9686, "name": "expected", - "doc": "- The expected status text" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 144, - "col": 2, - "byteIndex": 4016 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected constructor/class" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 9687, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 9688, + "name": "expected", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 9689, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusTextSatisfying", - "jsDoc": { - "doc": "Asserts that the status text satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 9674, + "name": "toBeLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9675, + "name": "toBeLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the number is less than the expected value." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(5).toBeLessThan(10);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the status text and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 150, - "col": 2, - "byteIndex": 4247 - }, - "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": "string", - "kind": "keyword", - "keyword": "string" - } + "id": 9676, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusTextContaining", - "jsDoc": { - "doc": "Asserts that the status text contains the specified substring.", - "tags": [ + } + ] + }, + { + "id": 9677, + "name": "toBeLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9678, + "name": "toBeLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the number is less than or equal to the expected value." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(10).toBeLessThanOrEqual(10);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 156, - "col": 2, - "byteIndex": 4447 - }, - "params": [ - { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 9679, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusTextMatching", - "jsDoc": { - "doc": "Asserts that the status text matches the specified regular expression.", - "tags": [ + } + ] + }, + { + "id": 9653, + "name": "toBeNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9654, + "name": "toBeNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is " + }, + { + "kind": "code", + "text": "`NaN`" + }, + { + "kind": "text", + "text": "." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(NaN).toBeNaN();\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9651, + "name": "toBeNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9652, + "name": "toBeNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is " + }, + { + "kind": "code", + "text": "`null`" + }, + { + "kind": "text", + "text": "." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(null).toBeNull();\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9655, + "name": "toBeTruthy", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9656, + "name": "toBeTruthy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is truthy (not " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`0`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`\"\"`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`null`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`undefined`" + }, + { + "kind": "text", + "text": ", or " + }, + { + "kind": "code", + "text": "`NaN`" + }, + { + "kind": "text", + "text": ")." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(1).toBeTruthy();\nexpectAnything(\"hello\").toBeTruthy();\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9649, + "name": "toBeUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9650, + "name": "toBeUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is " + }, + { + "kind": "code", + "text": "`undefined`" + }, + { + "kind": "text", + "text": "." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(undefined).toBeUndefined();\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9659, + "name": "toContain", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9660, + "name": "toContain", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that an array or string contains the expected item or substring." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything([1, 2, 3]).toContain(2);\nexpectAnything(\"hello\").toContain(\"ell\");\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9661, "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 162, - "col": 2, - "byteIndex": 4651 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item or substring to check for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeaders", - "jsDoc": { - "doc": "Asserts that the headers equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 9662, + "name": "toContainEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9663, + "name": "toContainEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that an array contains an item equal to the expected value." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything([{ a: 1 }, { b: 2 }]).toContainEqual({ a: 1 });\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9664, "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 168, - "col": 2, - "byteIndex": 4822 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to check for equality" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersEqual", - "jsDoc": { - "doc": "Asserts that the headers equal the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 9635, + "name": "toEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9636, + "name": "toEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is deeply equal to the expected value." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything({ a: 1 }).toEqual({ a: 1 });\nexpectAnything([1, 2, 3]).toEqual([1, 2, 3]);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9637, "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 174, - "col": 2, - "byteIndex": 5003 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersStrictEqual", - "jsDoc": { - "doc": "Asserts that the headers strictly equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 9697, + "name": "toHaveBeenCalled", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9698, + "name": "toHaveBeenCalled", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a mock function was called at least once." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn();\nmock();\nexpectAnything(mock).toHaveBeenCalled();\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9699, + "name": "toHaveBeenCalledTimes", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9700, + "name": "toHaveBeenCalledTimes", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a mock function was called exactly the specified number of times." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn();\nmock(); mock();\nexpectAnything(mock).toHaveBeenCalledTimes(2);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9701, "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 180, - "col": 2, - "byteIndex": 5178 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected number of calls" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersSatisfying", - "jsDoc": { - "doc": "Asserts that the headers satisfy the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 9702, + "name": "toHaveBeenCalledWith", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9703, + "name": "toHaveBeenCalledWith", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a mock function was called with the specified arguments." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn();\nmock(\"hello\", 42);\nexpectAnything(mock).toHaveBeenCalledWith(\"hello\", 42);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the headers and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 186, - "col": 2, - "byteIndex": 5396 - }, - "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": "HttpHeaders", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpHeaders" - } - } + "id": 9704, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected arguments" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersMatching", - "jsDoc": { - "doc": "Asserts that the headers match the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 194, - "col": 2, - "byteIndex": 5597 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" + } + ] + }, + { + "id": 9705, + "name": "toHaveBeenLastCalledWith", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9706, + "name": "toHaveBeenLastCalledWith", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a mock function was last called with the specified arguments." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn();\nmock(\"first\"); mock(\"last\");\nexpectAnything(mock).toHaveBeenLastCalledWith(\"last\");\n```" } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } + ] + } + ] + }, + "parameters": [ + { + "id": 9707, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected arguments" } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } - ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersProperty", - "jsDoc": { - "doc": "Asserts that the headers have the specified property.", - "tags": [ + } + ] + }, + { + "id": 9708, + "name": "toHaveBeenNthCalledWith", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9709, + "name": "toHaveBeenNthCalledWith", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the nth call of a mock function was with the specified arguments." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn();\nmock(\"first\"); mock(\"second\");\nexpectAnything(mock).toHaveBeenNthCalledWith(1, \"first\");\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "id": 9710, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The call index (1-based)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", - "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 203, - "col": 2, - "byteIndex": 5996 - }, - "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" + "id": 9711, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected arguments" } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } - ] - } - }, - { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertyContaining", - "jsDoc": { - "doc": "Asserts that the headers property contains the expected value.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, + } + ] + }, + { + "id": 9720, + "name": "toHaveLastReturnedWith", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9721, + "name": "toHaveLastReturnedWith", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a mock function last returned the specified value." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn(() => 42);\nmock();\nexpectAnything(mock).toHaveLastReturnedWith(42);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9722, "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 210, - "col": 2, - "byteIndex": 6361 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected return value" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9665, + "name": "toHaveLength", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9666, + "name": "toHaveLength", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the array or string has the expected length." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything([1, 2, 3]).toHaveLength(3);\nexpectAnything(\"hello\").toHaveLength(5);\n```" + } + ] + } + ] }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "parameters": [ + { + "id": 9667, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertyMatching", - "jsDoc": { - "doc": "Asserts that the headers property matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 9723, + "name": "toHaveNthReturnedWith", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9724, + "name": "toHaveNthReturnedWith", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the nth call of a mock function returned the specified value." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn((x: number) => x * 2);\nmock(1); mock(2);\nexpectAnything(mock).toHaveNthReturnedWith(2, 4);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "id": 9725, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The call index (1-based)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 220, - "col": 2, - "byteIndex": 6749 - }, - "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" + "id": 9726, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected return value" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9693, + "name": "toHaveProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9694, + "name": "toHaveProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the object has a property at the specified path." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything({ a: { b: 1 } }).toHaveProperty(\"a.b\");\nexpectAnything({ a: { b: 1 } }).toHaveProperty([\"a\", \"b\"], 1);\n```" + } + ] + } + ] }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" + "parameters": [ + { + "id": 9695, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The property path (string or array of strings)" } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the headers property satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + ] + } }, { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 230, - "col": 2, - "byteIndex": 7239 - }, - "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" + "id": 9696, + "name": "expectedValue", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the path" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - }, - { - "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": "any", - "kind": "keyword", - "keyword": "any" - } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9712, + "name": "toHaveReturned", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9713, + "name": "toHaveReturned", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a mock function returned successfully at least once." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn(() => 42);\nmock();\nexpectAnything(mock).toHaveReturned();\n```" } - ], - "typeParams": [] + ] } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUrl", - "jsDoc": { - "doc": "Asserts that the URL equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 9714, + "name": "toHaveReturnedTimes", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9715, + "name": "toHaveReturnedTimes", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a mock function returned successfully the specified number of times." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn(() => 42);\nmock(); mock();\nexpectAnything(mock).toHaveReturnedTimes(2);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9716, "name": "expected", - "doc": "- The expected URL value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 240, - "col": 2, - "byteIndex": 7585 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected number of successful returns" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUrlEqual", - "jsDoc": { - "doc": "Asserts that the URL equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 9717, + "name": "toHaveReturnedWith", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9718, + "name": "toHaveReturnedWith", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a mock function returned the specified value at least once." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\nimport { fn } from \"@std/expect\";\n\nconst mock = fn(() => 42);\nmock();\nexpectAnything(mock).toHaveReturnedWith(42);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9719, "name": "expected", - "doc": "- The expected URL value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 246, - "col": 2, - "byteIndex": 7755 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected return value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUrlStrictEqual", - "jsDoc": { - "doc": "Asserts that the URL strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 9641, + "name": "toMatch", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9642, + "name": "toMatch", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the string matches the expected pattern." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(\"hello world\").toMatch(/world/);\nexpectAnything(\"hello world\").toMatch(/^hello/);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9643, "name": "expected", - "doc": "- The expected URL value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 252, - "col": 2, - "byteIndex": 7919 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A string or RegExp pattern" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUrlSatisfying", - "jsDoc": { - "doc": "Asserts that the URL satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 9644, + "name": "toMatchObject", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9645, + "name": "toMatchObject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the object matches a subset of properties." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the URL and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 258, - "col": 2, - "byteIndex": 8127 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "id": 9646, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object containing expected properties" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } ], - "typeParams": [] + "name": "Record", + "package": "typescript" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUrlContaining", - "jsDoc": { - "doc": "Asserts that the URL contains the specified substring.", - "tags": [ + } + ] + }, + { + "id": 9638, + "name": "toStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9639, + "name": "toStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is strictly deeply equal to the expected value.\nUnlike " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "toEqual", + "target": 9635 + }, + { + "kind": "text", + "text": ", this checks object types and " + }, + { + "kind": "code", + "text": "`undefined`" + }, + { + "kind": "text", + "text": " properties." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything({ a: 1 }).toStrictEqual({ a: 1 });\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 264, - "col": 2, - "byteIndex": 8312 - }, - "params": [ - { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 9640, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUrlMatching", - "jsDoc": { - "doc": "Asserts that the URL matches the specified regular expression.", - "tags": [ + } + ] + }, + { + "id": 9690, + "name": "toThrow", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9691, + "name": "toThrow", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a function throws an error matching the expected pattern." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"./anything.ts\";\n\nexpectAnything(() => { throw new Error(\"oops\"); }).toThrow(\"oops\");\nexpectAnything(() => { throw new Error(\"oops\"); }).toThrow(/oops/);\n```" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9692, "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 270, - "col": 2, - "byteIndex": 8501 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional string, RegExp, or Error to match" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } + ] + } + ] + }, + { + "id": 6530, + "name": "ConnectRpcClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC client interface.\n\n## Field Name Conventions\n\nThis client automatically handles field name conversion between protobuf and JavaScript:\n\n- **Request fields**: Accept both " }, { - "name": "toHaveBody", - "jsDoc": { - "doc": "Asserts that the body equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected body value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 276, - "col": 2, - "byteIndex": 8660 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "code", + "text": "`snake_case`" }, { - "name": "toHaveBodyEqual", - "jsDoc": { - "doc": "Asserts that the body equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected body value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 282, - "col": 2, - "byteIndex": 8833 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": " (protobuf style) and " }, { - "name": "toHaveBodyStrictEqual", - "jsDoc": { - "doc": "Asserts that the body strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected body value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 288, - "col": 2, - "byteIndex": 9000 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "code", + "text": "`camelCase`" }, { - "name": "toHaveBodySatisfying", - "jsDoc": { - "doc": "Asserts that the body satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the body and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 294, - "col": 2, - "byteIndex": 9211 - }, - "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": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": " (JavaScript style)\n- **Response fields**: Converted to JavaScript conventions based on response type:\n - " }, { - "name": "toHaveBodyPresent", - "jsDoc": { - "doc": "Asserts that the body is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 299, - "col": 2, - "byteIndex": 9362 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "code", + "text": "`response.data`" }, { - "name": "toHaveBodyNull", - "jsDoc": { - "doc": "Asserts that the body is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 304, - "col": 2, - "byteIndex": 9440 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": ": Plain JSON object with " }, { - "name": "toHaveBodyUndefined", - "jsDoc": { - "doc": "Asserts that the body is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 309, - "col": 2, - "byteIndex": 9520 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "code", + "text": "`camelCase`" }, { - "name": "toHaveBodyNullish", - "jsDoc": { - "doc": "Asserts that the body is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 314, - "col": 2, - "byteIndex": 9623 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": " field names (no " }, { - "name": "toHaveBodyLength", - "jsDoc": { - "doc": "Asserts that the body length equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected body length" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 320, - "col": 2, - "byteIndex": 9774 - }, - "params": [ + "kind": "code", + "text": "`$typeName`" + }, + { + "kind": "text", + "text": ")\n - " + }, + { + "kind": "code", + "text": "`response.raw`" + }, + { + "kind": "text", + "text": ": Original protobuf Message object with all metadata (includes " + }, + { + "kind": "code", + "text": "`$typeName`" + }, + { + "kind": "text", + "text": ")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "```ts\nconst client = createConnectRpcClient({ url: \"http://localhost:50051\" });\n\n// Request: Both formats work\nawait client.call(\"echo.Echo\", \"echoWithDelay\", {\n message: \"hello\",\n delayMs: 100, // camelCase (recommended)\n // delay_ms: 100, // snake_case also works\n});\n\n// Response: data is JSON, raw is protobuf Message\nconst response = await client.call(\"echo.Echo\", \"echo\", { message: \"test\" });\nconsole.log(response.data); // { message: \"test\", metadata: {...} }\nconsole.log(response.raw); // { $typeName: \"echo.EchoResponse\", message: \"test\", ... }\n```" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + } + ] + }, + "children": [ + { + "id": 6531, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveBodyLengthEqual", - "jsDoc": { - "doc": "Asserts that the body length equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected body length" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 326, - "col": 2, - "byteIndex": 9961 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Client configuration" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveBodyLengthStrictEqual", - "jsDoc": { - "doc": "Asserts that the body length strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected body length" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 332, - "col": 2, - "byteIndex": 10142 - }, - "params": [ + "type": { + "type": "reference", + "target": 6355, + "name": "ConnectRpcClientConfig", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 6532, + "name": "reflection", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Reflection API (only available when schema: \"reflection\")" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveBodyLengthSatisfying", - "jsDoc": { - "doc": "Asserts that the body length satisfies the provided matcher function.", - "tags": [ + "type": { + "type": "reference", + "target": 6517, + "name": "ReflectionApi", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 6554, + "name": "bidiStream", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6555, + "name": "bidiStream", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a bidirectional streaming RPC call." + } + ] + }, + "typeParameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the body length and performs assertions" + "id": 6556, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 338, - "col": 2, - "byteIndex": 10373 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" + ], + "parameters": [ + { + "id": 6557, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6558, + "name": "methodName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6559, + "name": "requests", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async iterable of request messages" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "typeArguments": [ + { + "type": "reference", + "target": 6556, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true } ], - "typeParams": [] + "name": "AsyncIterable", + "package": "typescript" } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveBodyLengthNaN", - "jsDoc": { - "doc": "Asserts that the body length is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 343, - "col": 2, - "byteIndex": 10498 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveBodyLengthGreaterThan", - "jsDoc": { - "doc": "Asserts that the body length is greater than the expected value.", - "tags": [ + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 349, - "col": 2, - "byteIndex": 10664 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 6560, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 6367, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9825, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "AsyncIterable", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveBodyLengthGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the body length is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 6533, + "name": "call", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6534, + "name": "call", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a unary RPC call." + } + ] + }, + "typeParameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + "id": 6535, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 355, - "col": 2, - "byteIndex": 10866 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "parameters": [ + { + "id": 6536, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name (e.g., \"echo.EchoService\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6537, + "name": "methodName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name (e.g., \"echo\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6538, + "name": "request", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request message" + } + ] + }, + "type": { + "type": "reference", + "target": 6535, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + }, + { + "id": 6539, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 6367, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9825, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveBodyLengthLessThan", - "jsDoc": { - "doc": "Asserts that the body length is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 6547, + "name": "clientStream", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6548, + "name": "clientStream", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a client streaming RPC call." + } + ] + }, + "typeParameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + "id": 6549, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 361, - "col": 2, - "byteIndex": 11060 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "parameters": [ + { + "id": 6550, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6551, + "name": "methodName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6552, + "name": "requests", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async iterable of request messages" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 6549, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "AsyncIterable", + "package": "typescript" + } + }, + { + "id": 6553, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 6367, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9825, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveBodyLengthLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the body length is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 6561, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6562, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the client connection." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 6540, + "name": "serverStream", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6541, + "name": "serverStream", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Make a server streaming RPC call." + } + ] + }, + "typeParameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 367, - "col": 2, - "byteIndex": 11256 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 6542, + "name": "TRequest", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveBodyLengthCloseTo", - "jsDoc": { - "doc": "Asserts that the body length is close to the expected value.", - "tags": [ + ], + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + "id": 6543, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 374, - "col": 2, - "byteIndex": 11511 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 6544, + "name": "methodName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6545, + "name": "request", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request message" + } + ] + }, + "type": { + "type": "reference", + "target": 6542, + "name": "TRequest", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + }, + { + "id": 6546, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call options" + } + ] + }, + "type": { + "type": "reference", + "target": 6367, + "name": "ConnectRpcOptions", + "package": "@probitas-test/client-connectrpc" + } } - }, + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9825, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "AsyncIterable", + "package": "typescript" + } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] + }, + { + "id": 6355, + "name": "ConnectRpcClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Configuration for creating a ConnectRPC client." + } + ] + }, + "children": [ + { + "id": 6358, + "name": "httpVersion", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "HTTP version to use." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"2\"\n```" + } + ] + } + ] }, - { - "name": "toHaveText", - "jsDoc": { - "doc": "Asserts that the text equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected text value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 380, - "col": 2, - "byteIndex": 11696 - }, - "params": [ + "type": { + "type": "reference", + "target": 6342, + "name": "HttpVersion", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 6360, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Default metadata to send with every request." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveTextEqual", - "jsDoc": { - "doc": "Asserts that the text equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected text value" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 386, - "col": 2, - "byteIndex": 11869 - }, - "params": [ + "name": "HeadersInit", + "package": "typescript" + } + }, + { + "id": 6357, + "name": "protocol", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Protocol to use." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"grpc\"\n```" + } + ] + } + ] }, - { - "name": "toHaveTextStrictEqual", - "jsDoc": { - "doc": "Asserts that the text strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected text value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 392, - "col": 2, - "byteIndex": 12036 + "type": { + "type": "reference", + "target": 6341, + "name": "ConnectProtocol", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 6366, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [ + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 6361, + "name": "schema", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Schema resolution configuration.\n- \"reflection\": Use Server Reflection to discover services dynamically (default)\n- string: Path to FileDescriptorSet binary file (from " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`buf build --output set.binpb`" + }, + { + "kind": "text", + "text": ")\n- Uint8Array: FileDescriptorSet binary data\n- FileDescriptorSet: Pre-parsed FileDescriptorSet message object" } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"reflection\"\n```" + } + ] + } + ] }, - { - "name": "toHaveTextSatisfying", - "jsDoc": { - "doc": "Asserts that the text satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the text and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 398, - "col": 2, - "byteIndex": 12247 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] + "name": "ArrayBufferLike", + "package": "typescript" } - } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/wkt/google/protobuf/descriptor_pb.d.ts", + "qualifiedName": "FileDescriptorSet" + }, + "name": "FileDescriptorSet", + "package": "@bufbuild/protobuf" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + } + }, + { + "id": 6365, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] }, - { - "name": "toHaveTextContaining", - "jsDoc": { - "doc": "Asserts that the text contains the specified substring.", - "tags": [ - { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 404, - "col": 2, - "byteIndex": 12434 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 6363, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nCan be overridden per-request via ConnectRpcOptions.throwOnError." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTextMatching", - "jsDoc": { - "doc": "Asserts that the text matches the specified regular expression.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 410, - "col": 2, - "byteIndex": 12625 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveTextPresent", - "jsDoc": { - "doc": "Asserts that the text is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 415, - "col": 2, - "byteIndex": 12747 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 6364, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] }, - { - "name": "toHaveTextNull", - "jsDoc": { - "doc": "Asserts that the text is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 420, - "col": 2, - "byteIndex": 12825 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveTextUndefined", - "jsDoc": { - "doc": "Asserts that the text is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 425, - "col": 2, - "byteIndex": 12905 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + }, + { + "id": 6359, + "name": "tls", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveTextNullish", - "jsDoc": { - "doc": "Asserts that the text is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 430, - "col": 2, - "byteIndex": 13008 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "TLS configuration. If not provided, uses insecure credentials." + } + ] }, - { - "name": "toHaveTextLength", - "jsDoc": { - "doc": "Asserts that the text length equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected text length" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 436, - "col": 2, - "byteIndex": 13159 - }, - "params": [ + "type": { + "type": "reference", + "target": 6343, + "name": "TlsConfig", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 6356, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Server URL for ConnectRPC connections.\n\nCan be a URL string or a connection configuration object." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@example", + "name": "String URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = { url: \"http://localhost:50051\" };\n```" + } + ] + }, + { + "tag": "@example", + "name": "Connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = {\n url: { host: \"grpc.example.com\", port: 443, protocol: \"https\" },\n};\n```" + } + ] + } + ] }, - { - "name": "toHaveTextLengthEqual", - "jsDoc": { - "doc": "Asserts that the text length equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected text length" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 442, - "col": 2, - "byteIndex": 13346 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 6348, + "name": "ConnectRpcConnectionConfig", + "package": "@probitas-test/client-connectrpc" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + } + }, + { + "id": 6362, + "name": "useBinaryFormat", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveTextLengthStrictEqual", - "jsDoc": { - "doc": "Asserts that the text length strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected text length" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 448, - "col": 2, - "byteIndex": 13527 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Whether to use binary format for messages." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTextLengthSatisfying", - "jsDoc": { - "doc": "Asserts that the text length satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the text length and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 454, - "col": 2, - "byteIndex": 13758 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\ntrue\n```" } - } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 6348, + "name": "ConnectRpcConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveTextLengthNaN", - "jsDoc": { - "doc": "Asserts that the text length is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 459, - "col": 2, - "byteIndex": 13883 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "ConnectRPC connection configuration.\n\nExtends CommonConnectionConfig with ConnectRPC-specific options." + } + ] + }, + "children": [ + { + "id": 6351, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveTextLengthGreaterThan", - "jsDoc": { - "doc": "Asserts that the text length is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 465, - "col": 2, - "byteIndex": 14049 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Hostname or IP address." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" + } + ] + } + ] }, - { - "name": "toHaveTextLengthGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the text length is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 471, - "col": 2, - "byteIndex": 14251 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" + } + }, + { + "id": 6354, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 6350, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Service path prefix." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"\"\n```" + } + ] + } + ] }, - { - "name": "toHaveTextLengthLessThan", - "jsDoc": { - "doc": "Asserts that the text length is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 477, - "col": 2, - "byteIndex": 14445 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6352, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 6349, + "name": "protocol", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Protocol to use." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"http\"\n```" + } + ] + } + ] }, - { - "name": "toHaveTextLengthLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the text length is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 483, - "col": 2, - "byteIndex": 14641 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "literal", + "value": "http" + }, + { + "type": "literal", + "value": "https" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + } + }, + { + "id": 6353, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 6429, + "name": "ConnectRpcErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveTextLengthCloseTo", - "jsDoc": { - "doc": "Asserts that the text length is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 490, - "col": 2, - "byteIndex": 14896 - }, - "params": [ + "kind": "text", + "text": "Options for ConnectRpcError construction." + } + ] + }, + "children": [ + { + "id": 6431, + "name": "details", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "kind": "text", + "text": "Rich error details from google.rpc.Status." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 6426, + "name": "ErrorDetail", + "package": "@probitas-test/client-connectrpc" + } } }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + } + }, + { + "id": 6430, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveJson", - "jsDoc": { - "doc": "Asserts that the JSON equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected JSON value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 496, - "col": 2, - "byteIndex": 15081 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Headers/metadata from the ConnectRPC response." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ] + }, + { + "id": 6367, + "name": "ConnectRpcOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveJsonEqual", - "jsDoc": { - "doc": "Asserts that the JSON equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected JSON value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 502, - "col": 2, - "byteIndex": 15254 - }, - "params": [ + "kind": "text", + "text": "Options for individual ConnectRPC calls." + } + ] + }, + "children": [ + { + "id": 6368, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Metadata to send with the request." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" }, - "typeParams": [] + "name": "HeadersInit", + "package": "typescript" + } + }, + { + "id": 6372, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] }, - { - "name": "toHaveJsonStrictEqual", - "jsDoc": { - "doc": "Asserts that the JSON strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected JSON value" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 508, - "col": 2, - "byteIndex": 15421 + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 6371, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 6369, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nOverrides ConnectRpcClientConfig.throwOnError." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveJsonSatisfying", - "jsDoc": { - "doc": "Asserts that the JSON satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the JSON and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 514, - "col": 2, - "byteIndex": 15632 - }, - "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": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } - } - ], - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" } - } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveJsonPresent", - "jsDoc": { - "doc": "Asserts that the JSON is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 522, - "col": 2, - "byteIndex": 15922 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 6370, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] }, - { - "name": "toHaveJsonNull", - "jsDoc": { - "doc": "Asserts that the JSON is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 527, - "col": 2, - "byteIndex": 16000 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 9827, + "name": "ConnectRpcResponseError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveJsonUndefined", - "jsDoc": { - "doc": "Asserts that the JSON is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 532, - "col": 2, - "byteIndex": 16080 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "ConnectRPC response with gRPC error (statusCode !== 0).\n\nThe server processed the request but returned an error status." + } + ] + }, + "children": [ + { + "id": 9837, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveJsonNullish", - "jsDoc": { - "doc": "Asserts that the JSON is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 537, - "col": 2, - "byteIndex": 16183 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "No data for error responses." + } + ] }, - { - "name": "toHaveJsonMatching", - "jsDoc": { - "doc": "Asserts that the JSON matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 543, - "col": 2, - "byteIndex": 16331 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.data", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9839, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveJsonProperty", - "jsDoc": { - "doc": "Asserts that the JSON has the specified property.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 552, - "col": 2, - "byteIndex": 16723 - }, - "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" - } - } - ] - } - }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 9852, + "name": "ConnectRpcResponseBase.duration", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9831, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- ConnectRpcError for gRPC errors\n- ConnectRpcNetworkError/AbortError/TimeoutError for failures" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveJsonPropertyContaining", - "jsDoc": { - "doc": "Asserts that the JSON property contains the expected value.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 559, - "col": 2, - "byteIndex": 17082 - }, - "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" - } - } - ] - } - }, + "type": { + "type": "reference", + "target": 6432, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.error", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9834, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Response headers." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveJsonPropertyMatching", - "jsDoc": { - "doc": "Asserts that the JSON property matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 569, - "col": 2, - "byteIndex": 17464 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" }, - "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" - } - } - ] - } + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 9838, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " }, { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "kind": "code", + "text": "`\"connectrpc\"`" + }, + { + "kind": "text", + "text": " for ConnectRPC responses. Use this in switch statements\nfor type-safe narrowing of union types." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveJsonPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the JSON property satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 579, - "col": 2, - "byteIndex": 17948 - }, - "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" - } - } - ] - } + "type": { + "type": "literal", + "value": "connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": 9851, + "name": "ConnectRpcResponseBase.kind", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9830, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " }, { - "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": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] - } - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": statusCode === 0 (OK)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": gRPC error or request failure" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 589, - "col": 2, - "byteIndex": 18301 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.ok", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9829, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or gRPC error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, connection refused)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 595, - "col": 2, - "byteIndex": 18486 - }, - "params": [ + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.processed", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9836, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Raw ConnectError." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@connectrpc/connect", + "packagePath": "dist/esm/connect-error.d.ts", + "qualifiedName": "ConnectError" }, - "typeParams": [] + "name": "ConnectError", + "package": "@connectrpc/connect" }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 601, - "col": 2, - "byteIndex": 18665 - }, - "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": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 607, - "col": 2, - "byteIndex": 18888 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 612, - "col": 2, - "byteIndex": 19008 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.raw", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9832, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 618, - "col": 2, - "byteIndex": 19169 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "gRPC status code (1-16)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 624, - "col": 2, - "byteIndex": 19366 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 6414, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9833, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 630, - "col": 2, - "byteIndex": 19555 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Status message describing the error." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 636, - "col": 2, - "byteIndex": 19746 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 9835, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 643, - "col": 2, - "byteIndex": 19996 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Response trailers (sent at end of RPC)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" }, - "typeParams": [] + "name": "Headers", + "package": "typescript" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { HttpResponse } from \"@probitas-test/client-http\";\nimport { expectHttpResponse } from \"./http.ts\";\nconst response = {\n kind: \"http\",\n ok: false,\n status: 500,\n statusText: \"Error\",\n headers: new Headers(),\n url: \"http://example.com\",\n body: null,\n duration: 0,\n text: null,\n json: null,\n} as unknown as HttpResponse;\n\nexpectHttpResponse(response).not.toBeOk();\nexpectHttpResponse(response).not.toHaveStatus(404);\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 35, - "col": 2, - "byteIndex": 914 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } + ], + "typeParameters": [ + { + "id": 9828, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/response.d.ts", + "qualifiedName": "ConnectRpcResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9828, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseError.T", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseBase", + "package": "@probitas-test/client-connectrpc" + } + ] }, { - "name": "expectHttpResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/http.ts", - "line": 646, - "col": 0, - "byteIndex": 20066 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ + "id": 6454, + "name": "ConnectRpcResponseErrorParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "response", - "optional": false, - "tsType": { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } - } + "kind": "text", + "text": "Parameters for creating an error ConnectRpcResponse." } - ], - "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.8.0/response.ts", - "line": 184, - "col": 0, - "byteIndex": 5739 + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP response union type representing all possible response states.\n\n- **Success (2xx)**: `processed: true, ok: true, error: null`\n- **Error (4xx/5xx)**: `processed: true, ok: false, error: HttpError`\n- **Failure (network error)**: `processed: false, ok: false, error: Error`\n", - "tags": [ - { - "kind": "example", - "doc": "Type narrowing by ok\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.ok) {\n // TypeScript knows: HttpResponseSuccess\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseError | HttpResponseFailure\n console.log(response.error); // Error\n}\n```\n" + "children": [ + { + "id": 6459, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6455, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "@connectrpc/connect", + "packagePath": "dist/esm/connect-error.d.ts", + "qualifiedName": "ConnectError" + }, + "name": "ConnectError", + "package": "@connectrpc/connect" + } + }, + { + "id": 6457, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 6456, + "name": "rpcError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 6432, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 6458, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + } + ] + }, + { + "id": 6119, + "name": "ConnectRpcResponseExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Type narrowing by processed\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.processed) {\n // TypeScript knows: HttpResponseSuccess | HttpResponseError\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseFailure\n console.log(response.error); // Error (network error)\n}\n```" + "kind": "text", + "text": "Fluent assertion interface for ConnectRpcResponse." } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "HttpResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "HttpResponseSuccess" + "children": [ + { + "id": 6120, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } - }, - { - "repr": "HttpResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "blockTags": [ + { + "tag": "@example", + "content": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "code", + "text": "```ts\nimport type { ConnectRpcResponse } from \"@probitas-test/client-connectrpc\";\nimport { expectConnectRpcResponse } from \"./connectrpc.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"connectrpc\",\n ok: false,\n statusCode: 2,\n statusMessage: \"Not Found\",\n headers: mockHeaders,\n trailers: mockHeaders,\n data: null,\n duration: 0,\n} as unknown as ConnectRpcResponse;\n\nexpectConnectRpcResponse(response).not.toBeOk();\nexpectConnectRpcResponse(response).not.toHaveStatusCode(0);\n```" } - ], - "typeName": "HttpResponseError" + ] } - }, + ] + }, + "type": { + "type": "reference", + "target": 6119, + "name": "ConnectRpcResponseExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 6121, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "HttpResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 6122, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Asserts that the response is successful (code 0)." } ], - "typeName": "HttpResponseFailure" + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ConnectRpcResponse } from \"@probitas-test/client-connectrpc\";\nimport { expectConnectRpcResponse } from \"./connectrpc.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"connectrpc\",\n ok: true,\n statusCode: 0,\n statusMessage: undefined,\n headers: mockHeaders,\n trailers: mockHeaders,\n data: { result: \"success\" },\n duration: 0,\n} as unknown as ConnectRpcResponse;\n\nexpectConnectRpcResponse(response).toBeOk();\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "HttpResponseError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 90, - "col": 0, - "byteIndex": 2746 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP response for error responses (4xx/5xx status codes).\n\nServer received and processed the request, but returned an error status." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "HttpResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + { + "id": 6262, + "name": "toHaveData", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6263, + "name": "toHaveData", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data equals the expected value." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 6264, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected data value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "HttpResponseBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 92, - "col": 2, - "byteIndex": 2861 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "jsDoc": { - "doc": "Response was not successful (4xx/5xx)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 95, - "col": 2, - "byteIndex": 2938 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the HTTP error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 98, - "col": 2, - "byteIndex": 3003 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "HttpError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpError" - } - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code (4xx/5xx)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 101, - "col": 2, - "byteIndex": 3070 - }, - "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.8.0/response.ts", - "line": 104, - "col": 2, - "byteIndex": 3125 - }, - "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.8.0/response.ts", - "line": 107, - "col": 2, - "byteIndex": 3184 - }, - "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." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 110, - "col": 2, - "byteIndex": 3250 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - } - ] - } - }, - { - "name": "HttpResponseFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 120, - "col": 0, - "byteIndex": 3613 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP response for request failures (network errors, timeouts, etc.).\n\nRequest could not be processed by the server (network error, DNS failure,\nconnection refused, timeout, aborted, etc.)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "HttpResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 6265, + "name": "toHaveDataEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6266, + "name": "toHaveDataEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 6267, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected data value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "HttpResponseBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server did not process the request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 122, - "col": 2, - "byteIndex": 3736 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "jsDoc": { - "doc": "Request failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 125, - "col": 2, - "byteIndex": 3791 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the failure (ConnectionError, TimeoutError, AbortError)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 128, - "col": 2, - "byteIndex": 3897 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "HttpFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpFailureError" + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "No HTTP status (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 131, - "col": 2, - "byteIndex": 3989 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "statusText", - "jsDoc": { - "doc": "No HTTP status text (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 134, - "col": 2, - "byteIndex": 4075 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "No headers (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 137, - "col": 2, - "byteIndex": 4156 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "body", - "jsDoc": { - "doc": "No body (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 140, - "col": 2, - "byteIndex": 4231 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "raw", - "jsDoc": { - "doc": "No raw response (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 143, - "col": 2, - "byteIndex": 4311 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - } - ] - } - }, - { - "name": "HttpResponseSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 61, - "col": 0, - "byteIndex": 1949 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP response for successful requests (2xx status codes).\n\nWraps Web standard Response, allowing body to be read synchronously\nand multiple times (unlike the streaming-based standard Response)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "HttpResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 6285, + "name": "toHaveDataMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6286, + "name": "toHaveDataMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data matches the specified subset." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 6287, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] } } ], - "typeName": "HttpResponseBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 63, - "col": 2, - "byteIndex": 2066 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "jsDoc": { - "doc": "Response was successful (2xx)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 66, - "col": 2, - "byteIndex": 2135 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "jsDoc": { - "doc": "No error for successful responses." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 69, - "col": 2, - "byteIndex": 2201 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code (200-299)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 72, - "col": 2, - "byteIndex": 2263 - }, - "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.8.0/response.ts", - "line": 75, - "col": 2, - "byteIndex": 2318 - }, - "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.8.0/response.ts", - "line": 78, - "col": 2, - "byteIndex": 2377 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw Web standard Response." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 81, - "col": 2, - "byteIndex": 2443 - }, - "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": "QueryValue", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 23, - "col": 0, - "byteIndex": 366 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Query parameter value type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" } ] }, - "typeParams": [] - } - }, - { - "name": "BodyInit", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 28, - "col": 0, - "byteIndex": 449 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Request body type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - { - "repr": "FormData", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "FormData" - } - }, + { + "id": 6279, + "name": "toHaveDataNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "URLSearchParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "URLSearchParams" + "id": 6280, + "name": "toHaveDataNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } ] }, - "typeParams": [] - } - }, - { - "name": "RedirectMode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 41, - "col": 0, - "byteIndex": 732 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redirect handling mode.\n- \"follow\": Automatically follow redirects (default)\n- \"manual\": Return redirect response without following\n- \"error\": Throw error on redirect" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "follow", - "kind": "literal", - "literal": { - "kind": "string", - "string": "follow" - } - }, + { + "id": 6283, + "name": "toHaveDataNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "manual", - "kind": "literal", - "literal": { - "kind": "string", - "string": "manual" + "id": 6284, + "name": "toHaveDataNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 6277, + "name": "toHaveDataPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "error", - "kind": "literal", - "literal": { - "kind": "string", - "string": "error" + "id": 6278, + "name": "toHaveDataPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "QueryParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 46, - "col": 0, - "byteIndex": 867 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Query parameters type - accepts URLSearchParams or plain object." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "URLSearchParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "URLSearchParams" - } - }, + { + "id": 6288, + "name": "toHaveDataProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 6289, + "name": "toHaveDataProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Asserts that the data has the specified property." + } + ] + }, + "parameters": [ + { + "id": 6290, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] }, - { - "repr": "", - "kind": "union", - "union": [ + "type": { + "type": "union", + "types": [ { - "repr": "QueryValue", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QueryValue" - } + "type": "intrinsic", + "name": "string" }, { - "repr": "", - "kind": "array", - "array": { - "repr": "QueryValue", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QueryValue" - } + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } } ] } - ], - "typeName": "Record" + }, + { + "id": 6291, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "HttpOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 53, - "col": 0, - "byteIndex": 1010 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual HTTP requests." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "query", - "jsDoc": { - "doc": "Query parameters (arrays for multi-value params)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 55, - "col": 2, - "byteIndex": 1123 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "QueryParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QueryParams" - } - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "Additional request headers" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 58, - "col": 2, - "byteIndex": 1192 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" - } - }, - "typeParams": [] - }, - { - "name": "redirect", - "jsDoc": { - "doc": "Redirect handling mode.", - "tags": [ + { + "id": 6292, + "name": "toHaveDataPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6293, + "name": "toHaveDataPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data property contains the expected value." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"follow\" (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 64, - "col": 2, - "byteIndex": 1339 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "RedirectMode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedirectMode" - } - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw HttpError for non-2xx responses.\nWhen false, non-2xx responses are returned as HttpResponse.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 71, - "col": 2, - "byteIndex": 1576 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpRequestOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 77, - "col": 0, - "byteIndex": 1674 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for HTTP requests that may include a body." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "HttpOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "body", - "jsDoc": { - "doc": "Request body" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 79, - "col": 2, - "byteIndex": 1756 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "BodyInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "BodyInit" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "CookieConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 85, - "col": 0, - "byteIndex": 1827 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Cookie handling configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "disabled", - "jsDoc": { - "doc": "Disable automatic cookie handling.\nWhen disabled, cookies are not stored or sent automatically.", - "tags": [ + "id": 6294, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 91, - "col": 2, - "byteIndex": 1999 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "initial", - "jsDoc": { - "doc": "Initial cookies to populate the cookie jar." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 96, - "col": 2, - "byteIndex": 2092 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 6295, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" + } + ] }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": { + "type": "intrinsic", + "name": "unknown" } - ], - "typeName": "Record" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 104, - "col": 0, - "byteIndex": 2245 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP connection configuration.\n\nExtends CommonConnectionConfig with HTTP-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "protocol", - "jsDoc": { - "doc": "Protocol to use.", - "tags": [ + ] + }, + { + "id": 6296, + "name": "toHaveDataPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6297, + "name": "toHaveDataPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data property matches the specified subset." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"http\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 109, - "col": 2, - "byteIndex": 2373 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" + "id": 6298, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] } }, { - "repr": "https", - "kind": "literal", - "literal": { - "kind": "string", - "string": "https" + "id": 6299, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] } } - ] - }, - "typeParams": [] - }, - { - "name": "path", - "jsDoc": { - "doc": "Base path prefix for all requests.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 115, - "col": 2, - "byteIndex": 2483 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 121, - "col": 0, - "byteIndex": 2548 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP client configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "Base URL for all requests.\n\nCan be a URL string or a connection configuration object.\n", - "tags": [ - { - "kind": "example", - "doc": "String URL\n```ts\nimport type { HttpClientConfig } from \"@probitas-test/client-http\";\nconst config: HttpClientConfig = { url: \"http://localhost:3000\" };\n```\n" - }, + ] + }, + { + "id": 6300, + "name": "toHaveDataPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6301, + "name": "toHaveDataPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data property satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "example", - "doc": "Connection config object\n```ts\nimport type { HttpClientConfig } from \"@probitas-test/client-http\";\nconst config: HttpClientConfig = {\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n};\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 141, - "col": 2, - "byteIndex": 3171 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 6302, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "repr": "HttpConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpConnectionConfig" + "id": 6303, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6304, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6305, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6306, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } - ] - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "Default headers for all requests" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 144, - "col": 2, - "byteIndex": 3261 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" - } - }, - "typeParams": [] - }, - { - "name": "fetch", - "jsDoc": { - "doc": "Custom fetch implementation (for testing/mocking)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 147, - "col": 2, - "byteIndex": 3355 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Fetch", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Fetch" - } - }, - "typeParams": [] - }, - { - "name": "redirect", - "jsDoc": { - "doc": "Default redirect handling mode.\nCan be overridden per-request via HttpOptions.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"follow\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 154, - "col": 2, - "byteIndex": 3506 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "RedirectMode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedirectMode" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw HttpError for non-2xx responses.\nCan be overridden per-request via HttpOptions.", - "tags": [ + } + ] + }, + { + "id": 6271, + "name": "toHaveDataSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6272, + "name": "toHaveDataSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default false" + "id": 6273, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the data and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6274, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6275, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6276, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 161, - "col": 2, - "byteIndex": 3682 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "cookies", - "jsDoc": { - "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.8.0/types.ts", - "line": 169, - "col": 2, - "byteIndex": 3922 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "CookieConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CookieConfig" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 175, - "col": 0, - "byteIndex": 3992 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP client interface." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" } - } - ], - "constructors": [], - "methods": [ - { - "name": "get", - "jsDoc": { - "doc": "Send GET request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 180, - "col": 2, - "byteIndex": 4142 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] + }, + { + "id": 6268, + "name": "toHaveDataStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6269, + "name": "toHaveDataStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data strictly equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpOptions" + "parameters": [ + { + "id": 6270, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected data value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + } + ] + }, + { + "id": 6281, + "name": "toHaveDataUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6282, + "name": "toHaveDataUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is undefined." } - ], - "typeName": "Promise" + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "head", - "jsDoc": { - "doc": "Send HEAD request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 183, - "col": 2, - "byteIndex": 4237 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + } + ] + }, + { + "id": 6307, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6308, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpOptions" + "parameters": [ + { + "id": 6309, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + } + ] + }, + { + "id": 6336, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6337, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "post", - "jsDoc": { - "doc": "Send POST request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 186, - "col": 2, - "byteIndex": 4333 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpRequestOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpRequestOptions" + "parameters": [ + { + "id": 6338, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6339, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + } + ] + }, + { + "id": 6310, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6311, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "put", - "jsDoc": { - "doc": "Send PUT request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 189, - "col": 2, - "byteIndex": 4435 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpRequestOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpRequestOptions" + "parameters": [ + { + "id": 6312, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + } + ] + }, + { + "id": 6324, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6325, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "patch", - "jsDoc": { - "doc": "Send PATCH request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 192, - "col": 2, - "byteIndex": 4538 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpRequestOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpRequestOptions" + "parameters": [ + { + "id": 6326, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + } + ] + }, + { + "id": 6327, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6328, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "delete", - "jsDoc": { - "doc": "Send DELETE request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 195, - "col": 2, - "byteIndex": 4644 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpRequestOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpRequestOptions" + "parameters": [ + { + "id": 6329, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + } + ] + }, + { + "id": 6330, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6331, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "options", - "jsDoc": { - "doc": "Send OPTIONS request" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 198, - "col": 2, - "byteIndex": 4752 - }, - "params": [ - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpOptions" + "parameters": [ + { + "id": 6332, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + } + ] + }, + { + "id": 6333, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6334, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "request", - "jsDoc": { - "doc": "Send request with arbitrary method" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 201, - "col": 2, - "byteIndex": 4868 - }, - "params": [ - { - "kind": "identifier", - "name": "method", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "path", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpRequestOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpRequestOptions" + "parameters": [ + { + "id": 6335, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + } + ] + }, + { + "id": 6322, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6323, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." } - ], - "typeName": "Promise" + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "getCookies", - "jsDoc": { - "doc": "Get all cookies in the cookie jar.\nReturns empty object if cookies are disabled." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 211, - "col": 2, - "byteIndex": 5083 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + } + ] + }, + { + "id": 6316, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6317, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." } - ], - "typeName": "Record" - } - }, - "typeParams": [] - }, - { - "name": "setCookie", - "jsDoc": { - "doc": "Set a cookie in the cookie jar.", - "tags": [ - { - "kind": "throws", - "type": null, - "doc": "Error if cookies are disabled" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 217, - "col": 2, - "byteIndex": 5216 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "typeParams": [] - }, - { - "name": "clearCookies", - "jsDoc": { - "doc": "Clear all cookies from the cookie jar.\nNo-op if cookies are disabled." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 223, - "col": 2, - "byteIndex": 5357 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "typeParams": [] - }, - { - "name": "close", - "jsDoc": { - "doc": "Close the client and release resources" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 226, - "col": 2, - "byteIndex": 5430 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "Client configuration" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/types.ts", - "line": 177, - "col": 2, - "byteIndex": 4078 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "HttpClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpClientConfig" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 43, - "col": 0, - "byteIndex": 936 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for creating an HttpError." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "body", - "jsDoc": { - "doc": "Response body as raw bytes" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 45, - "col": 2, - "byteIndex": 1031 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1094 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "HttpError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 71, - "col": 0, - "byteIndex": 1776 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP error class for non-2xx responses.\n\nThis error is thrown (or returned in response.error) when the server\nresponds with a 4xx or 5xx status code. It includes the response body\nfor inspecting error details.\n", - "tags": [ - { - "kind": "example", - "doc": "Check status code and body\n```ts\nimport { createHttpClient, HttpError } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({ url: \"http://localhost:3000\", throwOnError: true });\ntry {\n await http.get(\"/not-found\");\n} catch (error) {\n if (error instanceof HttpError && error.status === 404) {\n console.log(\"Not found:\", error.text);\n }\n}\n```" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "status", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "statusText", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "HttpErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpErrorOptions" + "id": 6318, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6319, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6320, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6321, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 86, - "col": 2, - "byteIndex": 2144 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 72, - "col": 2, - "byteIndex": 1823 - } - }, - { - "tsType": { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 73, - "col": 2, - "byteIndex": 1871 - } - }, - { - "jsDoc": { - "doc": "HTTP status code" - }, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1942 - } - }, - { - "jsDoc": { - "doc": "HTTP status text" - }, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusText", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 79, - "col": 2, - "byteIndex": 1996 - } - }, - { - "jsDoc": { - "doc": "Response headers (null if not available)" - }, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 82, - "col": 2, - "byteIndex": 2078 } - } - ], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Response body as raw bytes (null if no body)" - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "body", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, + ] + }, + { + "id": 6313, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6314, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." } ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 102, - "col": 2, - "byteIndex": 2623 - } - }, - { - "jsDoc": { - "doc": "Get body as ArrayBuffer (null if no body)" - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "arrayBuffer", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ArrayBuffer", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ArrayBuffer" - } + "parameters": [ + { + "id": 6315, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "intrinsic", + "name": "unknown" } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 107, - "col": 2, - "byteIndex": 2742 + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - }, - { - "jsDoc": { - "doc": "Get body as Blob (null if no body)" - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "blob", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Blob", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Blob" - } - }, + ] + }, + { + "id": 6188, + "name": "toHaveHeaders", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6189, + "name": "toHaveHeaders", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "text", + "text": "Asserts that the headers equal the expected value." } ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 112, - "col": 2, - "byteIndex": 2868 - } - }, - { - "jsDoc": { - "doc": "Get body as text (null if no body)" - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "text", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "parameters": [ + { + "id": 6190, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6191, + "name": "toHaveHeadersEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6192, + "name": "toHaveHeadersEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "text", + "text": "Asserts that the headers equal the expected value using deep equality." } ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 117, - "col": 2, - "byteIndex": 2973 - } - }, - { - "jsDoc": { - "doc": "Get body as parsed JSON (null if no body).", - "tags": [ + "parameters": [ { - "kind": "throws", - "type": null, - "doc": "SyntaxError if body is not valid JSON" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "json", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 125, - "col": 2, - "byteIndex": 3147 - } - } - ], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "HttpNetworkError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 136, - "col": 0, - "byteIndex": 3423 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a network-level failure occurs.\n\nThis error indicates that the request could not be processed by the server\ndue to network issues (connection refused, DNS resolution failure, etc.)." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" + "id": 6193, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 140, - "col": 2, - "byteIndex": 3572 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 137, - "col": 2, - "byteIndex": 3477 - } - }, - { - "tsType": { - "repr": "network", - "kind": "literal", - "literal": { - "kind": "string", - "string": "network" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 138, - "col": 2, - "byteIndex": 3524 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "HttpFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/errors.ts", - "line": 149, - "col": 0, - "byteIndex": 3814 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "HttpNetworkError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpNetworkError" - } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" - } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "createHttpClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/client.ts", - "line": 435, - "col": 0, - "byteIndex": 12249 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new HTTP client instance.\n\nThe client provides methods for making HTTP requests with automatic\ncookie handling, response body pre-loading, and error handling.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- Client configuration including URL and default options" - }, - { - "kind": "return", - "doc": "A new HTTP client instance\n" - }, - { - "kind": "example", - "doc": "Basic usage with string URL\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({ url: \"http://localhost:3000\" });\n\nconst response = await http.get(\"/users/123\");\nconsole.log(response.json);\n\nawait http.close();\n```\n" - }, - { - "kind": "example", - "doc": "With connection config object\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n});\nawait http.close();\n```\n" - }, - { - "kind": "example", - "doc": "With default headers\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({\n url: \"http://localhost:3000\",\n headers: {\n \"Authorization\": \"Bearer token123\",\n \"Accept\": \"application/json\",\n },\n});\nawait http.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/health\");\nconsole.log(response.ok);\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "HttpClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpClientConfig" - } - } - } - ], - "returnType": { - "repr": "HttpClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpClient" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "HttpResponseSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 194, - "col": 0, - "byteIndex": 6036 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of HttpResponseSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "raw", - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - } - }, - { - "kind": "identifier", - "name": "body", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } + { + "id": 6203, + "name": "toHaveHeadersMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6204, + "name": "toHaveHeadersMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers match the specified subset." + } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 6205, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 209, - "col": 2, - "byteIndex": 6459 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 196, - "col": 2, - "byteIndex": 6122 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 197, - "col": 2, - "byteIndex": 6157 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 198, - "col": 2, - "byteIndex": 6195 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 199, - "col": 2, - "byteIndex": 6226 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 200, - "col": 2, - "byteIndex": 6251 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusText", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 201, - "col": 2, - "byteIndex": 6278 - } - }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 202, - "col": 2, - "byteIndex": 6309 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 203, - "col": 2, - "byteIndex": 6338 - } - }, - { - "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-http/0.8.0/response.ts", - "line": 204, - "col": 2, - "byteIndex": 6362 } - } - ], - "indexSignatures": [], - "methods": [ - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "body", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, + ] + }, + { + "id": 6206, + "name": "toHaveHeadersProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6207, + "name": "toHaveHeadersProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "text", + "text": "Asserts that the headers have the specified property." } ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 223, - "col": 2, - "byteIndex": 6791 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "arrayBuffer", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ArrayBuffer", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ArrayBuffer" - } + "parameters": [ + { + "id": 6208, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 227, - "col": 2, - "byteIndex": 6859 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "blob", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Blob", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Blob" - } + }, + { + "id": 6209, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 231, - "col": 2, - "byteIndex": 6941 + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "text", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ] + }, + { + "id": 6210, + "name": "toHaveHeadersPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6211, + "name": "toHaveHeadersPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "text", + "text": "Asserts that the headers property contains the expected value." } ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 235, - "col": 2, - "byteIndex": 7002 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "json", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "parameters": [ + { + "id": 6212, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 239, - "col": 2, - "byteIndex": 7065 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 243, - "col": 2, - "byteIndex": 7135 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "HttpResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 6213, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "HttpResponseSuccess" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "superTypeParams": [] - } - }, - { - "name": "HttpResponseErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 254, - "col": 0, - "byteIndex": 7426 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of HttpResponseError.\nProxies body methods to the HttpError instance.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "raw", - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "HttpError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpError" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 267, - "col": 2, - "byteIndex": 7820 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 255, - "col": 2, - "byteIndex": 7506 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 256, - "col": 2, - "byteIndex": 7541 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 257, - "col": 2, - "byteIndex": 7579 - } - }, - { - "tsType": { - "repr": "HttpError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 258, - "col": 2, - "byteIndex": 7611 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 259, - "col": 2, - "byteIndex": 7640 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusText", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 260, - "col": 2, - "byteIndex": 7667 - } - }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 261, - "col": 2, - "byteIndex": 7698 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 262, - "col": 2, - "byteIndex": 7727 - } - }, - { - "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-http/0.8.0/response.ts", - "line": 263, - "col": 2, - "byteIndex": 7751 - } - } - ], - "indexSignatures": [], - "methods": [ - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "body", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 282, - "col": 2, - "byteIndex": 8151 } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "arrayBuffer", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ArrayBuffer", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ArrayBuffer" - } - }, + ] + }, + { + "id": 6214, + "name": "toHaveHeadersPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6215, + "name": "toHaveHeadersPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "text", + "text": "Asserts that the headers property matches the specified subset." } ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 286, - "col": 2, - "byteIndex": 8218 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "blob", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Blob", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Blob" - } - }, + "parameters": [ + { + "id": 6216, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6217, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6218, + "name": "toHaveHeadersPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6219, + "name": "toHaveHeadersPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "text", + "text": "Asserts that the headers property satisfies the provided matcher function." } ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 290, - "col": 2, - "byteIndex": 8300 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "text", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "parameters": [ + { + "id": 6220, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6221, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" + } + ] }, + "type": { + "type": "reflection", + "declaration": { + "id": 6222, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6223, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6224, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6197, + "name": "toHaveHeadersSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6198, + "name": "toHaveHeadersSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "text", + "text": "Asserts that the headers satisfy the provided matcher function." } ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 294, - "col": 2, - "byteIndex": 8361 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "json", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "parameters": [ + { + "id": 6199, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the headers and performs assertions" + } + ] }, + "type": { + "type": "reflection", + "declaration": { + "id": 6200, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6201, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6202, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6194, + "name": "toHaveHeadersStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6195, + "name": "toHaveHeadersStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "kind": "text", + "text": "Asserts that the headers strictly equal the expected value." } ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 298, - "col": 2, - "byteIndex": 8424 - } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 302, - "col": 2, - "byteIndex": 8494 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "HttpResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 6196, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "HttpResponseError" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "superTypeParams": [] - } - }, - { - "name": "HttpResponseFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 312, - "col": 0, - "byteIndex": 8736 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of HttpResponseFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "url", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + ] + }, + { + "id": 6123, + "name": "toHaveStatusCode", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6124, + "name": "toHaveStatusCode", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "HttpFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpFailureError" + "parameters": [ + { + "id": 6125, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected code value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 331, - "col": 2, - "byteIndex": 9252 } - } - ], - "properties": [ - { - "tsType": { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 314, - "col": 2, - "byteIndex": 8822 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 315, - "col": 2, - "byteIndex": 8857 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 316, - "col": 2, - "byteIndex": 8896 - } - }, - { - "tsType": { - "repr": "HttpFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpFailureError" + ] + }, + { + "id": 6152, + "name": "toHaveStatusCodeCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6153, + "name": "toHaveStatusCodeCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 6154, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6155, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 317, - "col": 2, - "byteIndex": 8928 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 318, - "col": 2, - "byteIndex": 8964 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusText", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 319, - "col": 2, - "byteIndex": 8990 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 320, - "col": 2, - "byteIndex": 9020 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 321, - "col": 2, - "byteIndex": 9047 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "body", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 322, - "col": 2, - "byteIndex": 9071 - } - }, - { - "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-http/0.8.0/response.ts", - "line": 323, - "col": 2, - "byteIndex": 9095 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "arrayBuffer", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 325, - "col": 2, - "byteIndex": 9125 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "blob", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 326, - "col": 2, - "byteIndex": 9156 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "text", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 327, - "col": 2, - "byteIndex": 9180 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "json", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 328, - "col": 2, - "byteIndex": 9204 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 329, - "col": 2, - "byteIndex": 9228 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "HttpResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 6126, + "name": "toHaveStatusCodeEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6127, + "name": "toHaveStatusCodeEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 6128, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected code value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "HttpResponseFailure" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "superTypeParams": [] - } - }, - { - "name": "GraphqlResponseExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 10, - "col": 0, - "byteIndex": 267 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for GraphQL response validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the response is successful (no errors).\n", - "tags": [ + ] + }, + { + "id": 6140, + "name": "toHaveStatusCodeGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6141, + "name": "toHaveStatusCodeGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "example", - "doc": "```ts\nimport type { GraphqlResponse } from \"@probitas-test/client-graphql\";\nimport { expectGraphqlResponse } from \"./graphql.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"graphql\",\n ok: true,\n status: 200,\n headers: mockHeaders,\n data: { user: { name: \"Alice\" } },\n error: null,\n extensions: undefined,\n duration: 0,\n} as unknown as GraphqlResponse;\n\nexpectGraphqlResponse(response).toBeOk();\n```" + "id": 6142, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 58, - "col": 2, - "byteIndex": 1596 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatus", - "jsDoc": { - "doc": "Asserts that the status equals the expected value.", - "tags": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6143, + "name": "toHaveStatusCodeGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6144, + "name": "toHaveStatusCodeGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6145, "name": "expected", - "doc": "- The expected status value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 64, - "col": 2, - "byteIndex": 1732 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusEqual", - "jsDoc": { - "doc": "Asserts that the status equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 6146, + "name": "toHaveStatusCodeLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6147, + "name": "toHaveStatusCodeLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6148, "name": "expected", - "doc": "- The expected status value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 70, - "col": 2, - "byteIndex": 1911 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusStrictEqual", - "jsDoc": { - "doc": "Asserts that the status strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 6149, + "name": "toHaveStatusCodeLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6150, + "name": "toHaveStatusCodeLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6151, "name": "expected", - "doc": "- The expected status value" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 76, - "col": 2, - "byteIndex": 2084 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6138, + "name": "toHaveStatusCodeNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6139, + "name": "toHaveStatusCodeNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6156, + "name": "toHaveStatusCodeOneOf", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6157, + "name": "toHaveStatusCodeOneOf", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is one of the specified values." + } + ] + }, + "parameters": [ + { + "id": 6158, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of acceptable values" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusSatisfying", - "jsDoc": { - "doc": "Asserts that the status satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 6132, + "name": "toHaveStatusCodeSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6133, + "name": "toHaveStatusCodeSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6134, "name": "matcher", - "doc": "- A function that receives the status and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 82, - "col": 2, - "byteIndex": 2301 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the code and performs assertions" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6135, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6136, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6137, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 6414, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusNaN", - "jsDoc": { - "doc": "Asserts that the status is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 87, - "col": 2, - "byteIndex": 2417 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusGreaterThan", - "jsDoc": { - "doc": "Asserts that the status is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 6129, + "name": "toHaveStatusCodeStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6130, + "name": "toHaveStatusCodeStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6131, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 93, - "col": 2, - "byteIndex": 2574 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected code value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the status is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 6159, + "name": "toHaveStatusMessage", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6160, + "name": "toHaveStatusMessage", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6161, "name": "expected", - "doc": "- The value to compare against" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 99, - "col": 2, - "byteIndex": 2767 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6174, + "name": "toHaveStatusMessageContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6175, + "name": "toHaveStatusMessageContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message contains the specified substring." + } + ] + }, + "parameters": [ + { + "id": 6176, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusLessThan", - "jsDoc": { - "doc": "Asserts that the status is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 6162, + "name": "toHaveStatusMessageEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6163, + "name": "toHaveStatusMessageEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6164, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 105, - "col": 2, - "byteIndex": 2952 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the status is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 6177, + "name": "toHaveStatusMessageMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6178, + "name": "toHaveStatusMessageMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message matches the specified regular expression." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6179, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 111, - "col": 2, - "byteIndex": 3139 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCloseTo", - "jsDoc": { - "doc": "Asserts that the status is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 118, - "col": 2, - "byteIndex": 3385 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + } + ] + }, + { + "id": 6182, + "name": "toHaveStatusMessageNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6183, + "name": "toHaveStatusMessageNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is null." + } + ] }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusOneOf", - "jsDoc": { - "doc": "Asserts that the status is one of the specified values.", - "tags": [ - { - "kind": "param", - "name": "values", - "doc": "- Array of acceptable values" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 124, - "col": 2, - "byteIndex": 3574 - }, - "params": [ - { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 6186, + "name": "toHaveStatusMessageNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6187, + "name": "toHaveStatusMessageNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is nullish (null or undefined)." } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeaders", - "jsDoc": { - "doc": "Asserts that the headers equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 6180, + "name": "toHaveStatusMessagePresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6181, + "name": "toHaveStatusMessagePresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6168, + "name": "toHaveStatusMessageSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6169, + "name": "toHaveStatusMessageSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 130, - "col": 2, - "byteIndex": 3739 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 6170, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the message and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6171, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6172, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6173, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersEqual", - "jsDoc": { - "doc": "Asserts that the headers equal the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 6165, + "name": "toHaveStatusMessageStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6166, + "name": "toHaveStatusMessageStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6167, "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 136, - "col": 2, - "byteIndex": 3920 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersStrictEqual", - "jsDoc": { - "doc": "Asserts that the headers strictly equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 6184, + "name": "toHaveStatusMessageUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6185, + "name": "toHaveStatusMessageUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6225, + "name": "toHaveTrailers", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6226, + "name": "toHaveTrailers", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers equal the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6227, "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 142, - "col": 2, - "byteIndex": 4095 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected trailers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersSatisfying", - "jsDoc": { - "doc": "Asserts that the headers satisfy the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 6228, + "name": "toHaveTrailersEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6229, + "name": "toHaveTrailersEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers equal the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the headers and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 148, - "col": 2, - "byteIndex": 4313 - }, - "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": "GraphqlHeaders", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlHeaders" - } - } + "id": 6230, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected trailers value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersMatching", - "jsDoc": { - "doc": "Asserts that the headers match the specified subset.", - "tags": [ + } + ] + }, + { + "id": 6240, + "name": "toHaveTrailersMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6241, + "name": "toHaveTrailersMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers match the specified subset." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6242, "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 156, - "col": 2, - "byteIndex": 4517 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersProperty", - "jsDoc": { - "doc": "Asserts that the headers have the specified property.", - "tags": [ + } + ] + }, + { + "id": 6243, + "name": "toHaveTrailersProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6244, + "name": "toHaveTrailersProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers have the specified property." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6245, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 6246, "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 165, - "col": 2, - "byteIndex": 4916 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" } - } - ] - } - }, - { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertyContaining", - "jsDoc": { - "doc": "Asserts that the headers property contains the expected value.", - "tags": [ + } + ] + }, + { + "id": 6247, + "name": "toHaveTrailersPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6248, + "name": "toHaveTrailersPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers property contains the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6249, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 6250, "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 172, - "col": 2, - "byteIndex": 5281 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" } - } - ] - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertyMatching", - "jsDoc": { - "doc": "Asserts that the headers property matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 6251, + "name": "toHaveTrailersPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6252, + "name": "toHaveTrailersPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers property matches the specified subset." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6253, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 6254, "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 182, - "col": 2, - "byteIndex": 5669 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" } - } - ] - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the headers property satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 6255, + "name": "toHaveTrailersPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6256, + "name": "toHaveTrailersPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers property satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6257, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 6258, "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 192, - "col": 2, - "byteIndex": 6159 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6259, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6260, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6261, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] } - ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6234, + "name": "toHaveTrailersSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6235, + "name": "toHaveTrailersSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers satisfy the provided matcher function." + } + ] }, - { - "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": "any", - "kind": "keyword", - "keyword": "any" - } + "parameters": [ + { + "id": 6236, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the trailers and performs assertions" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6237, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6238, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6239, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveError", - "jsDoc": { - "doc": "Asserts that the error equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 6231, + "name": "toHaveTrailersStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6232, + "name": "toHaveTrailersStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers strictly equal the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 6233, "name": "expected", - "doc": "- The expected error value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 202, - "col": 2, - "byteIndex": 6509 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected trailers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + } + ] + }, + { + "id": 9840, + "name": "ConnectRpcResponseFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveErrorEqual", - "jsDoc": { - "doc": "Asserts that the error equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected error value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 208, - "col": 2, - "byteIndex": 6685 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Failed ConnectRPC request (network error, connection refused, etc.).\n\nThe request did not reach gRPC processing." + } + ] + }, + "children": [ + { + "id": 9850, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveErrorStrictEqual", - "jsDoc": { - "doc": "Asserts that the error strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected error value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 214, - "col": 2, - "byteIndex": 6855 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "No data (request didn't reach server)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveErrorSatisfying", - "jsDoc": { - "doc": "Asserts that the error satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the error and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 221, - "col": 2, - "byteIndex": 7188 - }, - "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": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "toHaveErrorPresent", - "jsDoc": { - "doc": "Asserts that the error is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 226, - "col": 2, - "byteIndex": 7327 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.data", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9852, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveErrorNull", - "jsDoc": { - "doc": "Asserts that the error is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 231, - "col": 2, - "byteIndex": 7407 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." + } + ] }, - { - "name": "toHaveErrorUndefined", - "jsDoc": { - "doc": "Asserts that the error is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 236, - "col": 2, - "byteIndex": 7489 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveErrorNullish", - "jsDoc": { - "doc": "Asserts that the error is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 241, - "col": 2, - "byteIndex": 7594 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.duration" + } + }, + { + "id": 9844, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveExtensions", - "jsDoc": { - "doc": "Asserts that the extensions equal the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected extensions value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 247, - "col": 2, - "byteIndex": 7749 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- ConnectRpcError for gRPC errors\n- ConnectRpcNetworkError/AbortError/TimeoutError for failures" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveExtensionsEqual", - "jsDoc": { - "doc": "Asserts that the extensions equal the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected extensions value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 253, - "col": 2, - "byteIndex": 7939 - }, - "params": [ + "type": { + "type": "reference", + "target": 6445, + "name": "ConnectRpcFailureError", + "package": "@probitas-test/client-connectrpc" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.error", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9847, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Response headers (null for failures)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveExtensionsStrictEqual", - "jsDoc": { - "doc": "Asserts that the extensions strictly equal the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected extensions value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 259, - "col": 2, - "byteIndex": 8123 - }, - "params": [ + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9851, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`\"connectrpc\"`" + }, + { + "kind": "text", + "text": " for ConnectRPC responses. Use this in switch statements\nfor type-safe narrowing of union types." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveExtensionsSatisfying", - "jsDoc": { - "doc": "Asserts that the extensions satisfy the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the extensions and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 265, - "col": 2, - "byteIndex": 8350 - }, - "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": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "connectrpc" }, - { - "name": "toHaveExtensionsMatching", - "jsDoc": { - "doc": "Asserts that the extensions match the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 274, - "col": 2, - "byteIndex": 8686 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.kind" + } + }, + { + "id": 9843, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": statusCode === 0 (OK)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": gRPC error or request failure" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveExtensionsProperty", - "jsDoc": { - "doc": "Asserts that the extensions have the specified property.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 283, - "col": 2, - "byteIndex": 9091 - }, - "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" - } - } - ] - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.ok", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9842, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " }, { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or gRPC error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, connection refused)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveExtensionsPropertyContaining", - "jsDoc": { - "doc": "Asserts that the extensions property contains the expected value.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 290, - "col": 2, - "byteIndex": 9462 - }, - "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" - } - } - ] - } - }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.processed", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9849, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "No raw response (request didn't reach server)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveExtensionsPropertyMatching", - "jsDoc": { - "doc": "Asserts that the extensions property matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 300, - "col": 2, - "byteIndex": 9856 - }, - "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" - } - } - ] - } - }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.raw", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9845, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "kind": "text", + "text": "Status code (null for network failures)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveExtensionsPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the extensions property satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 310, - "col": 2, - "byteIndex": 10352 - }, - "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" - } - } - ] - } - }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9846, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "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": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] - } - } + "kind": "text", + "text": "Status message (null for network failures)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveExtensionsPresent", - "jsDoc": { - "doc": "Asserts that the extensions are present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 319, - "col": 2, - "byteIndex": 10672 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9848, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveExtensionsNull", - "jsDoc": { - "doc": "Asserts that the extensions are null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 324, - "col": 2, - "byteIndex": 10763 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response trailers (null for failures)." + } + ] }, + "type": { + "type": "literal", + "value": null + } + } + ], + "typeParameters": [ + { + "id": 9841, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/response.d.ts", + "qualifiedName": "ConnectRpcResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9841, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseFailure.T", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseBase", + "package": "@probitas-test/client-connectrpc" + } + ] + }, + { + "id": 6460, + "name": "ConnectRpcResponseFailureParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveExtensionsUndefined", - "jsDoc": { - "doc": "Asserts that the extensions are undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 329, - "col": 2, - "byteIndex": 10856 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Parameters for creating a failure ConnectRpcResponse." + } + ] + }, + "children": [ + { + "id": 6462, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6461, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 6445, + "name": "ConnectRpcFailureError", + "package": "@probitas-test/client-connectrpc" + } + } + ] + }, + { + "id": 9853, + "name": "ConnectRpcResponseSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveExtensionsNullish", - "jsDoc": { - "doc": "Asserts that the extensions are nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 334, - "col": 2, - "byteIndex": 10972 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Successful ConnectRPC response (statusCode === 0)." + } + ] + }, + "children": [ + { + "id": 9863, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveData", - "jsDoc": { - "doc": "Asserts that the data equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected data value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 340, - "col": 2, - "byteIndex": 11121 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Response data as plain JavaScript object (JSON representation)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataEqual", - "jsDoc": { - "doc": "Asserts that the data equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected data value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 346, - "col": 2, - "byteIndex": 11294 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "reference", + "target": 9854, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseSuccess.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataStrictEqual", - "jsDoc": { - "doc": "Asserts that the data strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected data value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 352, - "col": 2, - "byteIndex": 11461 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.data", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9865, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Response time in milliseconds." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataSatisfying", - "jsDoc": { - "doc": "Asserts that the data satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the data and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 359, - "col": 2, - "byteIndex": 11791 - }, - "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": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.duration" + } + }, + { + "id": 9857, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- ConnectRpcError for gRPC errors\n- ConnectRpcNetworkError/AbortError/TimeoutError for failures" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataMatching", - "jsDoc": { - "doc": "Asserts that the data matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 365, - "col": 2, - "byteIndex": 11971 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.error", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9860, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataProperty", - "jsDoc": { - "doc": "Asserts that the data has the specified property.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "value", - "doc": "- Optional expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 374, - "col": 2, - "byteIndex": 12347 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" }, - "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" - } - } - ] - } + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 9864, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " }, { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`\"connectrpc\"`" + }, + { + "kind": "text", + "text": " for ConnectRPC responses. Use this in switch statements\nfor type-safe narrowing of union types." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataPropertyContaining", - "jsDoc": { - "doc": "Asserts that the data property contains the specified value.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "expected", - "doc": "- The value to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 381, - "col": 2, - "byteIndex": 12702 - }, - "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" - } - } - ] - } + "type": { + "type": "literal", + "value": "connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.kind" + } + }, + { + "id": 9856, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": statusCode === 0 (OK)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": gRPC error or request failure" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataPropertyMatching", - "jsDoc": { - "doc": "Asserts that the data property matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 391, - "col": 2, - "byteIndex": 13084 - }, - "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" - } - } - ] - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.ok", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9855, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " }, { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDataPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the data property satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 401, - "col": 2, - "byteIndex": 13568 - }, - "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": "code", + "text": "`true`" }, { - "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": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] - } - } + "kind": "text", + "text": ": Server responded (success or gRPC error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, connection refused)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataPresent", - "jsDoc": { - "doc": "Asserts that the data is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 410, - "col": 2, - "byteIndex": 13875 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "toHaveDataNull", - "jsDoc": { - "doc": "Asserts that the data is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 415, - "col": 2, - "byteIndex": 13953 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.processed", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9862, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDataUndefined", - "jsDoc": { - "doc": "Asserts that the data is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 420, - "col": 2, - "byteIndex": 14033 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw protobuf Message object." + } + ] }, - { - "name": "toHaveDataNullish", - "jsDoc": { - "doc": "Asserts that the data is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 425, - "col": 2, - "byteIndex": 14136 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "unknown" }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 431, - "col": 2, - "byteIndex": 14287 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "ConnectRpcResponseBase.raw", + "package": "@probitas-test/client-connectrpc" + } + }, + { + "id": 9858, + "name": "statusCode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "gRPC status code (always 0 for success)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 437, - "col": 2, - "byteIndex": 14472 - }, - "params": [ + "type": { + "type": "literal", + "value": 0 + } + }, + { + "id": 9859, + "name": "statusMessage", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Status message (null for successful responses)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 443, - "col": 2, - "byteIndex": 14651 - }, - "params": [ + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9861, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Response trailers (sent at end of RPC)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 449, - "col": 2, - "byteIndex": 14874 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" }, - "typeParams": [] - }, + "name": "Headers", + "package": "typescript" + } + } + ], + "typeParameters": [ + { + "id": 9854, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-connectrpc", + "packagePath": "dist/response.d.ts", + "qualifiedName": "ConnectRpcResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9854, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseBase", + "package": "@probitas-test/client-connectrpc" + } + ] + }, + { + "id": 6447, + "name": "ConnectRpcResponseSuccessParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 454, - "col": 2, - "byteIndex": 14994 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Parameters for creating a successful ConnectRpcResponse." + } + ] + }, + "children": [ + { + "id": 6453, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 460, - "col": 2, - "byteIndex": 15155 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6451, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 6449, + "name": "response", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 6448, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcResponseSuccessParams.T", + "refersToTypeParameter": true + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 466, - "col": 2, - "byteIndex": 15352 - }, - "params": [ + ] + } + }, + { + "id": 6450, + "name": "schema", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/descriptors.d.ts", + "qualifiedName": "DescMessage" + }, + "name": "DescMessage", + "package": "@bufbuild/protobuf" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + ] + } + }, + { + "id": 6452, + "name": "trailers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + } + ], + "typeParameters": [ + { + "id": 6448, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 5552, + "name": "CookieConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 472, - "col": 2, - "byteIndex": 15541 - }, - "params": [ + "kind": "text", + "text": "Cookie handling configuration." + } + ] + }, + "children": [ + { + "id": 5553, + "name": "disabled", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Disable automatic cookie handling.\nWhen disabled, cookies are not stored or sent automatically." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 478, - "col": 2, - "byteIndex": 15732 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 5554, + "name": "initial", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Initial cookies to populate the cookie jar." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 485, - "col": 2, - "byteIndex": 15982 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "params": [ + "typeArguments": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "string" } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { GraphqlResponse } from \"@probitas-test/client-graphql\";\nimport { expectGraphqlResponse } from \"./graphql.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"graphql\",\n ok: false,\n status: 200,\n headers: mockHeaders,\n data: null,\n error: { message: \"Not found\" },\n extensions: undefined,\n duration: 0,\n} as unknown as GraphqlResponse;\n\nexpectGraphqlResponse(response).not.toBeOk();\nexpectGraphqlResponse(response).toHaveErrorPresent();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 34, - "col": 2, - "byteIndex": 962 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "Record", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "expectGraphqlResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/graphql.ts", - "line": 488, - "col": 0, - "byteIndex": 16052 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ + "id": 6426, + "name": "ErrorDetail", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "response", - "optional": false, - "tsType": { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlResponse" + "kind": "text", + "text": "Rich error detail from google.rpc.Status.\n\nConnectRPC errors can include structured details encoded in error responses.\nThese details follow the google.protobuf.Any format with a type URL and value." + } + ] + }, + "children": [ + { + "id": 6427, + "name": "typeUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "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\"" } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "returnType": { - "repr": "GraphqlResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlResponseExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + }, + { + "id": 6428, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Decoded error detail value.\nThe structure depends on the typeUrl." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] }, { - "name": "GraphqlErrorItem", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 17, - "col": 0, - "byteIndex": 375 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL error item as per GraphQL specification.", - "tags": [ + "id": 5993, + "name": "GraphqlClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "see", - "doc": "https://spec.graphql.org/October2021/#sec-Errors.Error-Result-Format" + "kind": "text", + "text": "GraphQL client interface." } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "message", - "jsDoc": { - "doc": "Error message" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 19, - "col": 2, - "byteIndex": 436 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "children": [ + { + "id": 5994, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "locations", - "jsDoc": { - "doc": "Location(s) in the GraphQL document where the error occurred" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 22, - "col": 2, - "byteIndex": 535 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "line", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 22, - "col": 33, - "byteIndex": 566 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "column", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 22, - "col": 47, - "byteIndex": 580 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 5984, + "name": "GraphqlClientConfig", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 6023, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6024, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the client and release resources" } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 6009, + "name": "execute", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6010, + "name": "execute", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a GraphQL document (query or mutation)" + } + ] + }, + "typeParameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "path", - "jsDoc": { - "doc": "Path to the field that caused the error" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 25, - "col": 2, - "byteIndex": 659 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - ] - } - } - } + "id": 6011, + "name": "TData", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "extensions", - "jsDoc": { - "doc": "Additional error metadata" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 28, - "col": 2, - "byteIndex": 749 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 6012, + "name": "TVariables", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 6013, + "name": "document", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6014, + "name": "variables", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6012, + "name": "TVariables", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 6015, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5970, + "name": "GraphqlOptions", + "package": "@probitas-test/client-graphql" + } } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GraphqlResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 166, - "col": 0, - "byteIndex": 4669 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL response union type.\n\nUse `processed` to distinguish between server responses and failures:\n- `processed === true`: Server responded (Success or Error)\n- `processed === false`: Request failed (Failure)\n\nUse `ok` to check for success:\n- `ok === true`: Success (no errors)\n- `ok === false`: Error or Failure" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "GraphqlResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9784, + "typeArguments": [ + { + "type": "reference", + "target": 6011, + "name": "TData", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" } ], - "typeName": "GraphqlResponseSuccess" + "name": "Promise", + "package": "typescript" } - }, + } + ] + }, + { + "id": 6002, + "name": "mutation", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "GraphqlResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 6003, + "name": "mutation", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Execute a GraphQL mutation" } - ], - "typeName": "GraphqlResponseError" - } - }, - { - "repr": "GraphqlResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "typeParameters": [ + { + "id": 6004, + "name": "TData", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 6005, + "name": "TVariables", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 6006, + "name": "mutation", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6007, + "name": "variables", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6005, + "name": "TVariables", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + }, + { + "id": 6008, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5970, + "name": "GraphqlOptions", + "package": "@probitas-test/client-graphql" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 9784, + "typeArguments": [ + { + "type": "reference", + "target": 6004, + "name": "TData", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" } ], - "typeName": "GraphqlResponseFailure" + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "GraphqlResponseError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 105, - "col": 0, - "byteIndex": 2838 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL response with execution errors.\n\nNote: GraphQL allows partial success where both data and errors are present.\nUse data() to access any partial data." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "GraphqlResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + { + "id": 5995, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5996, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a GraphQL query" + } + ] + }, + "typeParameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 5997, + "name": "TData", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - } - ], - "typeName": "GraphqlResponseBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 106, - "col": 2, - "byteIndex": 2920 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 107, - "col": 2, - "byteIndex": 2948 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 108, - "col": 2, - "byteIndex": 2970 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "GraphqlExecutionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlExecutionError" - } - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 111, - "col": 2, - "byteIndex": 3039 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "HTTP response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 114, - "col": 2, - "byteIndex": 3099 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] - }, - { - "name": "extensions", - "jsDoc": { - "doc": "Response extensions." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 117, - "col": 2, - "byteIndex": 3159 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + }, + { + "id": 5998, + "name": "TVariables", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] - }, - "typeParams": [] - }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw Web standard Response." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 120, - "col": 2, - "byteIndex": 3251 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - }, - "typeParams": [] - }, - { - "name": "data", - "jsDoc": { - "doc": "Response data (null if no data, may be partial data with errors)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 123, - "col": 2, - "byteIndex": 3364 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ], + "parameters": [ + { + "id": 5999, + "name": "query", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "GraphqlResponseFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 132, - "col": 0, - "byteIndex": 3630 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Failed GraphQL request (network error, HTTP error, etc.).\n\nThe request did not reach GraphQL processing." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "GraphqlResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 6000, + "name": "variables", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5998, + "name": "TVariables", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 6001, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5970, + "name": "GraphqlOptions", + "package": "@probitas-test/client-graphql" } } ], - "typeName": "GraphqlResponseBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 134, - "col": 2, - "byteIndex": 3716 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9784, + "typeArguments": [ + { + "type": "reference", + "target": 5997, + "name": "TData", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 135, - "col": 2, - "byteIndex": 3745 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 136, - "col": 2, - "byteIndex": 3767 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "GraphqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlFailureError" - } - }, - "typeParams": [] - }, - { - "name": "extensions", - "jsDoc": { - "doc": "Response extensions (always null for failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 139, - "col": 2, - "byteIndex": 3864 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code (null for network failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 142, - "col": 2, - "byteIndex": 3949 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "HTTP response headers (null for failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 145, - "col": 2, - "byteIndex": 4027 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "raw", - "jsDoc": { - "doc": "No raw response (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 148, - "col": 2, - "byteIndex": 4110 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "data", - "jsDoc": { - "doc": "No data (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 151, - "col": 2, - "byteIndex": 4181 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - } - ] - } - }, - { - "name": "GraphqlResponseSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 76, - "col": 0, - "byteIndex": 2038 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful GraphQL response (no errors)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "GraphqlResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 6016, + "name": "subscribe", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6017, + "name": "subscribe", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Subscribe to a GraphQL subscription via WebSocket" + } + ] + }, + "typeParameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 6018, + "name": "TData", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - } - ], - "typeName": "GraphqlResponseBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 78, - "col": 2, - "byteIndex": 2124 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 79, - "col": 2, - "byteIndex": 2152 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 80, - "col": 2, - "byteIndex": 2173 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 83, - "col": 2, - "byteIndex": 2225 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "HTTP response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 86, - "col": 2, - "byteIndex": 2285 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] - }, - { - "name": "extensions", - "jsDoc": { - "doc": "Response extensions." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 89, - "col": 2, - "byteIndex": 2345 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + }, + { + "id": 6019, + "name": "TVariables", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "any" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 6020, + "name": "document", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw Web standard Response." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 92, - "col": 2, - "byteIndex": 2437 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" - } - }, - "typeParams": [] - }, - { - "name": "data", - "jsDoc": { - "doc": "Response data (null if no data)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 95, - "col": 2, - "byteIndex": 2517 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 6021, + "name": "variables", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6019, + "name": "TVariables", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 6022, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5970, + "name": "GraphqlOptions", + "package": "@probitas-test/client-graphql" + } } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9784, + "typeArguments": [ + { + "type": "reference", + "target": 6018, + "name": "TData", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" + } + ], + "name": "AsyncIterable", + "package": "typescript" + } } - } - ] - } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] }, { - "name": "GraphqlOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 41, - "col": 0, - "byteIndex": 970 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual GraphQL requests." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5984, + "name": "GraphqlClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "kind": "text", + "text": "GraphQL client configuration." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "headers", - "jsDoc": { - "doc": "Additional request headers" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 43, - "col": 2, - "byteIndex": 1064 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 5988, + "name": "fetch", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "operationName", - "jsDoc": { - "doc": "Operation name (for documents with multiple operations)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 46, - "col": 2, - "byteIndex": 1164 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Custom fetch implementation (for testing/mocking)" + } + ] }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw GraphqlError when response contains errors or request fails.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 52, - "col": 2, - "byteIndex": 1363 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "Fetch" }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GraphqlConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 60, - "col": 0, - "byteIndex": 1512 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL connection configuration.\n\nExtends CommonConnectionConfig with GraphQL-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" - } + "name": "Fetch", + "package": "@probitas-test/client" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "protocol", - "jsDoc": { - "doc": "Protocol to use.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"http\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 65, - "col": 2, - "byteIndex": 1643 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" - } - }, - { - "repr": "https", - "kind": "literal", - "literal": { - "kind": "string", - "string": "https" - } - } - ] - }, - "typeParams": [] + }, + { + "id": 5986, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "path", - "jsDoc": { - "doc": "GraphQL endpoint path.", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"/graphql\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 71, - "col": 2, - "byteIndex": 1749 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GraphqlClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 77, - "col": 0, - "byteIndex": 1817 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL client configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "GraphQL endpoint URL.\n\nCan be a URL string or a connection configuration object.\n", - "tags": [ - { - "kind": "example", - "doc": "String URL\n```ts\nimport type { GraphqlClientConfig } from \"@probitas-test/client-graphql\";\nconst config: GraphqlClientConfig = { url: \"http://localhost:4000/graphql\" };\n```\n" - }, - { - "kind": "example", - "doc": "Connection config object\n```ts\nimport type { GraphqlClientConfig } from \"@probitas-test/client-graphql\";\nconst config: GraphqlClientConfig = {\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n};\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 97, - "col": 2, - "byteIndex": 2464 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "GraphqlConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlConnectionConfig" - } - } - ] - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default headers for all requests" + } + ] }, - { - "name": "headers", - "jsDoc": { - "doc": "Default headers for all requests" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 100, - "col": 2, - "byteIndex": 2557 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" + "name": "HeadersInit", + "package": "typescript" + } + }, + { + "id": 5992, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "wsEndpoint", - "jsDoc": { - "doc": "WebSocket endpoint URL (for subscriptions)" + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 103, - "col": 2, - "byteIndex": 2644 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "name": "fetch", - "jsDoc": { - "doc": "Custom fetch implementation (for testing/mocking)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 106, - "col": 2, - "byteIndex": 2736 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Fetch", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Fetch" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 5991, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "typeParams": [] + ] }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw GraphqlError when response contains errors or request fails.\nCan be overridden per-request via GraphqlOptions.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 113, - "col": 2, - "byteIndex": 2933 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GraphqlClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 119, - "col": 0, - "byteIndex": 3006 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL client interface." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a GraphQL query" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 125, - "col": 2, - "byteIndex": 3288 - }, - "params": [ + }, + { + "id": 5989, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "query", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Whether to throw GraphqlError when response contains errors or request fails.\nCan be overridden per-request via GraphqlOptions." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "variables", - "optional": true, - "tsType": { - "repr": "TVariables", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TVariables" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - } - }, + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 5990, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + }, + { + "id": 5985, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "GraphqlOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlOptions" - } - } + "kind": "text", + "text": "GraphQL endpoint URL.\n\nCan be a URL string or a connection configuration object." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "TData", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TData" - } - } - ], - "typeName": "GraphqlResponse" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ + "blockTags": [ { - "name": "TData", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "tag": "@example", + "name": "String URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { GraphqlClientConfig } from \"@probitas-test/client-graphql\";\nconst config: GraphqlClientConfig = { url: \"http://localhost:4000/graphql\" };\n```" + } + ] }, { - "name": "TVariables", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" + "tag": "@example", + "name": "Connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { GraphqlClientConfig } from \"@probitas-test/client-graphql\";\nconst config: GraphqlClientConfig = {\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n};\n```" } - } + ] } ] }, - { - "name": "mutation", - "jsDoc": { - "doc": "Execute a GraphQL mutation" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 133, - "col": 2, - "byteIndex": 3615 - }, - "params": [ - { - "kind": "identifier", - "name": "mutation", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "variables", - "optional": true, - "tsType": { - "repr": "TVariables", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TVariables" - } - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "GraphqlOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlOptions" - } - } + "type": "reference", + "target": 5977, + "name": "GraphqlConnectionConfig", + "package": "@probitas-test/client-graphql" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "TData", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TData" - } - } - ], - "typeName": "GraphqlResponse" - } - } - ], - "typeName": "Promise" + ] + } + }, + { + "id": 5987, + "name": "wsEndpoint", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "WebSocket endpoint URL (for subscriptions)" } - }, - "typeParams": [ + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 5977, + "name": "GraphqlConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "GraphQL connection configuration.\n\nExtends CommonConnectionConfig with GraphQL-specific options." + } + ] + }, + "children": [ + { + "id": 5980, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "name": "TData", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - }, + "kind": "text", + "text": "Hostname or IP address." + } + ], + "blockTags": [ { - "name": "TVariables", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" } - } + ] } ] }, - { - "name": "execute", - "jsDoc": { - "doc": "Execute a GraphQL document (query or mutation)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 141, - "col": 2, - "byteIndex": 3968 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" + } + }, + { + "id": 5983, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 5979, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "document", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "GraphQL endpoint path." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "variables", - "optional": true, - "tsType": { - "repr": "TVariables", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TVariables" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"/graphql\"\n```" } - } - }, + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5981, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 5978, + "name": "protocol", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "GraphqlOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlOptions" - } - } + "kind": "text", + "text": "Protocol to use." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "TData", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TData" - } - } - ], - "typeName": "GraphqlResponse" - } + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"http\"\n```" } - ], - "typeName": "Promise" + ] } - }, - "typeParams": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "TData", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "type": "literal", + "value": "http" }, { - "name": "TVariables", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "type": "literal", + "value": "https" + } + ] + } + }, + { + "id": 5982, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." } ] }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 5962, + "name": "GraphqlErrorItem", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "subscribe", - "jsDoc": { - "doc": "Subscribe to a GraphQL subscription via WebSocket" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 149, - "col": 2, - "byteIndex": 4323 - }, - "params": [ + "kind": "text", + "text": "GraphQL error item as per GraphQL specification." + } + ], + "blockTags": [ + { + "tag": "@see", + "content": [ { - "kind": "identifier", - "name": "document", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "https://spec.graphql.org/October2021/#sec-Errors.Error-Result-Format" + } + ] + } + ] + }, + "children": [ + { + "id": 5969, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional error metadata" + } + ] + }, + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "variables", - "optional": true, - "tsType": { - "repr": "TVariables", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TVariables" + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } - } + ], + "name": "Record", + "package": "typescript" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "GraphqlOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlOptions" - } - } + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + } + }, + { + "id": 5964, + "name": "locations", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Location(s) in the GraphQL document where the error occurred" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 5965, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 5967, + "name": "column", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "repr": "TData", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TData" + "id": 5966, + "name": "line", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } } - ], - "typeName": "GraphqlResponse" + ] } } - ], - "typeName": "AsyncIterable" - } - }, - "typeParams": [ - { - "name": "TData", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } }, { - "name": "TVariables", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 5963, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error message" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5968, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Path to the field that caused the error" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "union", + "types": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "intrinsic", + "name": "string" }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "intrinsic", + "name": "number" } - ], - "typeName": "Record" + ] } } + }, + { + "type": "literal", + "value": null } ] - }, + } + } + ] + }, + { + "id": 5970, + "name": "GraphqlOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "close", - "jsDoc": { - "doc": "Close the client and release resources" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 156, - "col": 2, - "byteIndex": 4556 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + "kind": "text", + "text": "Options for individual GraphQL requests." + } + ] + }, + "children": [ + { + "id": 5971, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional request headers" } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" }, - "typeParams": [] + "name": "HeadersInit", + "package": "typescript" } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "Client configuration" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/types.ts", - "line": 121, - "col": 2, - "byteIndex": 3095 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "GraphqlClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlClientConfig" + }, + { + "id": 5972, + "name": "operationName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation name (for documents with multiple operations)" } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5976, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "typeParams": [] + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "GraphqlExecutionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 15, - "col": 0, - "byteIndex": 403 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown for GraphQL execution errors.\n\nThis error is returned when the GraphQL server processes the request\nbut returns errors in the response (validation errors, resolver errors, etc.)." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "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" - } - } - } - } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } + }, + { + "id": 5975, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 22, - "col": 2, - "byteIndex": 649 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 16, - "col": 2, - "byteIndex": 462 - } - }, - { - "tsType": { - "repr": "graphql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "graphql" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 5973, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw GraphqlError when response contains errors or request fails." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 17, - "col": 2, - "byteIndex": 514 - } - }, - { - "jsDoc": { - "doc": "GraphQL errors from response" - }, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "GraphqlErrorItem", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlErrorItem" - } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" } - } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "errors", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 20, - "col": 2, - "byteIndex": 600 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 5974, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "GraphqlNetworkError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 38, - "col": 0, - "byteIndex": 1053 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown for network-level failures.\n\nThis error indicates that the request could not reach or be processed\nby the GraphQL server (connection refused, HTTP errors, etc.)." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 9786, + "name": "GraphqlResponseError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "kind": "text", + "text": "GraphQL response with execution errors.\n\nNote: GraphQL allows partial success where both data and errors are present.\nUse data() to access any partial data." + } + ] + }, + "children": [ + { + "id": 9795, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Response data (null if no data, may be partial data with errors)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9787, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseError.T", + "refersToTypeParameter": true }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 42, - "col": 2, - "byteIndex": 1208 - } + ] + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.data", + "package": "@probitas-test/client-graphql" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 39, - "col": 2, - "byteIndex": 1110 - } - }, - { - "tsType": { - "repr": "network", - "kind": "literal", - "literal": { - "kind": "string", - "string": "network" + }, + { + "id": 9797, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 40, - "col": 2, - "byteIndex": 1160 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 9810, + "name": "GraphqlResponseBase.duration", + "package": "@probitas-test/client-graphql" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "GraphqlFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/errors.ts", - "line": 66, - "col": 0, - "byteIndex": 1807 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the GraphQL server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "GraphqlNetworkError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlNetworkError" - } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" - } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + }, + { + "id": 9790, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- GraphqlExecutionError for GraphQL errors\n- GraphqlNetworkError/AbortError/TimeoutError for failures" } - } - ] + ] + }, + "type": { + "type": "reference", + "target": 6025, + "name": "GraphqlExecutionError", + "package": "@probitas-test/client-graphql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.error", + "package": "@probitas-test/client-graphql" + } }, - "typeParams": [] - } - }, - { - "name": "GraphqlResponseSuccessParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 174, - "col": 0, - "byteIndex": 4863 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a successful GraphqlResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 175, - "col": 2, - "byteIndex": 4916 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + { + "id": 9793, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 176, - "col": 2, - "byteIndex": 4940 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response extensions." + } + ] }, - { - "name": "extensions", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 177, - "col": 2, - "byteIndex": 4967 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 178, - "col": 2, - "byteIndex": 5022 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] }, - { - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 179, - "col": 2, - "byteIndex": 5051 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.extensions", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9792, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 180, - "col": 2, - "byteIndex": 5078 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response headers." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" }, - "typeParams": [] + "name": "Headers", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "GraphqlResponseErrorParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 186, - "col": 0, - "byteIndex": 5177 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating an error GraphqlResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 187, - "col": 2, - "byteIndex": 5228 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 9796, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " + }, + { + "kind": "code", + "text": "`\"graphql\"`" + }, + { + "kind": "text", + "text": " for GraphQL responses. Use this in switch statements\nfor type-safe narrowing of union types." + } + ] }, - { - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 188, - "col": 2, - "byteIndex": 5252 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "graphql" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 189, - "col": 2, - "byteIndex": 5279 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "GraphqlExecutionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlExecutionError" + "inheritedFrom": { + "type": "reference", + "target": 9809, + "name": "GraphqlResponseBase.kind", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9789, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": No errors, data available\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": GraphQL errors or request failure" } - }, - "typeParams": [] + ] }, - { - "name": "extensions", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 190, - "col": 2, - "byteIndex": 5320 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 191, - "col": 2, - "byteIndex": 5375 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.ok", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9788, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or GraphQL error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, HTTP error)" + } + ] }, - { - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 192, - "col": 2, - "byteIndex": 5404 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 193, - "col": 2, - "byteIndex": 5431 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.processed", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9794, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw Web standard Response." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" }, - "typeParams": [] + "name": "Response", + "package": "typescript" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.raw", + "package": "@probitas-test/client-graphql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" + }, + { + "id": 9791, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ] - } - }, - { - "name": "GraphqlResponseFailureParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 199, - "col": 0, - "byteIndex": 5531 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a failure GraphqlResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 200, - "col": 2, - "byteIndex": 5581 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 9798, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 201, - "col": 2, - "byteIndex": 5605 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "GraphqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlFailureError" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." } - }, - "typeParams": [] + ] }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 202, - "col": 2, - "byteIndex": 5644 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 9811, + "name": "GraphqlResponseBase.url", + "package": "@probitas-test/client-graphql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "typeParameters": [ + { + "id": 9787, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-graphql", + "packagePath": "dist/response.d.ts", + "qualifiedName": "GraphqlResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9787, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseError.T", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseBase", + "package": "@probitas-test/client-graphql" + } + ] }, { - "name": "GraphqlResponseSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 209, - "col": 0, - "byteIndex": 5740 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of GraphqlResponseSuccess.", - "tags": [ + "id": 6049, + "name": "GraphqlResponseErrorParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Parameters for creating an error GraphqlResponse." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "GraphqlResponseSuccessParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "GraphqlResponseSuccessParams" + "children": [ + { + "id": 6052, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 6050, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseErrorParams.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 6055, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6053, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 6025, + "name": "GraphqlExecutionError", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 6054, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } - } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 224, - "col": 2, - "byteIndex": 6188 - } + ] } - ], - "properties": [ + }, + { + "id": 6057, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + } + }, + { + "id": 6056, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6051, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "typeParameters": [ + { + "id": 6050, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ] + }, + { + "id": 5739, + "name": "GraphqlResponseExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "graphql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "graphql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 211, - "col": 2, - "byteIndex": 5826 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "kind": "text", + "text": "Fluent API for GraphQL response validation." + } + ] + }, + "children": [ + { + "id": 5740, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 212, - "col": 2, - "byteIndex": 5864 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { GraphqlResponse } from \"@probitas-test/client-graphql\";\nimport { expectGraphqlResponse } from \"./graphql.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"graphql\",\n ok: false,\n status: 200,\n headers: mockHeaders,\n data: null,\n error: { message: \"Not found\" },\n extensions: undefined,\n duration: 0,\n} as unknown as GraphqlResponse;\n\nexpectGraphqlResponse(response).not.toBeOk();\nexpectGraphqlResponse(response).toHaveErrorPresent();\n```" + } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 213, - "col": 2, - "byteIndex": 5902 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 214, - "col": 2, - "byteIndex": 5933 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ] + }, + "type": { + "type": "reference", + "target": 5739, + "name": "GraphqlResponseExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 5741, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5742, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the response is successful (no errors)." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "kind": "code", + "text": "```ts\nimport type { GraphqlResponse } from \"@probitas-test/client-graphql\";\nimport { expectGraphqlResponse } from \"./graphql.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"graphql\",\n ok: true,\n status: 200,\n headers: mockHeaders,\n data: { user: { name: \"Alice\" } },\n error: null,\n extensions: undefined,\n duration: 0,\n} as unknown as GraphqlResponse;\n\nexpectGraphqlResponse(response).toBeOk();\n```" } - ], - "typeName": "Record" + ] } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "extensions", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 215, - "col": 2, - "byteIndex": 5958 - } - }, - { - "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-graphql/0.7.0/response.ts", - "line": 216, - "col": 2, - "byteIndex": 6013 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 217, - "col": 2, - "byteIndex": 6042 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 218, - "col": 2, - "byteIndex": 6066 - } - }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 219, - "col": 2, - "byteIndex": 6093 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + } + ] + }, + { + "id": 5884, + "name": "toHaveData", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5885, + "name": "toHaveData", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data equals the expected value." } - }, + ] + }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 5886, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected data value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 221, - "col": 2, - "byteIndex": 6123 - } - }, - { - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 222, - "col": 2, - "byteIndex": 6150 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "GraphqlResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 5887, + "name": "toHaveDataEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5888, + "name": "toHaveDataEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 5889, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected data value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "GraphqlResponseSuccess" + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } - }, - { - "name": "GraphqlResponseErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 239, - "col": 0, - "byteIndex": 6547 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of GraphqlResponseError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "GraphqlResponseErrorParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ] + }, + { + "id": 5899, + "name": "toHaveDataMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5900, + "name": "toHaveDataMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 5901, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" } } - ], - "typeName": "GraphqlResponseErrorParams" + ] } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 253, - "col": 2, - "byteIndex": 7006 } - } - ], - "properties": [ - { - "tsType": { - "repr": "graphql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "graphql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 240, - "col": 2, - "byteIndex": 6627 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 5923, + "name": "toHaveDataNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5924, + "name": "toHaveDataNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 241, - "col": 2, - "byteIndex": 6665 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ] + }, + { + "id": 5927, + "name": "toHaveDataNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5928, + "name": "toHaveDataNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 242, - "col": 2, - "byteIndex": 6703 - } - }, - { - "tsType": { - "repr": "GraphqlExecutionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlExecutionError" + } + ] + }, + { + "id": 5921, + "name": "toHaveDataPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5922, + "name": "toHaveDataPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 243, - "col": 2, - "byteIndex": 6735 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 5902, + "name": "toHaveDataProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5903, + "name": "toHaveDataProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data has the specified property." + } + ] + }, + "parameters": [ + { + "id": 5904, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "kind": "text", + "text": "). Use array format for properties containing dots." } - ], - "typeName": "Record" + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "extensions", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 244, - "col": 2, - "byteIndex": 6776 - } - }, - { - "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-graphql/0.7.0/response.ts", - "line": 245, - "col": 2, - "byteIndex": 6831 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 246, - "col": 2, - "byteIndex": 6860 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 247, - "col": 2, - "byteIndex": 6884 - } - }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 248, - "col": 2, - "byteIndex": 6911 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 5905, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 250, - "col": 2, - "byteIndex": 6941 - } - }, - { - "tsType": { - "repr": "globalThis.Response", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "globalThis.Response" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 251, - "col": 2, - "byteIndex": 6968 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "GraphqlResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ] + }, + { + "id": 5906, + "name": "toHaveDataPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5907, + "name": "toHaveDataPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data property contains the specified value." } - } - ], - "typeName": "GraphqlResponseError" - } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } - }, - { - "name": "GraphqlResponseFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 269, - "col": 0, - "byteIndex": 7396 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of GraphqlResponseFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "GraphqlResponseFailureParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlResponseFailureParams" + ] + }, + "parameters": [ + { + "id": 5908, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 283, - "col": 2, - "byteIndex": 7814 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "graphql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "graphql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 271, - "col": 2, - "byteIndex": 7482 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 272, - "col": 2, - "byteIndex": 7520 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 273, - "col": 2, - "byteIndex": 7559 - } - }, - { - "tsType": { - "repr": "GraphqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 274, - "col": 2, - "byteIndex": 7591 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "extensions", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 275, - "col": 2, - "byteIndex": 7630 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 276, - "col": 2, - "byteIndex": 7660 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 277, - "col": 2, - "byteIndex": 7686 - } - }, - { - "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-graphql/0.7.0/response.ts", - "line": 278, - "col": 2, - "byteIndex": 7713 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "url", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 279, - "col": 2, - "byteIndex": 7742 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 280, - "col": 2, - "byteIndex": 7766 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 281, - "col": 2, - "byteIndex": 7790 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "GraphqlResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 5909, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "GraphqlResponseFailure" - } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } - }, - { - "name": "createGraphqlClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/client.ts", - "line": 580, - "col": 0, - "byteIndex": 17099 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new GraphQL client instance.\n\nThe client provides methods for executing GraphQL queries, mutations,\nand subscriptions with automatic error handling and response parsing.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- Client configuration including URL and default options" - }, - { - "kind": "return", - "doc": "A new GraphQL client instance\n" - }, - { - "kind": "example", - "doc": "Basic query\n```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({\n url: \"http://localhost:4000/graphql\",\n});\n\nconst response = await client.query(`\n query GetUser($id: ID!) {\n user(id: $id) { id name email }\n }\n`, { id: \"123\" });\n\nconsole.log(response.data);\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using connection config object\n```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n});\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Mutation with error handling\n```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({ url: \"http://localhost:4000/graphql\" });\n\nconst response = await client.mutation(`\n mutation CreateUser($input: CreateUserInput!) {\n createUser(input: $input) { id }\n }\n`, { input: { name: \"Alice\", email: \"alice@example.com\" } });\n\nif (response.ok) {\n console.log(\"Created user:\", (response.data as any).createUser.id);\n}\n\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nawait using client = createGraphqlClient({\n url: \"http://localhost:4000/graphql\",\n});\nconst response = await client.query(`{ __typename }`);\n// Client automatically closed when scope exits\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "GraphqlClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlClientConfig" + "type": { + "type": "intrinsic", + "name": "this" } } - } - ], - "returnType": { - "repr": "GraphqlClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlClient" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "ConnectRpcResponseExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 12, - "col": 0, - "byteIndex": 406 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent assertion interface for ConnectRpcResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the response is successful (code 0).\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { ConnectRpcResponse } from \"@probitas-test/client-connectrpc\";\nimport { expectConnectRpcResponse } from \"./connectrpc.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"connectrpc\",\n ok: true,\n statusCode: 0,\n statusMessage: undefined,\n headers: mockHeaders,\n trailers: mockHeaders,\n data: { result: \"success\" },\n duration: 0,\n} as unknown as ConnectRpcResponse;\n\nexpectConnectRpcResponse(response).toBeOk();\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 60, - "col": 2, - "byteIndex": 1789 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCode", - "jsDoc": { - "doc": "Asserts that the code equals the expected value.", - "tags": [ + ] + }, + { + "id": 5910, + "name": "toHaveDataPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5911, + "name": "toHaveDataPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data property matches the specified subset." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected code value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 66, - "col": 2, - "byteIndex": 1921 - }, - "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": "toHaveStatusCodeEqual", - "jsDoc": { - "doc": "Asserts that the code equals the expected value using deep equality.", - "tags": [ + "id": 5912, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected code value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 72, - "col": 2, - "byteIndex": 2100 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 5913, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeStrictEqual", - "jsDoc": { - "doc": "Asserts that the code strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 5914, + "name": "toHaveDataPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5915, + "name": "toHaveDataPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data property satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected code value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 78, - "col": 2, - "byteIndex": 2273 - }, - "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": "toHaveStatusCodeSatisfying", - "jsDoc": { - "doc": "Asserts that the code satisfies the provided matcher function.", - "tags": [ + "id": 5916, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, { - "kind": "param", + "id": 5917, "name": "matcher", - "doc": "- A function that receives the code and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 84, - "col": 2, - "byteIndex": 2490 - }, - "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": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5918, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5919, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5920, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" } } - } - ], - "typeParams": [] + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeNaN", - "jsDoc": { - "doc": "Asserts that the code is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 91, - "col": 2, - "byteIndex": 2631 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeGreaterThan", - "jsDoc": { - "doc": "Asserts that the code is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 5893, + "name": "toHaveDataSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5894, + "name": "toHaveDataSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 97, - "col": 2, - "byteIndex": 2790 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 5895, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the data and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5896, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5897, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5898, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the code is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 5890, + "name": "toHaveDataStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5891, + "name": "toHaveDataStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5892, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 103, - "col": 2, - "byteIndex": 2985 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected data value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeLessThan", - "jsDoc": { - "doc": "Asserts that the code is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 109, - "col": 2, - "byteIndex": 3172 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + } + ] + }, + { + "id": 5925, + "name": "toHaveDataUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5926, + "name": "toHaveDataUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the code is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 5929, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5930, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5931, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 115, - "col": 2, - "byteIndex": 3361 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeCloseTo", - "jsDoc": { - "doc": "Asserts that the code is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 5958, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5959, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5960, "name": "expected", - "doc": "- The expected value" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", + "id": 5961, "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 122, - "col": 2, - "byteIndex": 3609 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeOneOf", - "jsDoc": { - "doc": "Asserts that the code is one of the specified values.", - "tags": [ + } + ] + }, + { + "id": 5932, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5933, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "values", - "doc": "- Array of acceptable values" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 128, - "col": 2, - "byteIndex": 3800 - }, - "params": [ - { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 5934, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessage", - "jsDoc": { - "doc": "Asserts that the message equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 5946, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5947, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5948, "name": "expected", - "doc": "- The expected message value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 134, - "col": 2, - "byteIndex": 3970 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageEqual", - "jsDoc": { - "doc": "Asserts that the message equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 5949, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5950, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5951, "name": "expected", - "doc": "- The expected message value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 140, - "col": 2, - "byteIndex": 4158 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageStrictEqual", - "jsDoc": { - "doc": "Asserts that the message strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 5952, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5953, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5954, "name": "expected", - "doc": "- The expected message value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 146, - "col": 2, - "byteIndex": 4340 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageSatisfying", - "jsDoc": { - "doc": "Asserts that the message satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 5955, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5956, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the message and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 152, - "col": 2, - "byteIndex": 4566 - }, - "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": "string", - "kind": "keyword", - "keyword": "string" - } + "id": 5957, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageContaining", - "jsDoc": { - "doc": "Asserts that the message contains the specified substring.", - "tags": [ + } + ] + }, + { + "id": 5944, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5945, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5938, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5939, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 158, - "col": 2, - "byteIndex": 4765 - }, - "params": [ - { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 5940, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5941, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5942, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5943, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageMatching", - "jsDoc": { - "doc": "Asserts that the message matches the specified regular expression.", - "tags": [ + } + ] + }, + { + "id": 5935, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5936, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5937, "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 164, - "col": 2, - "byteIndex": 4968 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessagePresent", - "jsDoc": { - "doc": "Asserts that the message is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 169, - "col": 2, - "byteIndex": 5102 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageNull", - "jsDoc": { - "doc": "Asserts that the message is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 174, - "col": 2, - "byteIndex": 5192 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageUndefined", - "jsDoc": { - "doc": "Asserts that the message is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 179, - "col": 2, - "byteIndex": 5284 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageNullish", - "jsDoc": { - "doc": "Asserts that the message is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 184, - "col": 2, - "byteIndex": 5399 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeaders", - "jsDoc": { - "doc": "Asserts that the headers equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 5816, + "name": "toHaveError", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5817, + "name": "toHaveError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the error equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5818, "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 190, - "col": 2, - "byteIndex": 5556 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected error value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersEqual", - "jsDoc": { - "doc": "Asserts that the headers equal the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 5819, + "name": "toHaveErrorEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5820, + "name": "toHaveErrorEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the error equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5821, "name": "expected", - "doc": "- The expected headers value" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected error value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 196, - "col": 2, - "byteIndex": 5737 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5833, + "name": "toHaveErrorNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5834, + "name": "toHaveErrorNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the error is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5837, + "name": "toHaveErrorNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5838, + "name": "toHaveErrorNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the error is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5831, + "name": "toHaveErrorPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5832, + "name": "toHaveErrorPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the error is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5825, + "name": "toHaveErrorSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5826, + "name": "toHaveErrorSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the error satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5827, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the error and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5828, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5829, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5830, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersStrictEqual", - "jsDoc": { - "doc": "Asserts that the headers strictly equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 5822, + "name": "toHaveErrorStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5823, + "name": "toHaveErrorStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the error strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5824, "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 202, - "col": 2, - "byteIndex": 5912 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected error value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersSatisfying", - "jsDoc": { - "doc": "Asserts that the headers satisfy the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 5835, + "name": "toHaveErrorUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5836, + "name": "toHaveErrorUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the error is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5839, + "name": "toHaveExtensions", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5840, + "name": "toHaveExtensions", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions equal the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the headers and performs assertions" + "id": 5841, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected extensions value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 208, - "col": 2, - "byteIndex": 6130 - }, - "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": "ConnectRpcHeaders", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcHeaders" - } - } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5842, + "name": "toHaveExtensionsEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5843, + "name": "toHaveExtensionsEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions equal the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5844, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected extensions value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersMatching", - "jsDoc": { - "doc": "Asserts that the headers match the specified subset.", - "tags": [ + } + ] + }, + { + "id": 5854, + "name": "toHaveExtensionsMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5855, + "name": "toHaveExtensionsMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions match the specified subset." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5856, "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 216, - "col": 2, - "byteIndex": 6337 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersProperty", - "jsDoc": { - "doc": "Asserts that the headers have the specified property.", - "tags": [ + } + ] + }, + { + "id": 5878, + "name": "toHaveExtensionsNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5879, + "name": "toHaveExtensionsNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions are null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5882, + "name": "toHaveExtensionsNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5883, + "name": "toHaveExtensionsNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions are nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5876, + "name": "toHaveExtensionsPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5877, + "name": "toHaveExtensionsPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions are present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5857, + "name": "toHaveExtensionsProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5858, + "name": "toHaveExtensionsProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions have the specified property." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5859, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 5860, "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 225, - "col": 2, - "byteIndex": 6736 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" } - } - ] - } - }, - { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertyContaining", - "jsDoc": { - "doc": "Asserts that the headers property contains the expected value.", - "tags": [ + } + ] + }, + { + "id": 5861, + "name": "toHaveExtensionsPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5862, + "name": "toHaveExtensionsPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions property contains the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5863, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 5864, "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 232, - "col": 2, - "byteIndex": 7101 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" } - } - ] - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertyMatching", - "jsDoc": { - "doc": "Asserts that the headers property matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 5865, + "name": "toHaveExtensionsPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5866, + "name": "toHaveExtensionsPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions property matches the specified subset." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5867, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 5868, "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 242, - "col": 2, - "byteIndex": 7489 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" } - } - ] - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the headers property satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 5869, + "name": "toHaveExtensionsPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5870, + "name": "toHaveExtensionsPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions property satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5871, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 5872, "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 252, - "col": 2, - "byteIndex": 7979 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5873, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5874, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5875, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] } - ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5848, + "name": "toHaveExtensionsSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5849, + "name": "toHaveExtensionsSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions satisfy the provided matcher function." + } + ] }, - { - "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": "any", - "kind": "keyword", - "keyword": "any" - } + "parameters": [ + { + "id": 5850, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the extensions and performs assertions" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5851, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5852, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5853, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailers", - "jsDoc": { - "doc": "Asserts that the trailers equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 5845, + "name": "toHaveExtensionsStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5846, + "name": "toHaveExtensionsStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions strictly equal the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5847, "name": "expected", - "doc": "- The expected trailers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 262, - "col": 2, - "byteIndex": 8334 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected extensions value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersEqual", - "jsDoc": { - "doc": "Asserts that the trailers equal the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected trailers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 268, - "col": 2, - "byteIndex": 8518 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + } + ] + }, + { + "id": 5880, + "name": "toHaveExtensionsUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5881, + "name": "toHaveExtensionsUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the extensions are undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersStrictEqual", - "jsDoc": { - "doc": "Asserts that the trailers strictly equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 5779, + "name": "toHaveHeaders", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5780, + "name": "toHaveHeaders", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers equal the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5781, "name": "expected", - "doc": "- The expected trailers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 274, - "col": 2, - "byteIndex": 8696 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersSatisfying", - "jsDoc": { - "doc": "Asserts that the trailers satisfy the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 5782, + "name": "toHaveHeadersEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5783, + "name": "toHaveHeadersEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers equal the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the trailers and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 280, - "col": 2, - "byteIndex": 8917 - }, - "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": "ConnectRpcTrailers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcTrailers" - } - } + "id": 5784, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersMatching", - "jsDoc": { - "doc": "Asserts that the trailers match the specified subset.", - "tags": [ + } + ] + }, + { + "id": 5794, + "name": "toHaveHeadersMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5795, + "name": "toHaveHeadersMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers match the specified subset." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5796, "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 288, - "col": 2, - "byteIndex": 9127 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersProperty", - "jsDoc": { - "doc": "Asserts that the trailers have the specified property.", - "tags": [ + } + ] + }, + { + "id": 5797, + "name": "toHaveHeadersProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5798, + "name": "toHaveHeadersProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers have the specified property." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5799, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 5800, "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 297, - "col": 2, - "byteIndex": 9528 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" } - } - ] - } - }, - { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersPropertyContaining", - "jsDoc": { - "doc": "Asserts that the trailers property contains the expected value.", - "tags": [ + } + ] + }, + { + "id": 5801, + "name": "toHaveHeadersPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5802, + "name": "toHaveHeadersPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers property contains the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5803, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 5804, "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 304, - "col": 2, - "byteIndex": 9895 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" } - } - ] - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersPropertyMatching", - "jsDoc": { - "doc": "Asserts that the trailers property matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 5805, + "name": "toHaveHeadersPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5806, + "name": "toHaveHeadersPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers property matches the specified subset." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5807, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 5808, "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 314, - "col": 2, - "byteIndex": 10285 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" } - } - ] - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the trailers property satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 5809, + "name": "toHaveHeadersPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5810, + "name": "toHaveHeadersPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers property satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5811, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 5812, "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 324, - "col": 2, - "byteIndex": 10777 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" } - } - ] - } - }, - { - "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": "any", - "kind": "keyword", - "keyword": "any" + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5813, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5814, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5815, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } - } - ], - "typeParams": [] + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveData", - "jsDoc": { - "doc": "Asserts that the data equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected data value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 334, - "col": 2, - "byteIndex": 11126 - }, - "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": "toHaveDataEqual", - "jsDoc": { - "doc": "Asserts that the data equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected data value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 340, - "col": 2, - "byteIndex": 11299 - }, - "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": "toHaveDataStrictEqual", - "jsDoc": { - "doc": "Asserts that the data strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected data value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 346, - "col": 2, - "byteIndex": 11466 - }, - "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": "toHaveDataSatisfying", - "jsDoc": { - "doc": "Asserts that the data satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 5788, + "name": "toHaveHeadersSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5789, + "name": "toHaveHeadersSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers satisfy the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5790, "name": "matcher", - "doc": "- A function that receives the data and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 352, - "col": 2, - "byteIndex": 11677 - }, - "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": "", - "kind": "union", - "union": [ + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the headers and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5791, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5792, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 5793, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" }, { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "literal", + "value": null } - ], - "typeName": "Record" + ] } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] + ], + "type": { + "type": "intrinsic", + "name": "void" + } } - } - ], - "typeParams": [] + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDataPresent", - "jsDoc": { - "doc": "Asserts that the data is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 360, - "col": 2, - "byteIndex": 11967 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDataNull", - "jsDoc": { - "doc": "Asserts that the data is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 365, - "col": 2, - "byteIndex": 12045 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDataUndefined", - "jsDoc": { - "doc": "Asserts that the data is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 370, - "col": 2, - "byteIndex": 12125 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDataNullish", - "jsDoc": { - "doc": "Asserts that the data is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 375, - "col": 2, - "byteIndex": 12228 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDataMatching", - "jsDoc": { - "doc": "Asserts that the data matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 5785, + "name": "toHaveHeadersStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5786, + "name": "toHaveHeadersStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers strictly equal the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" + "id": 5787, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 381, - "col": 2, - "byteIndex": 12376 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5743, + "name": "toHaveStatus", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5744, + "name": "toHaveStatus", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5745, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected status value" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDataProperty", - "jsDoc": { - "doc": "Asserts that the data has the specified property.", - "tags": [ + } + ] + }, + { + "id": 5772, + "name": "toHaveStatusCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5773, + "name": "toHaveStatusCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "id": 5774, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", - "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 390, - "col": 2, - "byteIndex": 12768 - }, - "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" + "id": 5775, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5746, + "name": "toHaveStatusEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5747, + "name": "toHaveStatusEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status equals the expected value using deep equality." + } + ] }, - { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "parameters": [ + { + "id": 5748, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected status value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDataPropertyContaining", - "jsDoc": { - "doc": "Asserts that the data property contains the expected value.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, + } + ] + }, + { + "id": 5760, + "name": "toHaveStatusGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5761, + "name": "toHaveStatusGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 5762, "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 397, - "col": 2, - "byteIndex": 13127 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5763, + "name": "toHaveStatusGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5764, + "name": "toHaveStatusGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is greater than or equal to the expected value." + } + ] }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "parameters": [ + { + "id": 5765, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDataPropertyMatching", - "jsDoc": { - "doc": "Asserts that the data property matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 5766, + "name": "toHaveStatusLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5767, + "name": "toHaveStatusLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, + "id": 5768, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5769, + "name": "toHaveStatusLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5770, + "name": "toHaveStatusLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" + "id": 5771, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 407, - "col": 2, - "byteIndex": 13509 - }, - "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" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5758, + "name": "toHaveStatusNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5759, + "name": "toHaveStatusNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5776, + "name": "toHaveStatusOneOf", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5777, + "name": "toHaveStatusOneOf", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is one of the specified values." + } + ] + }, + "parameters": [ + { + "id": 5778, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of acceptable values" } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } - ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5752, + "name": "toHaveStatusSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5753, + "name": "toHaveStatusSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status satisfies the provided matcher function." + } + ] }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" + "parameters": [ + { + "id": 5754, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the status and performs assertions" } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5755, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5756, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" + "id": 5757, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } ], - "typeName": "Record" + "type": { + "type": "intrinsic", + "name": "void" + } } - } + ] } - ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDataPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the data property satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 417, - "col": 2, - "byteIndex": 13993 - }, - "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" - } - } - ] - } + } + ] + }, + { + "id": 5749, + "name": "toHaveStatusStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5750, + "name": "toHaveStatusStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status strictly equals the expected value." + } + ] }, - { - "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": "any", - "kind": "keyword", - "keyword": "any" - } + "parameters": [ + { + "id": 5751, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected status value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + } + ] + }, + { + "id": 9799, + "name": "GraphqlResponseFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 427, - "col": 2, - "byteIndex": 14346 - }, - "params": [ + "kind": "text", + "text": "Failed GraphQL request (network error, HTTP error, etc.).\n\nThe request did not reach GraphQL processing." + } + ] + }, + "children": [ + { + "id": 9808, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "No data (request didn't reach server)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 433, - "col": 2, - "byteIndex": 14531 - }, - "params": [ + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.data", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9810, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Response time in milliseconds." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 439, - "col": 2, - "byteIndex": 14710 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.duration" + } + }, + { + "id": 9803, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- GraphqlExecutionError for GraphQL errors\n- GraphqlNetworkError/AbortError/TimeoutError for failures" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 445, - "col": 2, - "byteIndex": 14933 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 6040, + "name": "GraphqlFailureError", + "package": "@probitas-test/client-graphql" }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 450, - "col": 2, - "byteIndex": 15053 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.error", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9804, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 456, - "col": 2, - "byteIndex": 15214 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Response extensions (always null for failures)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 462, - "col": 2, - "byteIndex": 15411 - }, - "params": [ + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.extensions", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9806, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "HTTP response headers (null for failures)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 468, - "col": 2, - "byteIndex": 15600 - }, - "params": [ + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9809, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`\"graphql\"`" + }, + { + "kind": "text", + "text": " for GraphQL responses. Use this in switch statements\nfor type-safe narrowing of union types." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 474, - "col": 2, - "byteIndex": 15791 - }, - "params": [ + "type": { + "type": "literal", + "value": "graphql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.kind" + } + }, + { + "id": 9802, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": No errors, data available\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": GraphQL errors or request failure" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 481, - "col": 2, - "byteIndex": 16041 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.ok", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9801, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server responded (success or GraphQL error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, HTTP error)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { ConnectRpcResponse } from \"@probitas-test/client-connectrpc\";\nimport { expectConnectRpcResponse } from \"./connectrpc.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"connectrpc\",\n ok: false,\n statusCode: 2,\n statusMessage: \"Not Found\",\n headers: mockHeaders,\n trailers: mockHeaders,\n data: null,\n duration: 0,\n} as unknown as ConnectRpcResponse;\n\nexpectConnectRpcResponse(response).not.toBeOk();\nexpectConnectRpcResponse(response).not.toHaveStatusCode(0);\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 36, - "col": 2, - "byteIndex": 1128 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.processed", + "package": "@probitas-test/client-graphql" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "expectConnectRpcResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/connectrpc.ts", - "line": 484, - "col": 0, - "byteIndex": 16111 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "response", - "optional": false, - "tsType": { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" + }, + { + "id": 9807, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No raw response (request didn't reach server)." } - } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.raw", + "package": "@probitas-test/client-graphql" } - ], - "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.7.1/response.ts", - "line": 232, - "col": 0, - "byteIndex": 6908 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC response union type.\n\nUse `processed` to distinguish between server responses and failures:\n- `processed === true`: Server responded (Success or Error)\n- `processed === false`: Request failed (Failure)\n\nUse `ok` to check for success:\n- `ok === true`: Success (statusCode === 0)\n- `ok === false`: Error or Failure" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ConnectRpcResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseSuccess" + }, + { + "id": 9805, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code (null for network failures)." } - }, - { - "repr": "ConnectRpcResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseError" + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9811, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." } - }, + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.url" + } + } + ], + "typeParameters": [ + { + "id": 9800, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-graphql", + "packagePath": "dist/response.d.ts", + "qualifiedName": "GraphqlResponseBase" + }, + "typeArguments": [ { - "repr": "ConnectRpcResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseFailure" - } - } - ] - }, - "typeParams": [ + "type": "reference", + "target": 9800, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseFailure.T", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseBase", + "package": "@probitas-test/client-graphql" + } + ] + }, + { + "id": 6058, + "name": "GraphqlResponseFailureParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "Parameters for creating a failure GraphqlResponse." } ] - } - }, - { - "name": "ConnectRpcResponseError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 164, - "col": 0, - "byteIndex": 4941 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC response with gRPC error (statusCode !== 0).\n\nThe server processed the request but returned an error status." }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "children": [ + { + "id": 6061, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6060, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 6040, + "name": "GraphqlFailureError", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 6059, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 9812, + "name": "GraphqlResponseSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "ConnectRpcResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseBase" - } + "kind": "text", + "text": "Successful GraphQL response (no errors)." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 166, - "col": 2, - "byteIndex": 5031 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 9821, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response data (null if no data)." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 167, - "col": 2, - "byteIndex": 5059 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9813, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseSuccess.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 168, - "col": 2, - "byteIndex": 5081 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.data", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9823, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "statusCode", - "jsDoc": { - "doc": "gRPC status code (1-16)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 171, - "col": 2, - "byteIndex": 5151 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.duration" + } + }, + { + "id": 9816, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error information (null if successful).\n\nContains:\n- GraphqlExecutionError for GraphQL errors\n- GraphqlNetworkError/AbortError/TimeoutError for failures" } - }, - "typeParams": [] + ] }, - { - "name": "statusMessage", - "jsDoc": { - "doc": "Status message describing the error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 174, - "col": 2, - "byteIndex": 5243 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 177, - "col": 2, - "byteIndex": 5305 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.error", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9819, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response extensions." } - }, - "typeParams": [] + ] }, - { - "name": "trailers", - "jsDoc": { - "doc": "Response trailers (sent at end of RPC)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 180, - "col": 2, - "byteIndex": 5384 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null } - }, - "typeParams": [] + ] }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw ConnectError." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 183, - "col": 2, - "byteIndex": 5442 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.extensions", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9818, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response headers." } - }, - "typeParams": [] + ] }, - { - "name": "data", - "jsDoc": { - "doc": "No data for error responses." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 186, - "col": 2, - "byteIndex": 5511 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" }, - "typeParams": [] + "name": "Headers", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "ConnectRpcResponseFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 195, - "col": 0, - "byteIndex": 5781 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Failed ConnectRPC request (network error, connection refused, etc.).\n\nThe request did not reach gRPC processing." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ConnectRpcResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseBase" - } + }, + { + "id": 9822, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nAlways " + }, + { + "kind": "code", + "text": "`\"graphql\"`" + }, + { + "kind": "text", + "text": " for GraphQL responses. Use this in switch statements\nfor type-safe narrowing of union types." + } + ] + }, + "type": { + "type": "literal", + "value": "graphql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 197, - "col": 2, - "byteIndex": 5873 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 9815, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was successful.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": No errors, data available\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": GraphQL errors or request failure" } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 198, - "col": 2, - "byteIndex": 5902 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.ok", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9814, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the request was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server responded (success or GraphQL error)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before processing (network error, HTTP error)" } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 199, - "col": 2, - "byteIndex": 5924 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcFailureError" + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.processed", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9820, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw Web standard Response." } - }, - "typeParams": [] + ] }, - { - "name": "statusCode", - "jsDoc": { - "doc": "Status code (null for network failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 202, - "col": 2, - "byteIndex": 6017 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "name": "Response", + "package": "typescript" }, - { - "name": "statusMessage", - "jsDoc": { - "doc": "Status message (null for network failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 205, - "col": 2, - "byteIndex": 6100 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.raw", + "package": "@probitas-test/client-graphql" + } + }, + { + "id": 9817, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers (null for failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 208, - "col": 2, - "byteIndex": 6180 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code." + } + ] }, - { - "name": "trailers", - "jsDoc": { - "doc": "Response trailers (null for failures)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 211, - "col": 2, - "byteIndex": 6255 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 9824, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "raw", - "jsDoc": { - "doc": "No raw response (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 214, - "col": 2, - "byteIndex": 6339 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." + } + ] }, - { - "name": "data", - "jsDoc": { - "doc": "No data (request didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 217, - "col": 2, - "byteIndex": 6410 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "GraphqlResponseBase.url" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ + } + ], + "typeParameters": [ + { + "id": 9813, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-graphql", + "packagePath": "dist/response.d.ts", + "qualifiedName": "GraphqlResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9813, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseBase", + "package": "@probitas-test/client-graphql" + } + ] + }, + { + "id": 6041, + "name": "GraphqlResponseSuccessParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "Parameters for creating a successful GraphqlResponse." } ] - } + }, + "children": [ + { + "id": 6044, + "name": "data", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 6042, + "name": "T", + "package": "@probitas-test/client-graphql", + "qualifiedName": "GraphqlResponseSuccessParams.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 6046, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6045, + "name": "extensions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 6048, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + } + }, + { + "id": 6047, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6043, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "typeParameters": [ + { + "id": 6042, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ] }, { - "name": "ConnectRpcResponseSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 133, - "col": 0, - "byteIndex": 4053 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful ConnectRPC response (statusCode === 0)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 6790, + "name": "GrpcClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "ConnectRpcResponseBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseBase" - } + "kind": "text", + "text": "Configuration for creating a gRPC client.\n\nThis is a subset of ConnectRpcClientConfig with protocol fixed to \"grpc\"." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 135, - "col": 2, - "byteIndex": 4145 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 6792, + "name": "httpVersion", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP version to use." } - }, - "typeParams": [] + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"2\"\n```" + } + ] + } + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 136, - "col": 2, - "byteIndex": 4173 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "reference", + "target": 6342, + "name": "HttpVersion", + "package": "@probitas-test/client-connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": 6358, + "name": "Omit.httpVersion", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcClientConfig.httpVersion" + } + }, + { + "id": 6794, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default metadata to send with every request." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 137, - "col": 2, - "byteIndex": 4194 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "name": "HeadersInit", + "package": "typescript" }, - { - "name": "statusCode", - "jsDoc": { - "doc": "gRPC status code (always 0 for success)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 140, - "col": 2, - "byteIndex": 4269 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 + "inheritedFrom": { + "type": "reference", + "target": 6360, + "name": "Omit.metadata", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcClientConfig.metadata" + } + }, + { + "id": 6800, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "statusMessage", - "jsDoc": { - "doc": "Status message (null for successful responses)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 143, - "col": 2, - "byteIndex": 4353 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 146, - "col": 2, - "byteIndex": 4413 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "inheritedFrom": { + "type": "reference", + "target": 5542, + "name": "Omit.retry", + "package": "@probitas-test/client", + "qualifiedName": "CommonOptions.retry" + } + }, + { + "id": 6795, + "name": "schema", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Schema resolution configuration.\n- \"reflection\": Use Server Reflection to discover services dynamically (default)\n- string: Path to FileDescriptorSet binary file (from " + }, + { + "kind": "code", + "text": "`buf build --output set.binpb`" + }, + { + "kind": "text", + "text": ")\n- Uint8Array: FileDescriptorSet binary data\n- FileDescriptorSet: Pre-parsed FileDescriptorSet message object" } - }, - "typeParams": [] + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"reflection\"\n```" + } + ] + } + ] }, - { - "name": "trailers", - "jsDoc": { - "doc": "Response trailers (sent at end of RPC)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 149, - "col": 2, - "byteIndex": 4492 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/wkt/google/protobuf/descriptor_pb.d.ts", + "qualifiedName": "FileDescriptorSet" + }, + "name": "FileDescriptorSet", + "package": "@bufbuild/protobuf" } - }, - "typeParams": [] + ] }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw protobuf Message object." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 152, - "col": 2, - "byteIndex": 4561 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 6361, + "name": "Omit.schema", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcClientConfig.schema" + } + }, + { + "id": 6799, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] }, - { - "name": "data", - "jsDoc": { - "doc": "Response data as plain JavaScript object (JSON representation)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 155, - "col": 2, - "byteIndex": 4660 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 5541, + "name": "Omit.signal", + "package": "@probitas-test/client", + "qualifiedName": "CommonOptions.signal" + } + }, + { + "id": 6797, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nCan be overridden per-request via ConnectRpcOptions.throwOnError." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 6363, + "name": "Omit.throwOnError", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcClientConfig.throwOnError" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 6798, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 5540, + "name": "Omit.timeout", + "package": "@probitas-test/client", + "qualifiedName": "CommonOptions.timeout" } - ] - } - }, - { - "name": "FileDescriptorSet", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 31, - "col": 0, - "byteIndex": 713 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "FileDescriptorSet message type from @bufbuild/protobuf.\nThis is the decoded protobuf message containing file descriptors." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "MessageShape", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "FileDescriptorSetSchema", - "kind": "typeQuery", - "typeQuery": "FileDescriptorSetSchema" + }, + { + "id": 6793, + "name": "tls", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "TLS configuration. If not provided, uses insecure credentials." } - ], - "typeName": "MessageShape" + ] + }, + "type": { + "type": "reference", + "target": 6343, + "name": "TlsConfig", + "package": "@probitas-test/client-connectrpc" + }, + "inheritedFrom": { + "type": "reference", + "target": 6359, + "name": "Omit.tls", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcClientConfig.tls" } }, - "typeParams": [] - } - }, - { - "name": "ConnectProtocol", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 36, - "col": 0, - "byteIndex": 845 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Protocol to use for ConnectRPC transport." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "connect", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connect" + { + "id": 6791, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server URL for ConnectRPC connections.\n\nCan be a URL string or a connection configuration object." } - }, - { - "repr": "grpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "grpc" + ], + "blockTags": [ + { + "tag": "@example", + "name": "String URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = { url: \"http://localhost:50051\" };\n```" + } + ] + }, + { + "tag": "@example", + "name": "Connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = {\n url: { host: \"grpc.example.com\", port: 443, protocol: \"https\" },\n};\n```" + } + ] } - }, - { - "repr": "grpc-web", - "kind": "literal", - "literal": { - "kind": "string", - "string": "grpc-web" + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 6348, + "name": "ConnectRpcConnectionConfig", + "package": "@probitas-test/client-connectrpc" } - } - ] + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 6356, + "name": "Omit.url", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcClientConfig.url" + } }, - "typeParams": [] - } - }, - { - "name": "HttpVersion", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 41, - "col": 0, - "byteIndex": 948 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP version for transport." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "1.1", - "kind": "literal", - "literal": { - "kind": "string", - "string": "1.1" + { + "id": 6796, + "name": "useBinaryFormat", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to use binary format for messages." } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\ntrue\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 6362, + "name": "Omit.useBinaryFormat", + "package": "@probitas-test/client-connectrpc", + "qualifiedName": "ConnectRpcClientConfig.useBinaryFormat" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": 6355, + "name": "ConnectRpcClientConfig", + "package": "@probitas-test/client-connectrpc" }, { - "repr": "2", - "kind": "literal", - "literal": { - "kind": "string", - "string": "2" - } + "type": "literal", + "value": "protocol" } - ] - }, - "typeParams": [] - } + ], + "name": "Omit", + "package": "typescript" + } + ] }, { - "name": "TlsConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 46, - "col": 0, - "byteIndex": 1045 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "TLS configuration for ConnectRPC connections." + "id": 6566, + "name": "GrpcResponseExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fluent expectation interface for gRPC responses." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "rootCerts", - "jsDoc": { - "doc": "Root CA certificate (PEM format)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 48, - "col": 2, - "byteIndex": 1119 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - "typeParams": [] + "children": [ + { + "id": 6567, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "clientCert", - "jsDoc": { - "doc": "Client certificate (PEM format)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 50, - "col": 2, - "byteIndex": 1196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } - }, - "typeParams": [] - }, - { - "name": "clientKey", - "jsDoc": { - "doc": "Client private key (PEM format)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 52, - "col": 2, - "byteIndex": 1274 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { GrpcResponse } from \"@probitas-test/client-grpc\";\nimport { expectGrpcResponse } from \"./grpc.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"grpc\",\n ok: false,\n statusCode: 5,\n statusMessage: \"NOT_FOUND\",\n headers: mockHeaders,\n trailers: mockHeaders,\n data: null,\n duration: 0,\n} as unknown as GrpcResponse;\n\nexpectGrpcResponse(response).not.toBeOk();\nexpectGrpcResponse(response).not.toHaveStatusCode(0);\n```" + } + ] } - }, - "typeParams": [] + ] }, - { - "name": "insecure", - "jsDoc": { - "doc": "Skip server certificate verification (use only for testing)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 54, - "col": 2, - "byteIndex": 1379 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 6566, + "name": "GrpcResponseExpectation", + "package": "@probitas-test/expect" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 62, - "col": 0, - "byteIndex": 1530 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC connection configuration.\n\nExtends CommonConnectionConfig with ConnectRPC-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" + }, + { + "id": 6568, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6569, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the response is successful (code 0)." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { GrpcResponse } from \"@probitas-test/client-grpc\";\nimport { expectGrpcResponse } from \"./grpc.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"grpc\",\n ok: true,\n statusCode: 0,\n statusMessage: undefined,\n headers: mockHeaders,\n trailers: mockHeaders,\n data: { result: \"success\" },\n duration: 0,\n} as unknown as GrpcResponse;\n\nexpectGrpcResponse(response).toBeOk();\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "protocol", - "jsDoc": { - "doc": "Protocol to use.", - "tags": [ + ] + }, + { + "id": 6709, + "name": "toHaveData", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6710, + "name": "toHaveData", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"http\"" + "id": 6711, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected data value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 67, - "col": 2, - "byteIndex": 1664 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6712, + "name": "toHaveDataEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6713, + "name": "toHaveDataEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data equals the expected value using deep equality." } - }, + ] + }, + "parameters": [ { - "repr": "https", - "kind": "literal", - "literal": { - "kind": "string", - "string": "https" + "id": 6714, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected data value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } - ] - }, - "typeParams": [] - }, - { - "name": "path", - "jsDoc": { - "doc": "Service path prefix.", - "tags": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6732, + "name": "toHaveDataMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6733, + "name": "toHaveDataMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data matches the specified subset." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 73, - "col": 2, - "byteIndex": 1760 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 6734, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6726, + "name": "toHaveDataNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6727, + "name": "toHaveDataNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6730, + "name": "toHaveDataNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6731, + "name": "toHaveDataNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6724, + "name": "toHaveDataPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6725, + "name": "toHaveDataPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6735, + "name": "toHaveDataProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6736, + "name": "toHaveDataProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data has the specified property." + } + ] + }, + "parameters": [ + { + "id": 6737, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6738, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6739, + "name": "toHaveDataPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6740, + "name": "toHaveDataPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data property contains the expected value." + } + ] + }, + "parameters": [ + { + "id": 6741, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6742, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6743, + "name": "toHaveDataPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6744, + "name": "toHaveDataPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data property matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 6745, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6746, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6747, + "name": "toHaveDataPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6748, + "name": "toHaveDataPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data property satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 6749, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6750, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6751, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6752, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6753, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6718, + "name": "toHaveDataSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6719, + "name": "toHaveDataSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 6720, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the data and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6721, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6722, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6723, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6715, + "name": "toHaveDataStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6716, + "name": "toHaveDataStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 6717, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected data value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6728, + "name": "toHaveDataUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6729, + "name": "toHaveDataUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the data is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6754, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6755, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 6756, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6783, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6784, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 6785, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6786, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6757, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6758, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 6759, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6771, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6772, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 6773, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6774, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6775, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 6776, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6777, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6778, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 6779, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6780, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6781, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 6782, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6769, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6770, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6763, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6764, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 6765, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6766, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6767, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6768, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6760, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6761, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 6762, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6635, + "name": "toHaveHeaders", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6636, + "name": "toHaveHeaders", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 6637, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6638, + "name": "toHaveHeadersEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6639, + "name": "toHaveHeadersEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers equal the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 6640, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6650, + "name": "toHaveHeadersMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6651, + "name": "toHaveHeadersMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers match the specified subset." + } + ] + }, + "parameters": [ + { + "id": 6652, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6653, + "name": "toHaveHeadersProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6654, + "name": "toHaveHeadersProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers have the specified property." + } + ] + }, + "parameters": [ + { + "id": 6655, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6656, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6657, + "name": "toHaveHeadersPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6658, + "name": "toHaveHeadersPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers property contains the expected value." + } + ] + }, + "parameters": [ + { + "id": 6659, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6660, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6661, + "name": "toHaveHeadersPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6662, + "name": "toHaveHeadersPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers property matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 6663, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6664, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6665, + "name": "toHaveHeadersPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6666, + "name": "toHaveHeadersPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers property satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 6667, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6668, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6669, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6670, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6671, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6644, + "name": "toHaveHeadersSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6645, + "name": "toHaveHeadersSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers satisfy the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 6646, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the headers and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6647, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6648, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6649, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6641, + "name": "toHaveHeadersStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6642, + "name": "toHaveHeadersStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers strictly equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 6643, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6570, + "name": "toHaveStatusCode", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6571, + "name": "toHaveStatusCode", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 6572, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected code value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6599, + "name": "toHaveStatusCodeCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6600, + "name": "toHaveStatusCodeCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 6601, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6602, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6573, + "name": "toHaveStatusCodeEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6574, + "name": "toHaveStatusCodeEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 6575, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected code value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6587, + "name": "toHaveStatusCodeGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6588, + "name": "toHaveStatusCodeGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 6589, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6590, + "name": "toHaveStatusCodeGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6591, + "name": "toHaveStatusCodeGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 6592, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6593, + "name": "toHaveStatusCodeLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6594, + "name": "toHaveStatusCodeLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 6595, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6596, + "name": "toHaveStatusCodeLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6597, + "name": "toHaveStatusCodeLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 6598, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6585, + "name": "toHaveStatusCodeNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6586, + "name": "toHaveStatusCodeNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6603, + "name": "toHaveStatusCodeOneOf", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6604, + "name": "toHaveStatusCodeOneOf", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code is one of the specified values." + } + ] + }, + "parameters": [ + { + "id": 6605, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of acceptable values" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6579, + "name": "toHaveStatusCodeSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6580, + "name": "toHaveStatusCodeSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 6581, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the code and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6582, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6583, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6584, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 6414, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6576, + "name": "toHaveStatusCodeStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6577, + "name": "toHaveStatusCodeStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the code strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 6578, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected code value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6606, + "name": "toHaveStatusMessage", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6607, + "name": "toHaveStatusMessage", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 6608, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6621, + "name": "toHaveStatusMessageContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6622, + "name": "toHaveStatusMessageContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message contains the specified substring." + } + ] + }, + "parameters": [ + { + "id": 6623, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6609, + "name": "toHaveStatusMessageEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6610, + "name": "toHaveStatusMessageEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 6611, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6624, + "name": "toHaveStatusMessageMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6625, + "name": "toHaveStatusMessageMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message matches the specified regular expression." + } + ] + }, + "parameters": [ + { + "id": 6626, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6629, + "name": "toHaveStatusMessageNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6630, + "name": "toHaveStatusMessageNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6633, + "name": "toHaveStatusMessageNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6634, + "name": "toHaveStatusMessageNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6627, + "name": "toHaveStatusMessagePresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6628, + "name": "toHaveStatusMessagePresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6615, + "name": "toHaveStatusMessageSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6616, + "name": "toHaveStatusMessageSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 6617, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the message and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6618, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6619, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6620, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6612, + "name": "toHaveStatusMessageStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6613, + "name": "toHaveStatusMessageStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 6614, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6631, + "name": "toHaveStatusMessageUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6632, + "name": "toHaveStatusMessageUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6672, + "name": "toHaveTrailers", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6673, + "name": "toHaveTrailers", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 6674, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected trailers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6675, + "name": "toHaveTrailersEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6676, + "name": "toHaveTrailersEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers equal the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 6677, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected trailers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6687, + "name": "toHaveTrailersMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6688, + "name": "toHaveTrailersMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers match the specified subset." + } + ] + }, + "parameters": [ + { + "id": 6689, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6690, + "name": "toHaveTrailersProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6691, + "name": "toHaveTrailersProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers have the specified property." + } + ] + }, + "parameters": [ + { + "id": 6692, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6693, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6694, + "name": "toHaveTrailersPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6695, + "name": "toHaveTrailersPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers property contains the expected value." + } + ] + }, + "parameters": [ + { + "id": 6696, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6697, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6698, + "name": "toHaveTrailersPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6699, + "name": "toHaveTrailersPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers property matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 6700, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6701, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6702, + "name": "toHaveTrailersPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6703, + "name": "toHaveTrailersPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers property satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 6704, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 6705, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6706, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6707, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6708, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6681, + "name": "toHaveTrailersSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6682, + "name": "toHaveTrailersSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers satisfy the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 6683, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the trailers and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 6684, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 6685, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6686, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6678, + "name": "toHaveTrailersStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6679, + "name": "toHaveTrailersStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the trailers strictly equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 6680, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected trailers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 5572, + "name": "HttpClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP client interface." + } + ] + }, + "children": [ + { + "id": 5573, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 5562, + "name": "HttpClientConfig", + "package": "@probitas-test/client-http" + } + }, + { + "id": 5613, + "name": "clearCookies", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5614, + "name": "clearCookies", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Clear all cookies from the cookie jar.\nNo-op if cookies are disabled." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 5615, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5616, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the client and release resources" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 5594, + "name": "delete", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5595, + "name": "delete", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send DELETE request" + } + ] + }, + "parameters": [ + { + "id": 5596, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5597, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5543, + "name": "HttpRequestOptions", + "package": "@probitas-test/client-http" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9731, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 5574, + "name": "get", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5575, + "name": "get", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send GET request" + } + ] + }, + "parameters": [ + { + "id": 5576, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5577, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5535, + "name": "HttpOptions", + "package": "@probitas-test/client-http" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9731, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 5607, + "name": "getCookies", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5608, + "name": "getCookies", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all cookies in the cookie jar.\nReturns empty object if cookies are disabled." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 5578, + "name": "head", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5579, + "name": "head", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send HEAD request" + } + ] + }, + "parameters": [ + { + "id": 5580, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5581, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5535, + "name": "HttpOptions", + "package": "@probitas-test/client-http" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9731, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 5598, + "name": "options", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5599, + "name": "options", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send OPTIONS request" + } + ] + }, + "parameters": [ + { + "id": 5600, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5601, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5535, + "name": "HttpOptions", + "package": "@probitas-test/client-http" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9731, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 5590, + "name": "patch", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5591, + "name": "patch", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send PATCH request" + } + ] + }, + "parameters": [ + { + "id": 5592, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5593, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5543, + "name": "HttpRequestOptions", + "package": "@probitas-test/client-http" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9731, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 5582, + "name": "post", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5583, + "name": "post", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send POST request" + } + ] + }, + "parameters": [ + { + "id": 5584, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5585, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5543, + "name": "HttpRequestOptions", + "package": "@probitas-test/client-http" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9731, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 5586, + "name": "put", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5587, + "name": "put", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send PUT request" + } + ] + }, + "parameters": [ + { + "id": 5588, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5589, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5543, + "name": "HttpRequestOptions", + "package": "@probitas-test/client-http" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9731, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 5602, + "name": "request", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5603, + "name": "request", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send request with arbitrary method" + } + ] + }, + "parameters": [ + { + "id": 5604, + "name": "method", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5605, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5606, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 5543, + "name": "HttpRequestOptions", + "package": "@probitas-test/client-http" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9731, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 5609, + "name": "setCookie", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5610, + "name": "setCookie", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set a cookie in the cookie jar." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if cookies are disabled" + } + ] + } + ] + }, + "parameters": [ + { + "id": 5611, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5612, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] + }, + { + "id": 5562, + "name": "HttpClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP client configuration." + } + ] + }, + "children": [ + { + "id": 5568, + "name": "cookies", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Cookie handling configuration.\nBy default, the client maintains a cookie jar for automatic\ncookie management across requests.\nSet " + }, + { + "kind": "code", + "text": "`cookies: { disabled: true }`" + }, + { + "kind": "text", + "text": " to disable." + } + ] + }, + "type": { + "type": "reference", + "target": 5552, + "name": "CookieConfig", + "package": "@probitas-test/client-http" + } + }, + { + "id": 5565, + "name": "fetch", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Custom fetch implementation (for testing/mocking)" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "Fetch" + }, + "name": "Fetch", + "package": "@probitas-test/client" + } + }, + { + "id": 5564, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default headers for all requests" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" + }, + "name": "HeadersInit", + "package": "typescript" + } + }, + { + "id": 5566, + "name": "redirect", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default redirect handling mode.\nCan be overridden per-request via HttpOptions." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"follow\"\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 5533, + "name": "RedirectMode", + "package": "@probitas-test/client-http" + } + }, + { + "id": 5571, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 5570, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 5567, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw HttpError for non-2xx responses.\nCan be overridden per-request via HttpOptions." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 5569, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + }, + { + "id": 5563, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base URL for all requests.\n\nCan be a URL string or a connection configuration object." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "String URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { HttpClientConfig } from \"@probitas-test/client-http\";\nconst config: HttpClientConfig = { url: \"http://localhost:3000\" };\n```" + } + ] + }, + { + "tag": "@example", + "name": "Connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { HttpClientConfig } from \"@probitas-test/client-http\";\nconst config: HttpClientConfig = {\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n};\n```" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 5555, + "name": "HttpConnectionConfig", + "package": "@probitas-test/client-http" + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 5555, + "name": "HttpConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP connection configuration.\n\nExtends CommonConnectionConfig with HTTP-specific options." + } + ] + }, + "children": [ + { + "id": 5558, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Hostname or IP address." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" + } + }, + { + "id": 5561, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 5557, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base path prefix for all requests." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"\"\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5559, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 5556, + "name": "protocol", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Protocol to use." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"http\"\n```" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "http" + }, + { + "type": "literal", + "value": "https" + } + ] + } + }, + { + "id": 5560, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 5617, + "name": "HttpErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for creating an HttpError." + } + ] + }, + "children": [ + { + "id": 5618, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response body as raw bytes" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 5619, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ] + }, + { + "id": 5535, + "name": "HttpOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for individual HTTP requests." + } + ] + }, + "children": [ + { + "id": 5537, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional request headers" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" + }, + "name": "HeadersInit", + "package": "typescript" + } + }, + { + "id": 5536, + "name": "query", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query parameters (arrays for multi-value params)" + } + ] + }, + "type": { + "type": "reference", + "target": 5534, + "name": "QueryParams", + "package": "@probitas-test/client-http" + } + }, + { + "id": 5538, + "name": "redirect", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redirect handling mode." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"follow\" (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 5533, + "name": "RedirectMode", + "package": "@probitas-test/client-http" + } + }, + { + "id": 5542, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 5541, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 5539, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw HttpError for non-2xx responses.\nWhen false, non-2xx responses are returned as HttpResponse." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 5540, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 5543, + "name": "HttpRequestOptions" + } + ] + }, + { + "id": 5543, + "name": "HttpRequestOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for HTTP requests that may include a body." + } + ] + }, + "children": [ + { + "id": 5544, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request body" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + }, + { + "id": 5546, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional request headers" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "HeadersInit" + }, + "name": "HeadersInit", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 5537, + "name": "HttpOptions.headers" + } + }, + { + "id": 5545, + "name": "query", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query parameters (arrays for multi-value params)" + } + ] + }, + "type": { + "type": "reference", + "target": 5534, + "name": "QueryParams", + "package": "@probitas-test/client-http" + }, + "inheritedFrom": { + "type": "reference", + "target": 5536, + "name": "HttpOptions.query" + } + }, + { + "id": 5547, + "name": "redirect", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redirect handling mode." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"follow\" (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 5533, + "name": "RedirectMode", + "package": "@probitas-test/client-http" + }, + "inheritedFrom": { + "type": "reference", + "target": 5538, + "name": "HttpOptions.redirect" + } + }, + { + "id": 5551, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 5542, + "name": "HttpOptions.retry" + } + }, + { + "id": 5550, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 5541, + "name": "HttpOptions.signal" + } + }, + { + "id": 5548, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw HttpError for non-2xx responses.\nWhen false, non-2xx responses are returned as HttpResponse." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 5539, + "name": "HttpOptions.throwOnError" + } + }, + { + "id": 5549, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 5540, + "name": "HttpOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 5535, + "name": "HttpOptions", + "package": "@probitas-test/client-http" + } + ] + }, + { + "id": 9733, + "name": "HttpResponseError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response for error responses (4xx/5xx status codes).\n\nServer received and processed the request, but returned an error status." + } + ] + }, + "children": [ + { + "id": 9746, + "name": "arrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as ArrayBuffer (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 9763, + "name": "HttpResponseBase.arrayBuffer", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9747, + "name": "blob", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as Blob (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 9764, + "name": "HttpResponseBase.blob", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9745, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response body as raw bytes (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 9779, + "name": "HttpResponseBase.body", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9743, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 9761, + "name": "HttpResponseBase.duration", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9737, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the HTTP error." + } + ] + }, + "type": { + "type": "reference", + "target": 5620, + "name": "HttpError", + "package": "@probitas-test/client-http" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.error", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9740, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 9749, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as parsed JSON (null if no body or failure)." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "SyntaxError if body is not valid JSON" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9734, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseError.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.json", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9742, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"http\"`" + }, + { + "kind": "text", + "text": " for HTTP responses." + } + ] + }, + "type": { + "type": "literal", + "value": "http" + }, + "inheritedFrom": { + "type": "reference", + "target": 9760, + "name": "HttpResponseBase.kind", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9736, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response was not successful (4xx/5xx)." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.ok", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9735, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the request." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.processed", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9741, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw Web standard Response." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.raw", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9738, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code (4xx/5xx)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 9739, + "name": "statusText", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status text." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 9748, + "name": "text", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as text (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": 9765, + "name": "HttpResponseBase.text", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9744, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 9762, + "name": "HttpResponseBase.url", + "package": "@probitas-test/client-http" + } + } + ], + "typeParameters": [ + { + "id": 9734, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-http", + "packagePath": "dist/response.d.ts", + "qualifiedName": "HttpResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9734, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseError.T", + "refersToTypeParameter": true + } + ], + "name": "HttpResponseBase", + "package": "@probitas-test/client-http" + } + ] + }, + { + "id": 5216, + "name": "HttpResponseExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fluent API for HTTP response validation." + } + ] + }, + "children": [ + { + "id": 5217, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { HttpResponse } from \"@probitas-test/client-http\";\nimport { expectHttpResponse } from \"./http.ts\";\nconst response = {\n kind: \"http\",\n ok: false,\n status: 500,\n statusText: \"Error\",\n headers: new Headers(),\n url: \"http://example.com\",\n body: null,\n duration: 0,\n text: null,\n json: null,\n} as unknown as HttpResponse;\n\nexpectHttpResponse(response).not.toBeOk();\nexpectHttpResponse(response).not.toHaveStatus(404);\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 5216, + "name": "HttpResponseExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 5218, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5219, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the response is successful (status 2xx)." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { HttpResponse } from \"@probitas-test/client-http\";\nimport { expectHttpResponse } from \"./http.ts\";\nconst response = {\n kind: \"http\",\n ok: true,\n status: 200,\n statusText: \"OK\",\n headers: new Headers(),\n url: \"http://example.com\",\n body: null,\n duration: 0,\n text: null,\n json: null,\n} as unknown as HttpResponse;\n\nexpectHttpResponse(response).toBeOk();\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5335, + "name": "toHaveBody", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5336, + "name": "toHaveBody", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5337, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected body value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5338, + "name": "toHaveBodyEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5339, + "name": "toHaveBodyEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5340, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected body value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5358, + "name": "toHaveBodyLength", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5359, + "name": "toHaveBodyLength", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body length equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5360, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected body length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5387, + "name": "toHaveBodyLengthCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5388, + "name": "toHaveBodyLengthCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body length is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5389, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5390, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5361, + "name": "toHaveBodyLengthEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5362, + "name": "toHaveBodyLengthEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body length equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5363, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected body length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5375, + "name": "toHaveBodyLengthGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5376, + "name": "toHaveBodyLengthGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body length is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 5377, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5378, + "name": "toHaveBodyLengthGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5379, + "name": "toHaveBodyLengthGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body length is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5380, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5381, + "name": "toHaveBodyLengthLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5382, + "name": "toHaveBodyLengthLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body length is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 5383, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5384, + "name": "toHaveBodyLengthLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5385, + "name": "toHaveBodyLengthLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body length is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5386, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5373, + "name": "toHaveBodyLengthNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5374, + "name": "toHaveBodyLengthNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body length is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5367, + "name": "toHaveBodyLengthSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5368, + "name": "toHaveBodyLengthSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body length satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5369, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the body length and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5370, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5371, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5372, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5364, + "name": "toHaveBodyLengthStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5365, + "name": "toHaveBodyLengthStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body length strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5366, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected body length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5352, + "name": "toHaveBodyNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5353, + "name": "toHaveBodyNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5356, + "name": "toHaveBodyNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5357, + "name": "toHaveBodyNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5350, + "name": "toHaveBodyPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5351, + "name": "toHaveBodyPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5344, + "name": "toHaveBodySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5345, + "name": "toHaveBodySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5346, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the body and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5347, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5348, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5349, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5341, + "name": "toHaveBodyStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5342, + "name": "toHaveBodyStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5343, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected body value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5354, + "name": "toHaveBodyUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5355, + "name": "toHaveBodyUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the body is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5498, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5499, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5500, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5527, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5528, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5529, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5530, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5501, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5502, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5503, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5515, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5516, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 5517, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5518, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5519, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5520, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5521, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5522, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 5523, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5524, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5525, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5526, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5513, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5514, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5507, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5508, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5509, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5510, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5511, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5512, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5504, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5505, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5506, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5277, + "name": "toHaveHeaders", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5278, + "name": "toHaveHeaders", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 5279, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5280, + "name": "toHaveHeadersEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5281, + "name": "toHaveHeadersEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers equal the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5282, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5292, + "name": "toHaveHeadersMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5293, + "name": "toHaveHeadersMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers match the specified subset." + } + ] + }, + "parameters": [ + { + "id": 5294, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5295, + "name": "toHaveHeadersProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5296, + "name": "toHaveHeadersProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers have the specified property." + } + ] + }, + "parameters": [ + { + "id": 5297, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 5298, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5299, + "name": "toHaveHeadersPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5300, + "name": "toHaveHeadersPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers property contains the expected value." + } + ] + }, + "parameters": [ + { + "id": 5301, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 5302, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5303, + "name": "toHaveHeadersPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5304, + "name": "toHaveHeadersPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers property matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 5305, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 5306, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5307, + "name": "toHaveHeadersPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5308, + "name": "toHaveHeadersPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers property satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5309, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 5310, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5311, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5312, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5313, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5286, + "name": "toHaveHeadersSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5287, + "name": "toHaveHeadersSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers satisfy the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5288, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the headers and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5289, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5290, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5291, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5283, + "name": "toHaveHeadersStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5284, + "name": "toHaveHeadersStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the headers strictly equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 5285, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected headers value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5453, + "name": "toHaveJson", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5454, + "name": "toHaveJson", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5455, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected JSON value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5456, + "name": "toHaveJsonEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5457, + "name": "toHaveJsonEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5458, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected JSON value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5476, + "name": "toHaveJsonMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5477, + "name": "toHaveJsonMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 5478, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5470, + "name": "toHaveJsonNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5471, + "name": "toHaveJsonNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5474, + "name": "toHaveJsonNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5475, + "name": "toHaveJsonNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5468, + "name": "toHaveJsonPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5469, + "name": "toHaveJsonPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5479, + "name": "toHaveJsonProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5480, + "name": "toHaveJsonProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON has the specified property." + } + ] + }, + "parameters": [ + { + "id": 5481, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 5482, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5483, + "name": "toHaveJsonPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5484, + "name": "toHaveJsonPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON property contains the expected value." + } + ] + }, + "parameters": [ + { + "id": 5485, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 5486, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5487, + "name": "toHaveJsonPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5488, + "name": "toHaveJsonPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON property matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 5489, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 5490, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5491, + "name": "toHaveJsonPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5492, + "name": "toHaveJsonPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON property satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5493, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 5494, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5495, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5496, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5497, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5462, + "name": "toHaveJsonSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5463, + "name": "toHaveJsonSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5464, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the JSON and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5465, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5466, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5467, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5459, + "name": "toHaveJsonStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5460, + "name": "toHaveJsonStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5461, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected JSON value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5472, + "name": "toHaveJsonUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5473, + "name": "toHaveJsonUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the JSON is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5220, + "name": "toHaveStatus", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5221, + "name": "toHaveStatus", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5222, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected status value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5249, + "name": "toHaveStatusCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5250, + "name": "toHaveStatusCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5251, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5252, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5223, + "name": "toHaveStatusEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5224, + "name": "toHaveStatusEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5225, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected status value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5237, + "name": "toHaveStatusGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5238, + "name": "toHaveStatusGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 5239, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5240, + "name": "toHaveStatusGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5241, + "name": "toHaveStatusGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5242, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5243, + "name": "toHaveStatusLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5244, + "name": "toHaveStatusLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 5245, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5246, + "name": "toHaveStatusLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5247, + "name": "toHaveStatusLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5248, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5235, + "name": "toHaveStatusNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5236, + "name": "toHaveStatusNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5253, + "name": "toHaveStatusOneOf", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5254, + "name": "toHaveStatusOneOf", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status is one of the specified values." + } + ] + }, + "parameters": [ + { + "id": 5255, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of acceptable values" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5229, + "name": "toHaveStatusSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5230, + "name": "toHaveStatusSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5231, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the status and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5232, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5233, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5234, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5226, + "name": "toHaveStatusStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5227, + "name": "toHaveStatusStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5228, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected status value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5256, + "name": "toHaveStatusText", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5257, + "name": "toHaveStatusText", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status text equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5258, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected status text" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5271, + "name": "toHaveStatusTextContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5272, + "name": "toHaveStatusTextContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status text contains the specified substring." + } + ] + }, + "parameters": [ + { + "id": 5273, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5259, + "name": "toHaveStatusTextEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5260, + "name": "toHaveStatusTextEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status text equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5261, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected status text" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5274, + "name": "toHaveStatusTextMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5275, + "name": "toHaveStatusTextMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status text matches the specified regular expression." + } + ] + }, + "parameters": [ + { + "id": 5276, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5265, + "name": "toHaveStatusTextSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5266, + "name": "toHaveStatusTextSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status text satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5267, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the status text and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5268, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5269, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5270, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5262, + "name": "toHaveStatusTextStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5263, + "name": "toHaveStatusTextStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the status text strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5264, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected status text" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5391, + "name": "toHaveText", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5392, + "name": "toHaveText", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5393, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected text value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5406, + "name": "toHaveTextContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5407, + "name": "toHaveTextContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text contains the specified substring." + } + ] + }, + "parameters": [ + { + "id": 5408, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5394, + "name": "toHaveTextEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5395, + "name": "toHaveTextEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5396, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected text value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5420, + "name": "toHaveTextLength", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5421, + "name": "toHaveTextLength", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text length equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5422, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected text length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5449, + "name": "toHaveTextLengthCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5450, + "name": "toHaveTextLengthCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text length is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5451, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 5452, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5423, + "name": "toHaveTextLengthEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5424, + "name": "toHaveTextLengthEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text length equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5425, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected text length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5437, + "name": "toHaveTextLengthGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5438, + "name": "toHaveTextLengthGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text length is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 5439, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5440, + "name": "toHaveTextLengthGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5441, + "name": "toHaveTextLengthGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text length is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5442, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5443, + "name": "toHaveTextLengthLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5444, + "name": "toHaveTextLengthLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text length is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 5445, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5446, + "name": "toHaveTextLengthLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5447, + "name": "toHaveTextLengthLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text length is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 5448, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5435, + "name": "toHaveTextLengthNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5436, + "name": "toHaveTextLengthNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text length is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5429, + "name": "toHaveTextLengthSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5430, + "name": "toHaveTextLengthSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text length satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5431, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the text length and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5432, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5433, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5434, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5426, + "name": "toHaveTextLengthStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5427, + "name": "toHaveTextLengthStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text length strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5428, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected text length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5409, + "name": "toHaveTextMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5410, + "name": "toHaveTextMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text matches the specified regular expression." + } + ] + }, + "parameters": [ + { + "id": 5411, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5414, + "name": "toHaveTextNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5415, + "name": "toHaveTextNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5418, + "name": "toHaveTextNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5419, + "name": "toHaveTextNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5412, + "name": "toHaveTextPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5413, + "name": "toHaveTextPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5400, + "name": "toHaveTextSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5401, + "name": "toHaveTextSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5402, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the text and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5403, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5404, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5405, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5397, + "name": "toHaveTextStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5398, + "name": "toHaveTextStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5399, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected text value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5416, + "name": "toHaveTextUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5417, + "name": "toHaveTextUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the text is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5314, + "name": "toHaveUrl", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5315, + "name": "toHaveUrl", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the URL equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5316, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected URL value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5329, + "name": "toHaveUrlContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5330, + "name": "toHaveUrlContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the URL contains the specified substring." + } + ] + }, + "parameters": [ + { + "id": 5331, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5317, + "name": "toHaveUrlEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5318, + "name": "toHaveUrlEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the URL equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 5319, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected URL value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5332, + "name": "toHaveUrlMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5333, + "name": "toHaveUrlMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the URL matches the specified regular expression." + } + ] + }, + "parameters": [ + { + "id": 5334, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5323, + "name": "toHaveUrlSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5324, + "name": "toHaveUrlSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the URL satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 5325, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the URL and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 5326, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 5327, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5328, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 5320, + "name": "toHaveUrlStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 5321, + "name": "toHaveUrlStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the URL strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 5322, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected URL value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 9750, + "name": "HttpResponseFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response for request failures (network errors, timeouts, etc.).\n\nRequest could not be processed by the server (network error, DNS failure,\nconnection refused, timeout, aborted, etc.)." + } + ] + }, + "children": [ + { + "id": 9763, + "name": "arrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as ArrayBuffer (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.arrayBuffer" + } + }, + { + "id": 9764, + "name": "blob", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as Blob (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.blob" + } + }, + { + "id": 9758, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No body (request didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.body" + } + }, + { + "id": 9761, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.duration" + } + }, + { + "id": 9754, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the failure (ConnectionError, TimeoutError, AbortError)." + } + ] + }, + "type": { + "type": "reference", + "target": 5649, + "name": "HttpFailureError", + "package": "@probitas-test/client-http" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.error", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9757, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No headers (request didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9766, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as parsed JSON (null if no body or failure)." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "SyntaxError if body is not valid JSON" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9751, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseFailure.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.json", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9760, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"http\"`" + }, + { + "kind": "text", + "text": " for HTTP responses." + } + ] + }, + "type": { + "type": "literal", + "value": "http" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.kind" + } + }, + { + "id": 9753, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request failed." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.ok", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9752, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server did not process the request." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.processed", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9759, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No raw response (request didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.raw", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9755, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No HTTP status (request didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9756, + "name": "statusText", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No HTTP status text (request didn't reach server)." + } + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9765, + "name": "text", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as text (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.text" + } + }, + { + "id": 9762, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.url" + } + } + ], + "typeParameters": [ + { + "id": 9751, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-http", + "packagePath": "dist/response.d.ts", + "qualifiedName": "HttpResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9751, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseFailure.T", + "refersToTypeParameter": true + } + ], + "name": "HttpResponseBase", + "package": "@probitas-test/client-http" + } + ] + }, + { + "id": 9767, + "name": "HttpResponseSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP response for successful requests (2xx status codes).\n\nWraps Web standard Response, allowing body to be read synchronously\nand multiple times (unlike the streaming-based standard Response)." + } + ] + }, + "children": [ + { + "id": 9780, + "name": "arrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as ArrayBuffer (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.arrayBuffer" + } + }, + { + "id": 9781, + "name": "blob", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as Blob (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.blob" + } + }, + { + "id": 9779, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response body as raw bytes (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.body" + } + }, + { + "id": 9777, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response time in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.duration" + } + }, + { + "id": 9771, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No error for successful responses." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.error", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9774, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response headers." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } + }, + { + "id": 9783, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as parsed JSON (null if no body or failure)." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "SyntaxError if body is not valid JSON" + } + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9768, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseSuccess.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.json", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9776, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"http\"`" + }, + { + "kind": "text", + "text": " for HTTP responses." + } + ] + }, + "type": { + "type": "literal", + "value": "http" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.kind" + } + }, + { + "id": 9770, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Response was successful (2xx)." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.ok", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9769, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the request." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.processed", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9775, + "name": "raw", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Raw Web standard Response." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Response" + }, + "name": "Response", + "package": "typescript" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.raw", + "package": "@probitas-test/client-http" + } + }, + { + "id": 9772, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status code (200-299)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 9773, + "name": "statusText", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "HTTP status text." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 9782, + "name": "text", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get body as text (null if no body or failure)." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.text" + } + }, + { + "id": 9778, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Request URL." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "HttpResponseBase.url" + } + } + ], + "typeParameters": [ + { + "id": 9768, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-http", + "packagePath": "dist/response.d.ts", + "qualifiedName": "HttpResponseBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9768, + "name": "T", + "package": "@probitas-test/client-http", + "qualifiedName": "HttpResponseSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "HttpResponseBase", + "package": "@probitas-test/client-http" + } + ] + }, + { + "id": 6376, + "name": "MethodInfo", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method information from reflection." + } + ] + }, + "children": [ + { + "id": 6382, + "name": "idempotent", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the method is idempotent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 6380, + "name": "inputType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Input message type name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6379, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method kind" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "unary" + }, + { + "type": "literal", + "value": "server_streaming" + }, + { + "type": "literal", + "value": "client_streaming" + }, + { + "type": "literal", + "value": "bidi_streaming" + } + ] + } + }, + { + "id": 6378, + "name": "localName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Local name (camelCase)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6377, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Method name (e.g., \"Echo\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6381, + "name": "outputType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Output message type name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 7547, + "name": "MongoClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB client interface" + } + ] + }, + "children": [ + { + "id": 7548, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 7490, + "name": "MongoClientConfig", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7563, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7564, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7549, + "name": "collection", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7550, + "name": "collection", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 7551, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 7471, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Document", + "package": "@probitas-test/client-mongodb" + }, + "default": { + "type": "reference", + "target": 7471, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "parameters": [ + { + "id": 7552, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 7502, + "typeArguments": [ + { + "type": "reference", + "target": 7551, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true + } + ], + "name": "MongoCollection", + "package": "@probitas-test/client-mongodb" + } + } + ] + }, + { + "id": 7553, + "name": "db", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7554, + "name": "db", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7555, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 7547, + "name": "MongoClient", + "package": "@probitas-test/client-mongodb" + } + } + ] + }, + { + "id": 7556, + "name": "transaction", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7557, + "name": "transaction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 7558, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 7559, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 7560, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 7561, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7562, + "name": "session", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7497, + "name": "MongoSession", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7558, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7558, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] + }, + { + "id": 7490, + "name": "MongoClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB client configuration." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Using a connection string", + "content": [ + { + "kind": "code", + "text": "```ts\nconst config: MongoClientConfig = {\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n};\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using a configuration object", + "content": [ + { + "kind": "code", + "text": "```ts\nconst config: MongoClientConfig = {\n url: {\n host: \"localhost\",\n port: 27017,\n username: \"admin\",\n password: \"secret\",\n authSource: \"admin\",\n },\n database: \"testdb\",\n};\n```" + } + ] + } + ] + }, + "children": [ + { + "id": 7492, + "name": "database", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Database name to connect to." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7496, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 7462, + "name": "MongoOptions.retry" + } + }, + { + "id": 7495, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 7461, + "name": "MongoOptions.signal" + } + }, + { + "id": 7493, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 7459, + "name": "MongoOptions.throwOnError" + } + }, + { + "id": 7494, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7460, + "name": "MongoOptions.timeout" + } + }, + { + "id": 7491, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB connection URL or configuration object." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 7463, + "name": "MongoConnectionConfig", + "package": "@probitas-test/client-mongodb" + } + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7458, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7502, + "name": "MongoCollection", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB collection interface" + } + ] + }, + "children": [ + { + "id": 7538, + "name": "aggregate", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7539, + "name": "aggregate", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 7540, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 7503, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoCollection.T", + "refersToTypeParameter": true + } + } + ], + "parameters": [ + { + "id": 7541, + "name": "pipeline", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 7471, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + }, + { + "id": 7542, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7458, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 10908, + "typeArguments": [ + { + "type": "reference", + "target": 7540, + "name": "R", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true + } + ], + "name": "MongoFindResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7543, + "name": "countDocuments", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7544, + "name": "countDocuments", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7545, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7473, + "name": "Filter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7546, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7458, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 10903, + "name": "MongoCountResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7534, + "name": "deleteMany", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7535, + "name": "deleteMany", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7536, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7473, + "name": "Filter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7537, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7458, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 10904, + "name": "MongoDeleteResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7530, + "name": "deleteOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7531, + "name": "deleteOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7532, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7473, + "name": "Filter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7533, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7458, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 10904, + "name": "MongoDeleteResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7504, + "name": "find", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7505, + "name": "find", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7506, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7473, + "name": "Filter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7507, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7475, + "name": "MongoFindOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 10908, + "typeArguments": [ + { + "type": "reference", + "target": 7503, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoCollection.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7508, + "name": "findOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7509, + "name": "findOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7510, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7473, + "name": "Filter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7511, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7458, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 10906, + "typeArguments": [ + { + "type": "reference", + "target": 7503, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoCollection.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7516, + "name": "insertMany", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7517, + "name": "insertMany", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7518, + "name": "docs", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7503, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoCollection.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": "_id" + } + ], + "name": "Omit", + "package": "typescript" + } + } + }, + { + "id": 7519, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7458, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 10910, + "name": "MongoInsertManyResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7512, + "name": "insertOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7513, + "name": "insertOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7514, + "name": "doc", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7503, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoCollection.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": "_id" + } + ], + "name": "Omit", + "package": "typescript" + } + }, + { + "id": 7515, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7458, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 10911, + "name": "MongoInsertOneResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7525, + "name": "updateMany", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7526, + "name": "updateMany", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7527, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7473, + "name": "Filter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7528, + "name": "update", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7474, + "name": "UpdateFilter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7529, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7484, + "name": "MongoUpdateOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 10914, + "name": "MongoUpdateResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7520, + "name": "updateOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7521, + "name": "updateOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7522, + "name": "filter", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7473, + "name": "Filter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7523, + "name": "update", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7474, + "name": "UpdateFilter", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7524, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 7484, + "name": "MongoUpdateOptions", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 10914, + "name": "MongoUpdateResult", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + ], + "typeParameters": [ + { + "id": 7503, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 7471, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ] + }, + { + "id": 7463, + "name": "MongoConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB connection configuration.\n\nExtends CommonConnectionConfig with MongoDB-specific options." + } + ] + }, + "children": [ + { + "id": 7465, + "name": "authSource", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Authentication database." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7464, + "name": "database", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Database name to connect to." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7467, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Hostname or IP address." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" + } + }, + { + "id": 7470, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 7468, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 7466, + "name": "replicaSet", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Replica set name." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7469, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 7791, + "name": "MongoCountResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Count result with MongoDB error." + } + ] + }, + "children": [ + { + "id": 7795, + "name": "count", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.count" + } + }, + { + "id": 7797, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.duration" + } + }, + { + "id": 7794, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.error" + } + }, + { + "id": 7796, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:count" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.kind" + } + }, + { + "id": 7793, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.ok" + } + }, + { + "id": 7792, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoCountResultBase" + }, + "name": "MongoCountResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 10297, + "name": "MongoCountResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fluent API for MongoDB count result validation." + } + ] + }, + "children": [ + { + "id": 10298, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { MongoCountResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoCountResult } from \"./count.ts\";\nconst result = {\n kind: \"mongo:count\",\n ok: true,\n count: 5,\n duration: 0,\n} as unknown as MongoCountResult;\n\nexpectMongoCountResult(result).not.toHaveCount(0);\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 10297, + "name": "MongoCountResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 10299, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10300, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10301, + "name": "toHaveCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10302, + "name": "toHaveCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10303, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10330, + "name": "toHaveCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10331, + "name": "toHaveCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10332, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10333, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10304, + "name": "toHaveCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10305, + "name": "toHaveCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10306, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10318, + "name": "toHaveCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10319, + "name": "toHaveCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10320, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10321, + "name": "toHaveCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10322, + "name": "toHaveCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10323, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10324, + "name": "toHaveCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10325, + "name": "toHaveCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10326, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10327, + "name": "toHaveCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10328, + "name": "toHaveCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10329, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10316, + "name": "toHaveCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10317, + "name": "toHaveCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10310, + "name": "toHaveCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10311, + "name": "toHaveCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10312, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the count and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10313, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10314, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10315, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10307, + "name": "toHaveCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10308, + "name": "toHaveCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the count strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10309, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10334, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10335, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10336, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10363, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10364, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10365, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10366, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10337, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10338, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10339, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10351, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10352, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10353, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10354, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10355, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10356, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10357, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10358, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10359, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10360, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10361, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10362, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10349, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10350, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10343, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10344, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10345, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10346, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10347, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10348, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10340, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10341, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10342, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 7798, + "name": "MongoCountResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Count result with connection failure." + } + ] + }, + "children": [ + { + "id": 7802, + "name": "count", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.count" + } + }, + { + "id": 7804, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.duration" + } + }, + { + "id": 7801, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 10905, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.error" + } + }, + { + "id": 7803, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:count" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.kind" + } + }, + { + "id": 7800, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.ok" + } + }, + { + "id": 7799, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoCountResultBase" + }, + "name": "MongoCountResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7784, + "name": "MongoCountResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful count result." + } + ] + }, + "children": [ + { + "id": 7788, + "name": "count", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.count" + } + }, + { + "id": 7790, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.duration" + } + }, + { + "id": 7787, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.error" + } + }, + { + "id": 7789, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:count" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.kind" + } + }, + { + "id": 7786, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.ok" + } + }, + { + "id": 7785, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoCountResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoCountResultBase" + }, + "name": "MongoCountResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7770, + "name": "MongoDeleteResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete result with MongoDB error." + } + ] + }, + "children": [ + { + "id": 7774, + "name": "deletedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.deletedCount" + } + }, + { + "id": 7776, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.duration" + } + }, + { + "id": 7773, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.error" + } + }, + { + "id": 7775, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:delete" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.kind" + } + }, + { + "id": 7772, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.ok" + } + }, + { + "id": 7771, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoDeleteResultBase" + }, + "name": "MongoDeleteResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 10367, + "name": "MongoDeleteResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fluent API for MongoDB delete result validation." + } + ] + }, + "children": [ + { + "id": 10368, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { MongoDeleteResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoDeleteResult } from \"./delete.ts\";\nconst result = {\n kind: \"mongo:delete\",\n ok: true,\n deletedCount: 3,\n duration: 0,\n} as unknown as MongoDeleteResult;\n\nexpectMongoDeleteResult(result).not.toHaveDeletedCount(0);\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 10367, + "name": "MongoDeleteResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 10369, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10370, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the delete result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10371, + "name": "toHaveDeletedCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10372, + "name": "toHaveDeletedCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the deleted count equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10373, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected deleted count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10400, + "name": "toHaveDeletedCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10401, + "name": "toHaveDeletedCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the deleted count is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10402, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10403, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10374, + "name": "toHaveDeletedCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10375, + "name": "toHaveDeletedCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the deleted count equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10376, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected deleted count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10388, + "name": "toHaveDeletedCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10389, + "name": "toHaveDeletedCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the deleted count is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10390, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10391, + "name": "toHaveDeletedCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10392, + "name": "toHaveDeletedCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the deleted count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10393, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10394, + "name": "toHaveDeletedCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10395, + "name": "toHaveDeletedCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the deleted count is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10396, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10397, + "name": "toHaveDeletedCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10398, + "name": "toHaveDeletedCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the deleted count is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10399, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10386, + "name": "toHaveDeletedCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10387, + "name": "toHaveDeletedCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the deleted count is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10380, + "name": "toHaveDeletedCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10381, + "name": "toHaveDeletedCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the deleted count satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10382, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the deleted count and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10383, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10384, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10385, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10377, + "name": "toHaveDeletedCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10378, + "name": "toHaveDeletedCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the deleted count strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10379, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected deleted count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10404, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10405, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10406, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10433, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10434, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10435, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10436, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10407, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10408, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10409, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10421, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10422, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10423, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10424, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10425, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10426, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10427, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10428, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10429, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10430, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10431, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10432, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10419, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10420, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10413, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10414, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10415, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10416, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10417, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10418, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10410, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10411, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10412, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 7777, + "name": "MongoDeleteResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete result with connection failure." + } + ] + }, + "children": [ + { + "id": 7781, + "name": "deletedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.deletedCount" + } + }, + { + "id": 7783, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.duration" + } + }, + { + "id": 7780, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 10905, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.error" + } + }, + { + "id": 7782, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:delete" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.kind" + } + }, + { + "id": 7779, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.ok" + } + }, + { + "id": 7778, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoDeleteResultBase" + }, + "name": "MongoDeleteResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7763, + "name": "MongoDeleteResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful delete result." + } + ] + }, + "children": [ + { + "id": 7767, + "name": "deletedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.deletedCount" + } + }, + { + "id": 7769, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.duration" + } + }, + { + "id": 7766, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.error" + } + }, + { + "id": 7768, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:delete" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.kind" + } + }, + { + "id": 7765, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.ok" + } + }, + { + "id": 7764, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoDeleteResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoDeleteResultBase" + }, + "name": "MongoDeleteResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7565, + "name": "MongoErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for MongoDB errors." + } + ] + }, + "children": [ + { + "id": 7566, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ] + }, + { + "id": 7675, + "name": "MongoFindOneResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "FindOne result with MongoDB error." + } + ] + }, + "children": [ + { + "id": 7680, + "name": "doc", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.doc", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7682, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.duration" + } + }, + { + "id": 7679, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.error" + } + }, + { + "id": 7681, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:find-one" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.kind" + } + }, + { + "id": 7678, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.ok" + } + }, + { + "id": 7677, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 7676, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 7471, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoFindOneResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7676, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindOneResultError.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 10437, + "name": "MongoFindOneResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fluent API for MongoDB findOne result validation." + } + ] + }, + "children": [ + { + "id": 10439, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { MongoFindOneResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoFindOneResult } from \"./find_one.ts\";\nconst result = {\n kind: \"mongo:find-one\",\n ok: true,\n doc: { name: \"Alice\" },\n duration: 0,\n} as unknown as MongoFindOneResult;\n\nexpectMongoFindOneResult(result).not.toHaveDocNullish();\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 10437, + "typeArguments": [ + { + "type": "reference", + "target": 10438, + "name": "_T", + "package": "@probitas-test/expect", + "qualifiedName": "MongoFindOneResultExpectation._T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 10440, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10441, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the findOne result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10442, + "name": "toHaveDoc", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10443, + "name": "toHaveDoc", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10444, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected doc value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10445, + "name": "toHaveDocEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10446, + "name": "toHaveDocEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10447, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected doc value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10465, + "name": "toHaveDocMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10466, + "name": "toHaveDocMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 10467, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10459, + "name": "toHaveDocNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10460, + "name": "toHaveDocNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10463, + "name": "toHaveDocNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10464, + "name": "toHaveDocNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10457, + "name": "toHaveDocPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10458, + "name": "toHaveDocPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10468, + "name": "toHaveDocProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10469, + "name": "toHaveDocProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc has the specified property." + } + ] + }, + "parameters": [ + { + "id": 10470, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 10471, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10472, + "name": "toHaveDocPropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10473, + "name": "toHaveDocPropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc property contains the expected value." + } + ] + }, + "parameters": [ + { + "id": 10474, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 10475, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10476, + "name": "toHaveDocPropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10477, + "name": "toHaveDocPropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc property matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 10478, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 10479, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10480, + "name": "toHaveDocPropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10481, + "name": "toHaveDocPropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc property satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10482, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 10483, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10484, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10485, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10486, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10451, + "name": "toHaveDocSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10452, + "name": "toHaveDocSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10453, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the doc and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10454, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10455, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10456, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 10438, + "name": "_T", + "package": "@probitas-test/expect", + "qualifiedName": "MongoFindOneResultExpectation._T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10448, + "name": "toHaveDocStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10449, + "name": "toHaveDocStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10450, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected doc value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10461, + "name": "toHaveDocUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10462, + "name": "toHaveDocUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the doc is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10487, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10488, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10489, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10516, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10517, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10518, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10519, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10490, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10491, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10492, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10504, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10505, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10506, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10507, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10508, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10509, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10510, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10511, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10512, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10513, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10514, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10515, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10502, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10503, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10496, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10497, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10498, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10499, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10500, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10501, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10493, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10494, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10495, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ], + "typeParameters": [ + { + "id": 10438, + "name": "_T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + }, + { + "id": 7683, + "name": "MongoFindOneResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "FindOne result with connection failure." + } + ] + }, + "children": [ + { + "id": 7688, + "name": "doc", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.doc", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7690, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.duration" + } + }, + { + "id": 7687, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 10905, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.error" + } + }, + { + "id": 7689, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:find-one" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.kind" + } + }, + { + "id": 7686, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.ok" + } + }, + { + "id": 7685, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 7684, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 7471, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoFindOneResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7684, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindOneResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7667, + "name": "MongoFindOneResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful findOne result." + } + ] + }, + "children": [ + { + "id": 7672, + "name": "doc", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 7668, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindOneResultSuccess.T", + "refersToTypeParameter": true + }, + { + "type": "literal", + "value": null + } + ] + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.doc", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7674, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.duration" + } + }, + { + "id": 7671, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.error" + } + }, + { + "id": 7673, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:find-one" + }, + "inheritedFrom": { + "type": "reference", + "target": 7681, + "name": "MongoFindOneResultBase.kind", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7670, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.ok" + } + }, + { + "id": 7669, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindOneResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 7668, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 7471, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoFindOneResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7668, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindOneResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7475, + "name": "MongoFindOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB find options" + } + ] + }, + "children": [ + { + "id": 7477, + "name": "limit", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 7479, + "name": "projection", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "union", + "types": [ + { + "type": "literal", + "value": 0 + }, + { + "type": "literal", + "value": 1 + } + ] + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 7483, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" + }, + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 7462, + "name": "MongoOptions.retry" + } + }, + { + "id": 7482, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "typeParams": [] + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 7461, + "name": "MongoOptions.signal" + } + }, + { + "id": 7478, + "name": "skip", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 7476, + "name": "sort", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "union", + "types": [ + { + "type": "literal", + "value": -1 + }, + { + "type": "literal", + "value": 1 + } + ] + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 7480, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 7459, + "name": "MongoOptions.throwOnError" + } + }, + { + "id": 7481, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7460, + "name": "MongoOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7458, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7651, + "name": "MongoFindResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find result with MongoDB error." + } + ] + }, + "children": [ + { + "id": 7656, + "name": "docs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 7652, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindResultError.T", + "refersToTypeParameter": true + } + } + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.docs", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7658, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.duration" + } + }, + { + "id": 7655, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.error" + } + }, + { + "id": 7657, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:find" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.kind" + } + }, + { + "id": 7654, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.ok" + } + }, + { + "id": 7653, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 7652, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 7471, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoFindResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7652, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindResultError.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 10520, + "name": "MongoFindResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fluent API for MongoDB find result validation." + } + ] + }, + "children": [ + { + "id": 10522, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { MongoFindResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoFindResult } from \"./find.ts\";\nconst result = {\n kind: \"mongo:find\",\n ok: true,\n docs: [{ name: \"Alice\" }],\n duration: 0,\n} as unknown as MongoFindResult;\n\nexpectMongoFindResult(result).not.toHaveDocsEmpty();\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 10520, + "typeArguments": [ + { + "type": "reference", + "target": 10521, + "name": "_T", + "package": "@probitas-test/expect", + "qualifiedName": "MongoFindResultExpectation._T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 10523, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10524, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the find result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10525, + "name": "toHaveDocs", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10526, + "name": "toHaveDocs", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 10527, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected docs value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10540, + "name": "toHaveDocsContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10541, + "name": "toHaveDocsContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs array contains the specified item." + } + ] + }, + "parameters": [ + { + "id": 10542, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10543, + "name": "toHaveDocsContainingEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10544, + "name": "toHaveDocsContainingEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs array contains an item equal to the specified value." + } + ] + }, + "parameters": [ + { + "id": 10545, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for using deep equality" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10551, + "name": "toHaveDocsCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10552, + "name": "toHaveDocsCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs count equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10553, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected docs count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10580, + "name": "toHaveDocsCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10581, + "name": "toHaveDocsCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs count is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10582, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10583, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10554, + "name": "toHaveDocsCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10555, + "name": "toHaveDocsCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs count equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10556, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected docs count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10568, + "name": "toHaveDocsCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10569, + "name": "toHaveDocsCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs count is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10570, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10571, + "name": "toHaveDocsCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10572, + "name": "toHaveDocsCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10573, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10574, + "name": "toHaveDocsCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10575, + "name": "toHaveDocsCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs count is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10576, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10577, + "name": "toHaveDocsCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10578, + "name": "toHaveDocsCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs count is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10579, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10566, + "name": "toHaveDocsCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10567, + "name": "toHaveDocsCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs count is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10560, + "name": "toHaveDocsCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10561, + "name": "toHaveDocsCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs count satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10562, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the docs count and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10563, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10564, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10565, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10557, + "name": "toHaveDocsCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10558, + "name": "toHaveDocsCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs count strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10559, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected docs count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10549, + "name": "toHaveDocsEmpty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10550, + "name": "toHaveDocsEmpty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs array is empty." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10528, + "name": "toHaveDocsEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10529, + "name": "toHaveDocsEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs equal the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10530, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected docs value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10546, + "name": "toHaveDocsMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10547, + "name": "toHaveDocsMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs array matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 10548, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10534, + "name": "toHaveDocsSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10535, + "name": "toHaveDocsSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs satisfy the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10536, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the docs and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10537, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10538, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10539, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 10521, + "name": "_T", + "package": "@probitas-test/expect", + "qualifiedName": "MongoFindResultExpectation._T", + "refersToTypeParameter": true + } + } + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10531, + "name": "toHaveDocsStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10532, + "name": "toHaveDocsStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the docs strictly equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 10533, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected docs value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10584, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10585, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10586, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10613, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10614, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10615, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10616, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10587, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10588, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10589, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10601, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10602, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10603, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10604, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10605, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10606, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10607, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10608, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10609, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10610, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10611, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10612, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10599, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10600, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10593, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10594, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10595, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10596, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10597, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10598, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10590, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10591, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10592, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ], + "typeParameters": [ + { + "id": 10521, + "name": "_T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + }, + { + "id": 7659, + "name": "MongoFindResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find result with connection failure." + } + ] + }, + "children": [ + { + "id": 7664, + "name": "docs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.docs", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7666, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.duration" + } + }, + { + "id": 7663, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 10905, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.error" + } + }, + { + "id": 7665, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:find" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.kind" + } + }, + { + "id": 7662, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.ok" + } + }, + { + "id": 7661, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 7660, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 7471, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoFindResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7660, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7643, + "name": "MongoFindResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful find result." + } + ] + }, + "children": [ + { + "id": 7648, + "name": "docs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 7644, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindResultSuccess.T", + "refersToTypeParameter": true + } + } + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.docs", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7650, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.duration" + } + }, + { + "id": 7647, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.error" + } + }, + { + "id": 7649, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:find" + }, + "inheritedFrom": { + "type": "reference", + "target": 7657, + "name": "MongoFindResultBase.kind", + "package": "@probitas-test/client-mongodb" + } + }, + { + "id": 7646, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 7645, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoFindResultBase.processed" + } + } + ], + "typeParameters": [ + { + "id": 7644, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 7471, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoFindResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7644, + "name": "T", + "package": "@probitas-test/client-mongodb", + "qualifiedName": "MongoFindResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "MongoFindResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "ConnectRpcClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 79, - "col": 0, - "byteIndex": 1846 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration for creating a ConnectRPC client." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 7720, + "name": "MongoInsertManyResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "kind": "text", + "text": "InsertMany result with MongoDB error." } - ], - "constructors": [], - "methods": [], - "properties": [ + ] + }, + "children": [ + { + "id": 7727, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.duration" + } + }, + { + "id": 7723, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.error" + } + }, + { + "id": 7725, + "name": "insertedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedCount" + } + }, + { + "id": 7724, + "name": "insertedIds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedIds" + } + }, + { + "id": 7726, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:insert-many" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.kind" + } + }, + { + "id": 7722, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.ok" + } + }, + { + "id": 7721, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoInsertManyResultBase" + }, + "name": "MongoInsertManyResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 10617, + "name": "MongoInsertManyResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "url", - "jsDoc": { - "doc": "Server URL for ConnectRPC connections.\n\nCan be a URL string or a connection configuration object.\n", - "tags": [ + "kind": "text", + "text": "Fluent API for MongoDB insertMany result validation." + } + ] + }, + "children": [ + { + "id": 10618, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { MongoInsertManyResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoInsertManyResult } from \"./insert_many.ts\";\nconst result = {\n kind: \"mongo:insert-many\",\n ok: true,\n insertedIds: [\"1\", \"2\", \"3\"],\n insertedCount: 3,\n duration: 0,\n} as unknown as MongoInsertManyResult;\n\nexpectMongoInsertManyResult(result).not.toHaveInsertedCount(0);\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 10617, + "name": "MongoInsertManyResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 10619, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10620, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the insert result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10680, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10681, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10682, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10709, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10710, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "example", - "doc": "String URL\n```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = { url: \"http://localhost:50051\" };\n```\n" + "id": 10711, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "example", - "doc": "Connection config object\n```ts\nimport type { ConnectRpcClientConfig } from \"@probitas-test/client-connectrpc\";\nconst config: ConnectRpcClientConfig = {\n url: { host: \"grpc.example.com\", port: 443, protocol: \"https\" },\n};\n```" + "id": 10712, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 99, - "col": 2, - "byteIndex": 2525 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10683, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10684, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10685, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10697, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10698, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10699, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10700, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10701, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10702, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10703, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10704, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10705, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10706, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10707, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10708, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10695, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10696, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10689, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10690, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10691, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10692, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10693, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10694, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10686, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10687, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10688, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10647, + "name": "toHaveInsertedCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10648, + "name": "toHaveInsertedCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted count equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10649, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected inserted count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10676, + "name": "toHaveInsertedCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10677, + "name": "toHaveInsertedCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted count is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10678, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "repr": "ConnectRpcConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcConnectionConfig" + "id": 10679, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10650, + "name": "toHaveInsertedCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10651, + "name": "toHaveInsertedCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted count equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10652, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected inserted count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10664, + "name": "toHaveInsertedCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10665, + "name": "toHaveInsertedCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted count is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10666, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10667, + "name": "toHaveInsertedCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10668, + "name": "toHaveInsertedCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10669, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10670, + "name": "toHaveInsertedCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10671, + "name": "toHaveInsertedCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted count is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10672, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10673, + "name": "toHaveInsertedCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10674, + "name": "toHaveInsertedCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted count is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10675, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10662, + "name": "toHaveInsertedCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10663, + "name": "toHaveInsertedCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted count is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10656, + "name": "toHaveInsertedCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10657, + "name": "toHaveInsertedCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted count satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10658, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the inserted count and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10659, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10660, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10661, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10653, + "name": "toHaveInsertedCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10654, + "name": "toHaveInsertedCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted count strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10655, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected inserted count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10621, + "name": "toHaveInsertedIds", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10622, + "name": "toHaveInsertedIds", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted IDs equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 10623, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected inserted IDs" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } - ] - }, - "typeParams": [] - }, - { - "name": "protocol", - "jsDoc": { - "doc": "Protocol to use.", - "tags": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10636, + "name": "toHaveInsertedIdsContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10637, + "name": "toHaveInsertedIdsContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted IDs array contains the specified item." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"grpc\"" + "id": 10638, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 105, - "col": 2, - "byteIndex": 2634 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "ConnectProtocol", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectProtocol" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "httpVersion", - "jsDoc": { - "doc": "HTTP version to use.", - "tags": [ + } + ] + }, + { + "id": 10639, + "name": "toHaveInsertedIdsContainingEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10640, + "name": "toHaveInsertedIdsContainingEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted IDs array contains an item equal to the specified value." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"2\"" + "id": 10641, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for using deep equality" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 111, - "col": 2, - "byteIndex": 2730 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HttpVersion", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpVersion" - } - }, - "typeParams": [] - }, - { - "name": "tls", - "jsDoc": { - "doc": "TLS configuration. If not provided, uses insecure credentials." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 114, - "col": 2, - "byteIndex": 2841 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "TlsConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TlsConfig" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "metadata", - "jsDoc": { - "doc": "Default metadata to send with every request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 117, - "col": 2, - "byteIndex": 2924 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" + } + ] + }, + { + "id": 10645, + "name": "toHaveInsertedIdsEmpty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10646, + "name": "toHaveInsertedIdsEmpty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted IDs array is empty." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "schema", - "jsDoc": { - "doc": "Schema resolution configuration.\n- \"reflection\": Use Server Reflection to discover services dynamically (default)\n- string: Path to FileDescriptorSet binary file (from `buf build --output set.binpb`)\n- Uint8Array: FileDescriptorSet binary data\n- FileDescriptorSet: Pre-parsed FileDescriptorSet message object", - "tags": [ - { - "kind": "unsupported", - "value": "@default \"reflection\"" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 127, - "col": 2, - "byteIndex": 3333 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "reflection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "reflection" + } + ] + }, + { + "id": 10624, + "name": "toHaveInsertedIdsEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10625, + "name": "toHaveInsertedIdsEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted IDs equal the expected value using deep equality." } - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ] + }, + "parameters": [ { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + "id": 10626, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected inserted IDs" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } - }, + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10642, + "name": "toHaveInsertedIdsMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10643, + "name": "toHaveInsertedIdsMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted IDs array matches the specified subset." + } + ] + }, + "parameters": [ { - "repr": "FileDescriptorSet", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "FileDescriptorSet" + "id": 10644, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] } } - ] - }, - "typeParams": [] - }, - { - "name": "useBinaryFormat", - "jsDoc": { - "doc": "Whether to use binary format for messages.", - "tags": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10630, + "name": "toHaveInsertedIdsSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10631, + "name": "toHaveInsertedIdsSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted IDs satisfy the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default true" + "id": 10632, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the inserted IDs and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10633, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10634, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10635, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 133, - "col": 2, - "byteIndex": 3489 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nCan be overridden per-request via ConnectRpcOptions.throwOnError.", - "tags": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10627, + "name": "toHaveInsertedIdsStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10628, + "name": "toHaveInsertedIdsStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted IDs strictly equal the expected value." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default false" + "id": 10629, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected inserted IDs" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 140, - "col": 2, - "byteIndex": 3715 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] }, { - "name": "ConnectRpcOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 146, - "col": 0, - "byteIndex": 3803 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual ConnectRPC calls." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 7728, + "name": "MongoInsertManyResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "kind": "text", + "text": "InsertMany result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "metadata", - "jsDoc": { - "doc": "Metadata to send with the request." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 148, - "col": 2, - "byteIndex": 3908 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "HeadersInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HeadersInit" + ] + }, + "children": [ + { + "id": 7735, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw ConnectRpcError on non-OK responses (code !== 0) or failures.\nOverrides ConnectRpcClientConfig.throwOnError.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 155, - "col": 2, - "byteIndex": 4160 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.duration" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ServiceInfo", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 161, - "col": 0, - "byteIndex": 4244 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Service information from reflection." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "name", - "jsDoc": { - "doc": "Fully qualified service name (e.g., \"echo.EchoService\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 163, - "col": 2, - "byteIndex": 4342 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 7731, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] }, - { - "name": "file", - "jsDoc": { - "doc": "Proto file name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 165, - "col": 2, - "byteIndex": 4392 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 10905, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.error" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MethodInfo", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 171, - "col": 0, - "byteIndex": 4465 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Method information from reflection." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "name", - "jsDoc": { - "doc": "Method name (e.g., \"Echo\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 173, - "col": 2, - "byteIndex": 4533 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 7733, + "name": "insertedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedCount" + } + }, + { + "id": 7732, + "name": "insertedIds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedIds" + } + }, + { + "id": 7734, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "localName", - "jsDoc": { - "doc": "Local name (camelCase)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 175, - "col": 2, - "byteIndex": 4590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "mongo:insert-many" }, - { - "name": "kind", - "jsDoc": { - "doc": "Method kind" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 177, - "col": 2, - "byteIndex": 4641 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "unary", - "kind": "literal", - "literal": { - "kind": "string", - "string": "unary" - } - }, - { - "repr": "server_streaming", - "kind": "literal", - "literal": { - "kind": "string", - "string": "server_streaming" - } - }, - { - "repr": "client_streaming", - "kind": "literal", - "literal": { - "kind": "string", - "string": "client_streaming" - } - }, - { - "repr": "bidi_streaming", - "kind": "literal", - "literal": { - "kind": "string", - "string": "bidi_streaming" - } - } - ] - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.kind" + } + }, + { + "id": 7730, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "inputType", - "jsDoc": { - "doc": "Input message type name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 183, - "col": 2, - "byteIndex": 4779 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "outputType", - "jsDoc": { - "doc": "Output message type name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 185, - "col": 2, - "byteIndex": 4843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.ok" + } + }, + { + "id": 7729, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] }, - { - "name": "idempotent", - "jsDoc": { - "doc": "Whether the method is idempotent" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 187, - "col": 2, - "byteIndex": 4916 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoInsertManyResultBase" + }, + "name": "MongoInsertManyResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "ServiceDetail", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 193, - "col": 0, - "byteIndex": 4990 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Detailed service information." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "name", - "jsDoc": { - "doc": "Service name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 195, - "col": 2, - "byteIndex": 5047 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, + "id": 7712, + "name": "MongoInsertManyResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "fullName", - "jsDoc": { - "doc": "Fully qualified service name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 197, - "col": 2, - "byteIndex": 5110 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "Successful insertMany result." + } + ] + }, + "children": [ + { + "id": 7719, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "packageName", - "jsDoc": { - "doc": "Package name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 199, - "col": 2, - "byteIndex": 5161 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] }, - { - "name": "protoFile", - "jsDoc": { - "doc": "Proto file name" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 201, - "col": 2, - "byteIndex": 5218 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "methods", - "jsDoc": { - "doc": "All methods" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 203, - "col": 2, - "byteIndex": 5269 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "MethodInfo", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MethodInfo" - } - } - } - } - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.duration" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcStatus", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 13, - "col": 13, - "byteIndex": 317 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC/gRPC status codes.\nThese codes are used by both gRPC and ConnectRPC protocols." - }, - "kind": "variable", - "variableDef": { - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "OK", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 14, - "col": 2, - "byteIndex": 340 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + }, + { + "id": 7715, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "name": "CANCELLED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 15, - "col": 2, - "byteIndex": 349 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`ok`" }, { - "name": "UNKNOWN", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 16, - "col": 2, - "byteIndex": 365 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": " is " }, { - "name": "INVALID_ARGUMENT", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 17, - "col": 2, - "byteIndex": 379 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`false`" }, { - "name": "DEADLINE_EXCEEDED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 18, - "col": 2, - "byteIndex": 402 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.error" + } + }, + { + "id": 7717, + "name": "insertedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedCount" + } + }, + { + "id": 7716, + "name": "insertedIds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.insertedIds" + } + }, + { + "id": 7718, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " }, { - "name": "NOT_FOUND", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 19, - "col": 2, - "byteIndex": 426 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`kind`" }, { - "name": "ALREADY_EXISTS", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 20, - "col": 2, - "byteIndex": 442 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": " property is typed as " }, { - "name": "PERMISSION_DENIED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 21, - "col": 2, - "byteIndex": 463 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`string`" }, { - "name": "RESOURCE_EXHAUSTED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 22, - "col": 2, - "byteIndex": 487 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " }, { - "name": "FAILED_PRECONDITION", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 23, - "col": 2, - "byteIndex": 512 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`as const`" }, { - "name": "ABORTED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 24, - "col": 2, - "byteIndex": 538 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:insert-many" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.kind" + } + }, + { + "id": 7714, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "name": "OUT_OF_RANGE", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 25, - "col": 2, - "byteIndex": 553 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`false`" }, { - "name": "UNIMPLEMENTED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 26, - "col": 2, - "byteIndex": 573 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": " when " }, { - "name": "INTERNAL", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 27, - "col": 2, - "byteIndex": 594 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`processed`" }, { - "name": "UNAVAILABLE", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 28, - "col": 2, - "byteIndex": 610 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": " is " }, { - "name": "DATA_LOSS", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 29, - "col": 2, - "byteIndex": 629 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "code", + "text": "`false`" }, { - "name": "UNAUTHENTICATED", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 30, - "col": 2, - "byteIndex": 646 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "." } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.ok" } }, - "kind": "const" - } + { + "id": 7713, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertManyResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoInsertManyResultBase" + }, + "name": "MongoInsertManyResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "ConnectRpcStatusCode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 37, - "col": 0, - "byteIndex": 766 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC/gRPC status code type.\nDerived from ConnectRpcStatus values." + "id": 7698, + "name": "MongoInsertOneResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "InsertOne result with MongoDB error." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "indexedAccess", - "indexedAccess": { - "readonly": false, - "objType": { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "ConnectRpcStatus", - "kind": "typeQuery", - "typeQuery": "ConnectRpcStatus" + "children": [ + { + "id": 7704, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "indexType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "keyof", - "tsType": { - "repr": "ConnectRpcStatus", - "kind": "typeQuery", - "typeQuery": "ConnectRpcStatus" - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.duration" + } + }, + { + "id": 7701, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - } + ] + }, + "type": { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.error" + } + }, + { + "id": 7702, + "name": "insertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.insertedId" + } + }, + { + "id": 7703, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:insert-one" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.kind" + } + }, + { + "id": 7700, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.ok" } }, - "typeParams": [] - } - }, - { - "name": "getStatusName", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 58, - "col": 0, - "byteIndex": 1349 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Get the name of a ConnectRPC/gRPC status code.\n", - "tags": [ - { - "kind": "example", - "doc": "```typescript\ngetStatusName(0); // \"OK\"\ngetStatusName(5); // \"NOT_FOUND\"\ngetStatusName(16); // \"UNAUTHENTICATED\"\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "code", - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + { + "id": 7699, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.processed" } - ], - "returnType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoInsertOneResultBase" + }, + "name": "MongoInsertOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "isConnectRpcStatusCode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 72, - "col": 0, - "byteIndex": 1677 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if a number is a valid ConnectRPC/gRPC status code.\n", - "tags": [ + "id": 10713, + "name": "MongoInsertOneResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```typescript\nisConnectRpcStatusCode(0); // true\nisConnectRpcStatusCode(16); // true\nisConnectRpcStatusCode(99); // false\n```" + "kind": "text", + "text": "Fluent API for MongoDB insertOne result validation." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "code", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "children": [ + { + "id": 10714, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { MongoInsertOneResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoInsertOneResult } from \"./insert_one.ts\";\nconst result = {\n kind: \"mongo:insert-one\",\n ok: false,\n insertedId: \"123\",\n duration: 0,\n} as unknown as MongoInsertOneResult;\n\nexpectMongoInsertOneResult(result).not.toBeOk();\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 10713, + "name": "MongoInsertOneResultExpectation", + "package": "@probitas-test/expect" } - ], - "returnType": { - "repr": "code is ConnectRpcStatusCode", - "kind": "typePredicate", - "typePredicate": { - "asserts": false, - "param": { - "type": "identifier", - "name": "code" - }, - "type": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + }, + { + "id": 10715, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10716, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the insert result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "ConnectRpcNetworkError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 22, - "col": 0, - "byteIndex": 599 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a network-level failure occurs.\n\nThis error indicates that the request could not be processed by the server\ndue to network issues (connection refused, DNS resolution failure, timeout, etc.).\nUnlike ConnectRpcError, this error means the server was never reached." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + { + "id": 10738, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10739, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" + "parameters": [ + { + "id": 10740, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 26, - "col": 2, - "byteIndex": 771 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 23, - "col": 2, - "byteIndex": 659 - } - }, - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 24, - "col": 2, - "byteIndex": 720 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "ErrorDetail", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 37, - "col": 0, - "byteIndex": 1091 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Rich error detail from google.rpc.Status.\n\nConnectRPC errors can include structured details encoded in error responses.\nThese details follow the google.protobuf.Any format with a type URL and value." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "typeUrl", - "jsDoc": { - "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.7.1/errors.ts", - "line": 46, - "col": 2, - "byteIndex": 1416 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "value", - "jsDoc": { - "doc": "Decoded error detail value.\nThe structure depends on the typeUrl." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 52, - "col": 2, - "byteIndex": 1533 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 58, - "col": 0, - "byteIndex": 1614 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for ConnectRpcError construction." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "metadata", - "jsDoc": { - "doc": "Headers/metadata from the ConnectRPC response." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 62, - "col": 2, - "byteIndex": 1743 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + ] + }, + { + "id": 10767, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10768, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." } - }, + ] + }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "details", - "jsDoc": { - "doc": "Rich error details from google.rpc.Status." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 67, - "col": 2, - "byteIndex": 1842 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ErrorDetail", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorDetail" - } + "id": 10769, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 10770, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 75, - "col": 0, - "byteIndex": 2020 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error class for ConnectRPC/gRPC errors.\n\nUse `statusCode` to distinguish between different gRPC error codes." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10741, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10742, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10743, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10755, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10756, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] }, - { - "kind": "identifier", - "name": "statusCode", - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + "parameters": [ + { + "id": 10757, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10758, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10759, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] }, - { - "kind": "identifier", - "name": "statusMessage", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "parameters": [ + { + "id": 10760, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10761, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10762, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcErrorOptions" + "parameters": [ + { + "id": 10763, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 83, - "col": 2, - "byteIndex": 2338 } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 2073 - } - }, - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" + ] + }, + { + "id": 10764, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10765, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10766, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 77, - "col": 2, - "byteIndex": 2127 - } - }, - { - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" + } + ] + }, + { + "id": 10753, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10754, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusCode", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 78, - "col": 2, - "byteIndex": 2177 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusMessage", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 79, - "col": 2, - "byteIndex": 2222 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + } + ] + }, + { + "id": 10747, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10748, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." } - }, + ] + }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "metadata", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 80, - "col": 2, - "byteIndex": 2256 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ErrorDetail", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorDetail" + "id": 10749, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10750, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10751, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10752, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "details", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 81, - "col": 2, - "byteIndex": 2293 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "fromConnectError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 104, - "col": 0, - "byteIndex": 2943 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Convert ConnectRPC's ConnectError to ConnectRpcError.\n", - "tags": [ - { - "kind": "param", - "name": "error", - "doc": "- The ConnectError from @connectrpc/connect" - }, - { - "kind": "param", - "name": "metadata", - "doc": "- Optional metadata from the response" - }, - { - "kind": "return", - "doc": "ConnectRpcError with statusCode for discrimination" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "ConnectError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectError" + ] + }, + { + "id": 10744, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10745, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10746, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } - }, - { - "kind": "identifier", - "name": "metadata", - "optional": true, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + ] + }, + { + "id": 10717, + "name": "toHaveInsertedId", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10718, + "name": "toHaveInsertedId", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted ID equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10719, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected inserted ID" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } - } - ], - "returnType": { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "ConnectRpcFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 134, - "col": 0, - "byteIndex": 3938 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ConnectRpcNetworkError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcNetworkError" - } - }, + ] + }, + { + "id": 10732, + "name": "toHaveInsertedIdContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + "id": 10733, + "name": "toHaveInsertedIdContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted ID contains the specified substring." + } + ] + }, + "parameters": [ + { + "id": 10734, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 10720, + "name": "toHaveInsertedIdEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + "id": 10721, + "name": "toHaveInsertedIdEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted ID equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10722, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected inserted ID" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "ConnectRpcErrorType", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 28, - "col": 0, - "byteIndex": 807 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC error type union.\n\nContains either:\n- ConnectRpcError: gRPC error returned by the server\n- ConnectRpcNetworkError: Network-level failure before reaching the server" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" - } - }, + { + "id": 10735, + "name": "toHaveInsertedIdMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "ConnectRpcNetworkError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcNetworkError" + "id": 10736, + "name": "toHaveInsertedIdMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted ID matches the specified regular expression." + } + ] + }, + "parameters": [ + { + "id": 10737, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "ConnectRpcResponseSuccessParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 241, - "col": 0, - "byteIndex": 7234 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a successful ConnectRpcResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "response", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 242, - "col": 2, - "byteIndex": 7296 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + { + "id": 10726, + "name": "toHaveInsertedIdSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10727, + "name": "toHaveInsertedIdSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted ID satisfies the provided matcher function." } - }, + ] + }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 10728, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the inserted ID and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10729, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10730, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10731, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } - ] - }, - "typeParams": [] - }, - { - "name": "schema", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 243, - "col": 2, - "byteIndex": 7327 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "DescMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DescMessage" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10723, + "name": "toHaveInsertedIdStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10724, + "name": "toHaveInsertedIdStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the inserted ID strictly equals the expected value." } - }, + ] + }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 10725, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected inserted ID" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "typeParams": [] - }, + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 7705, + "name": "MongoInsertOneResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 244, - "col": 2, - "byteIndex": 7366 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "kind": "text", + "text": "InsertOne result with connection failure." + } + ] + }, + "children": [ + { + "id": 7711, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.duration" + } + }, + { + "id": 7708, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 10905, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.error" + } + }, + { + "id": 7709, + "name": "insertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.insertedId" + } + }, + { + "id": 7710, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "mongo:insert-one" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.kind" + } + }, + { + "id": 7707, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "trailers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 245, - "col": 2, - "byteIndex": 7395 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.ok" + } + }, + { + "id": 7706, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 246, - "col": 2, - "byteIndex": 7425 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoInsertOneResultBase" + }, + "name": "MongoInsertOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7691, + "name": "MongoInsertOneResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "Successful insertOne result." } ] - } - }, - { - "name": "ConnectRpcResponseErrorParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 252, - "col": 0, - "byteIndex": 7519 }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating an error ConnectRpcResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 253, - "col": 2, - "byteIndex": 7570 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectError" + "children": [ + { + "id": 7697, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "rpcError", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 254, - "col": 2, - "byteIndex": 7602 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.duration" + } + }, + { + "id": 7694, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 255, - "col": 2, - "byteIndex": 7640 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.error" + } + }, + { + "id": 7695, + "name": "insertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.insertedId" + } + }, + { + "id": 7696, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "trailers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 256, - "col": 2, - "byteIndex": 7669 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "type": { + "type": "literal", + "value": "mongo:insert-one" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.kind" + } + }, + { + "id": 7693, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 257, - "col": 2, - "byteIndex": 7699 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ConnectRpcResponseFailureParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 263, - "col": 0, - "byteIndex": 7794 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a failure ConnectRpcResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 264, - "col": 2, - "byteIndex": 7847 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcFailureError" + }, + { + "id": 7692, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 265, - "col": 2, - "byteIndex": 7889 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoInsertOneResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoInsertOneResultBase" + }, + "name": "MongoInsertOneResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "ConnectRpcResponseSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 272, - "col": 0, - "byteIndex": 7988 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of ConnectRpcResponseSuccess.", - "tags": [ + "id": 7458, + "name": "MongoOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Common options with throwOnError support." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "ConnectRpcResponseSuccessParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseSuccessParams" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 286, - "col": 2, - "byteIndex": 8432 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 274, - "col": 2, - "byteIndex": 8080 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 275, - "col": 2, - "byteIndex": 8121 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 276, - "col": 2, - "byteIndex": 8159 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 277, - "col": 2, - "byteIndex": 8190 - } - }, - { - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusCode", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 278, - "col": 2, - "byteIndex": 8215 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusMessage", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 279, - "col": 2, - "byteIndex": 8251 - } - }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "children": [ + { + "id": 7462, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 280, - "col": 2, - "byteIndex": 8284 - } - }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 7461, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "trailers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 281, - "col": 2, - "byteIndex": 8313 - } - }, - { - "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-connectrpc/0.7.1/response.ts", - "line": 282, - "col": 2, - "byteIndex": 8343 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 283, - "col": 2, - "byteIndex": 8372 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 284, - "col": 2, - "byteIndex": 8399 - } + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "ConnectRpcResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + }, + { + "id": 7459, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - } - ], - "typeName": "ConnectRpcResponseSuccess" - } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "typeParams": [ - { - "name": "T" + }, + { + "id": 7460, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 7475, + "name": "MongoFindOptions" + }, + { + "type": "reference", + "target": 7484, + "name": "MongoUpdateOptions" + }, + { + "type": "reference", + "target": 7490, + "name": "MongoClientConfig" + } + ] }, { - "name": "ConnectRpcResponseErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 318, - "col": 0, - "byteIndex": 9451 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of ConnectRpcResponseError.", - "tags": [ + "id": 7497, + "name": "MongoSession", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "MongoDB session interface (for transactions)" } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "ConnectRpcResponseErrorParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponseErrorParams" + "children": [ + { + "id": 7498, + "name": "collection", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7499, + "name": "collection", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 7500, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 7471, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Document", + "package": "@probitas-test/client-mongodb" + }, + "default": { + "type": "reference", + "target": 7471, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Document", + "package": "@probitas-test/client-mongodb" } } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 332, - "col": 2, - "byteIndex": 9907 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 320, - "col": 2, - "byteIndex": 9539 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 321, - "col": 2, - "byteIndex": 9580 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 322, - "col": 2, - "byteIndex": 9618 - } - }, - { - "tsType": { - "repr": "ConnectRpcError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 323, - "col": 2, - "byteIndex": 9650 - } - }, - { - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusCode", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 324, - "col": 2, - "byteIndex": 9685 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusMessage", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 325, - "col": 2, - "byteIndex": 9730 - } - }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 326, - "col": 2, - "byteIndex": 9764 - } - }, - { - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "trailers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 327, - "col": 2, - "byteIndex": 9793 - } - }, - { - "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-connectrpc/0.7.1/response.ts", - "line": 328, - "col": 2, - "byteIndex": 9823 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 329, - "col": 2, - "byteIndex": 9852 - } - }, - { - "tsType": { - "repr": "ConnectError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 330, - "col": 2, - "byteIndex": 9876 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "ConnectRpcResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 7501, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } } ], - "typeName": "ConnectRpcResponseError" + "type": { + "type": "reference", + "target": 7502, + "typeArguments": [ + { + "type": "reference", + "target": 7500, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true + } + ], + "name": "MongoCollection", + "package": "@probitas-test/client-mongodb" + } } - } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } + ] + } + ] }, { - "name": "ConnectRpcResponseFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 347, - "col": 0, - "byteIndex": 10314 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of ConnectRpcResponseFailure.", - "tags": [ + "id": 7484, + "name": "MongoUpdateOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "MongoDB update options" } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 7489, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "ConnectRpcResponseFailureParams", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponseFailureParams" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 361, - "col": 2, - "byteIndex": 10755 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 349, - "col": 2, - "byteIndex": 10406 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 350, - "col": 2, - "byteIndex": 10447 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 351, - "col": 2, - "byteIndex": 10486 - } - }, - { - "tsType": { - "repr": "ConnectRpcFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcFailureError" + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 352, - "col": 2, - "byteIndex": 10518 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusCode", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 353, - "col": 2, - "byteIndex": 10560 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "statusMessage", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 354, - "col": 2, - "byteIndex": 10590 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 355, - "col": 2, - "byteIndex": 10623 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "trailers", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 356, - "col": 2, - "byteIndex": 10650 - } - }, - { - "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-connectrpc/0.7.1/response.ts", - "line": 357, - "col": 2, - "byteIndex": 10678 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "data", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 358, - "col": 2, - "byteIndex": 10707 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "raw", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 359, - "col": 2, - "byteIndex": 10731 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "ConnectRpcResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseFailure" - } - } - ], - "typeParams": [ - { - "name": "T" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 7462, + "name": "MongoOptions.retry" } - ], - "superTypeParams": [] - } - }, - { - "name": "ReflectionApi", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 78, - "col": 0, - "byteIndex": 2014 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Reflection API for ConnectRPC client.\nOnly available when client is created with schema: \"reflection\"." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "listServices", - "jsDoc": { - "doc": "List all available services on the server.", - "tags": [ - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 88, - "col": 2, - "byteIndex": 2236 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "array", - "array": { - "repr": "ServiceInfo", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ServiceInfo" - } - } - } - ], - "typeName": "Promise" + }, + { + "id": 7488, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "typeParams": [] + ] }, - { - "name": "getServiceInfo", - "jsDoc": { - "doc": "Get detailed information about a specific service.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Fully qualified service name (e.g., \"echo.EchoService\")" - }, - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 95, - "col": 2, - "byteIndex": 2477 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ServiceDetail", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ServiceDetail" - } - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "typeParams": [] + "name": "AbortSignal", + "package": "typescript" }, - { - "name": "listMethods", - "jsDoc": { - "doc": "Get methods for a specific service.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Fully qualified service name" - }, - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 102, - "col": 2, - "byteIndex": 2697 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "array", - "array": { - "repr": "MethodInfo", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MethodInfo" - } - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 7461, + "name": "MongoOptions.signal" + } + }, + { + "id": 7486, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "hasService", - "jsDoc": { - "doc": "Check if a service exists.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Fully qualified service name" - }, - { - "kind": "throws", - "type": null, - "doc": "Error if reflection is not enabled" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 109, - "col": 2, - "byteIndex": 2904 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" + "kind": "code", + "text": "```ts\nfalse\n```" } - ], - "typeName": "Promise" + ] } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 7459, + "name": "MongoOptions.throwOnError" } - ], - "properties": [ - { - "name": "enabled", - "jsDoc": { - "doc": "Check if reflection is enabled." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 82, - "col": 2, - "byteIndex": 2098 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + }, + { + "id": 7487, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7460, + "name": "MongoOptions.timeout" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 7485, + "name": "upsert", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7458, + "name": "MongoOptions", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "ConnectRpcClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 141, - "col": 0, - "byteIndex": 4134 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC client interface.\n\n## Field Name Conventions\n\nThis client automatically handles field name conversion between protobuf and JavaScript:\n\n- **Request fields**: Accept both `snake_case` (protobuf style) and `camelCase` (JavaScript style)\n- **Response fields**: Converted to JavaScript conventions based on response type:\n - `response.data`: Plain JSON object with `camelCase` field names (no `$typeName`)\n - `response.raw`: Original protobuf Message object with all metadata (includes `$typeName`)\n", - "tags": [ + "id": 7745, + "name": "MongoUpdateResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nconst client = createConnectRpcClient({ url: \"http://localhost:50051\" });\n\n// Request: Both formats work\nawait client.call(\"echo.Echo\", \"echoWithDelay\", {\n message: \"hello\",\n delayMs: 100, // camelCase (recommended)\n // delay_ms: 100, // snake_case also works\n});\n\n// Response: data is JSON, raw is protobuf Message\nconst response = await client.call(\"echo.Echo\", \"echo\", { message: \"test\" });\nconsole.log(response.data); // { message: \"test\", metadata: {...} }\nconsole.log(response.raw); // { $typeName: \"echo.EchoResponse\", message: \"test\", ... }\n```" + "kind": "text", + "text": "Update result with MongoDB error." } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } - } - ], - "constructors": [], - "methods": [ - { - "name": "call", - "jsDoc": { - "doc": "Make a unary RPC call.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Service name (e.g., \"echo.EchoService\")" - }, - { - "kind": "param", - "name": "methodName", - "doc": "- Method name (e.g., \"echo\")" - }, - { - "kind": "param", - "name": "request", - "doc": "- Request message" - }, - { - "kind": "param", - "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 155, - "col": 2, - "byteIndex": 4607 - }, - "params": [ + "children": [ + { + "id": 7753, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.duration" + } + }, + { + "id": 7748, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "request", - "optional": false, - "tsType": { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" - } - } + "kind": "text", + "text": " is " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ + "kind": "code", + "text": "`false`" + }, { - "name": "TRequest" + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } ] }, - { - "name": "serverStream", - "jsDoc": { - "doc": "Make a server streaming RPC call.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Service name" - }, - { - "kind": "param", - "name": "methodName", - "doc": "- Method name" - }, - { - "kind": "param", - "name": "request", - "doc": "- Request message" - }, - { - "kind": "param", - "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 169, - "col": 2, - "byteIndex": 4965 - }, - "params": [ + "type": { + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.error" + } + }, + { + "id": 7752, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`kind`" }, { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " property is typed as " }, { - "kind": "identifier", - "name": "request", - "optional": false, - "tsType": { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" - } - } + "kind": "code", + "text": "`string`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } - } - ], - "typeName": "AsyncIterable" - } - }, - "typeParams": [ + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, { - "name": "TRequest" + "kind": "text", + "text": "." } ] }, - { - "name": "clientStream", - "jsDoc": { - "doc": "Make a client streaming RPC call.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Service name" - }, - { - "kind": "param", - "name": "methodName", - "doc": "- Method name" - }, - { - "kind": "param", - "name": "requests", - "doc": "- Async iterable of request messages" - }, - { - "kind": "param", - "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 183, - "col": 2, - "byteIndex": 5357 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "requests", - "optional": false, - "tsType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" - } - } - ], - "typeName": "AsyncIterable" - } - } + "type": { + "type": "literal", + "value": "mongo:update" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.kind" + } + }, + { + "id": 7749, + "name": "matchedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.matchedCount" + } + }, + { + "id": 7750, + "name": "modifiedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.modifiedCount" + } + }, + { + "id": 7747, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, { - "name": "TRequest" + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } ] }, - { - "name": "bidiStream", - "jsDoc": { - "doc": "Make a bidirectional streaming RPC call.", - "tags": [ - { - "kind": "param", - "name": "serviceName", - "doc": "- Service name" - }, - { - "kind": "param", - "name": "methodName", - "doc": "- Method name" - }, - { - "kind": "param", - "name": "requests", - "doc": "- Async iterable of request messages" - }, - { - "kind": "param", - "name": "options", - "doc": "- Call options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 197, - "col": 2, - "byteIndex": 5766 - }, - "params": [ - { - "kind": "identifier", - "name": "serviceName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "methodName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "requests", - "optional": false, - "tsType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "TRequest", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TRequest" - } - } - ], - "typeName": "AsyncIterable" - } - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.ok" + } + }, + { + "id": 7746, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ConnectRpcOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } - } - ], - "typeName": "AsyncIterable" - } - }, - "typeParams": [ + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, { - "name": "TRequest" + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } ] }, - { - "name": "close", - "jsDoc": { - "doc": "Close the client connection." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 207, - "col": 2, - "byteIndex": 5998 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "config", - "jsDoc": { - "doc": "Client configuration" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 143, - "col": 2, - "byteIndex": 4226 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClientConfig" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "reflection", - "jsDoc": { - "doc": "Reflection API (only available when schema: \"reflection\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 146, - "col": 2, - "byteIndex": 4337 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ReflectionApi", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ReflectionApi" - } - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 7751, + "name": "upsertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.upsertedId" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoUpdateResultBase" + }, + "name": "MongoUpdateResultBase", + "package": "@probitas-test/client-mongodb" + } + ] }, { - "name": "createConnectRpcClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 404, - "col": 0, - "byteIndex": 11349 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new ConnectRPC client instance.\n\nThe client supports multiple protocols (Connect, gRPC, gRPC-Web) and provides\nServer Reflection for runtime service discovery without compile-time code generation.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- Client configuration including server URL and protocol options" - }, - { - "kind": "return", - "doc": "A new ConnectRPC client instance\n" - }, - { - "kind": "example", - "doc": "Basic usage with reflection\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\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" - }, - { - "kind": "example", - "doc": "Service discovery with reflection\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\n url: \"http://localhost:50051\",\n});\n\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\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using different protocols\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\n// Connect protocol (HTTP/1.1 or HTTP/2)\nconst connectClient = createConnectRpcClient({\n url: \"http://localhost:8080\",\n protocol: \"connect\",\n});\n\n// gRPC protocol (HTTP/2 with binary protobuf)\nconst grpcClient = createConnectRpcClient({\n url: \"http://localhost:50051\",\n protocol: \"grpc\",\n});\n\n// gRPC-Web protocol (for browser compatibility)\nconst grpcWebClient = createConnectRpcClient({\n url: \"http://localhost:8080\",\n protocol: \"grpc-web\",\n});\n\nawait connectClient.close();\nawait grpcClient.close();\nawait grpcWebClient.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using connection config object\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\n url: {\n host: \"grpc.example.com\",\n port: 443,\n protocol: \"https\",\n },\n});\n\nawait client.close();\n```\n" - }, + "id": 10771, + "name": "MongoUpdateResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nawait using client = createConnectRpcClient({\n url: \"http://localhost:50051\",\n});\n\nconst res = await client.call(\"echo.EchoService\", \"echo\", { message: \"test\" });\n// Client automatically closed when scope exits\n```" + "kind": "text", + "text": "Fluent API for MongoDB update result validation." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "ConnectRpcClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClientConfig" - } - } - } - ], - "returnType": { - "repr": "ConnectRpcClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClient" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "GrpcResponseExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 21, - "col": 0, - "byteIndex": 579 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent expectation interface for gRPC responses." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the response is successful (code 0).\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { GrpcResponse } from \"@probitas-test/client-grpc\";\nimport { expectGrpcResponse } from \"./grpc.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"grpc\",\n ok: true,\n statusCode: 0,\n statusMessage: undefined,\n headers: mockHeaders,\n trailers: mockHeaders,\n data: { result: \"success\" },\n duration: 0,\n} as unknown as GrpcResponse;\n\nexpectGrpcResponse(response).toBeOk();\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 69, - "col": 2, - "byteIndex": 1866 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 10772, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveStatusCode", - "jsDoc": { - "doc": "Asserts that the code equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected code value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 75, - "col": 2, - "byteIndex": 1998 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Negates the next assertion." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeEqual", - "jsDoc": { - "doc": "Asserts that the code equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected code value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 81, - "col": 2, - "byteIndex": 2177 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { MongoUpdateResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoUpdateResult } from \"./update.ts\";\nconst result = {\n kind: \"mongo:update\",\n ok: true,\n matchedCount: 2,\n modifiedCount: 2,\n upsertedId: undefined,\n duration: 0,\n} as unknown as MongoUpdateResult;\n\nexpectMongoUpdateResult(result).not.toHaveMatchedCount(0);\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveStatusCodeStrictEqual", - "jsDoc": { - "doc": "Asserts that the code strictly equals the expected value.", - "tags": [ + "type": { + "type": "reference", + "target": 10771, + "name": "MongoUpdateResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 10773, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10774, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the update result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10870, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10871, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10872, "name": "expected", - "doc": "- The expected code value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 87, - "col": 2, - "byteIndex": 2350 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeSatisfying", - "jsDoc": { - "doc": "Asserts that the code satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 10899, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10900, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the code and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 93, - "col": 2, - "byteIndex": 2567 - }, - "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": "GrpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GrpcStatusCode" - } - } + "id": 10901, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10902, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeNaN", - "jsDoc": { - "doc": "Asserts that the code is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 98, - "col": 2, - "byteIndex": 2693 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeGreaterThan", - "jsDoc": { - "doc": "Asserts that the code is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 10873, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10874, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10875, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 104, - "col": 2, - "byteIndex": 2852 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the code is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10887, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10888, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10889, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 110, - "col": 2, - "byteIndex": 3047 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeLessThan", - "jsDoc": { - "doc": "Asserts that the code is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 10890, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10891, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10892, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 116, - "col": 2, - "byteIndex": 3234 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the code is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10893, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10894, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10895, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 122, - "col": 2, - "byteIndex": 3423 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeCloseTo", - "jsDoc": { - "doc": "Asserts that the code is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10896, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10897, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10898, "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 129, - "col": 2, - "byteIndex": 3671 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10885, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10886, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusCodeOneOf", - "jsDoc": { - "doc": "Asserts that the code is one of the specified values.", - "tags": [ + } + ] + }, + { + "id": 10879, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10880, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "values", - "doc": "- Array of acceptable values" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 135, - "col": 2, - "byteIndex": 3862 - }, - "params": [ - { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 10881, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10882, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10883, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10884, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessage", - "jsDoc": { - "doc": "Asserts that the message equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10876, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10877, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10878, "name": "expected", - "doc": "- The expected message value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 141, - "col": 2, - "byteIndex": 4032 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageEqual", - "jsDoc": { - "doc": "Asserts that the message equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 10775, + "name": "toHaveMatchedCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10776, + "name": "toHaveMatchedCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the matched count equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10777, "name": "expected", - "doc": "- The expected message value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 147, - "col": 2, - "byteIndex": 4220 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected matched count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageStrictEqual", - "jsDoc": { - "doc": "Asserts that the message strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10804, + "name": "toHaveMatchedCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10805, + "name": "toHaveMatchedCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the matched count is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10806, "name": "expected", - "doc": "- The expected message value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 153, - "col": 2, - "byteIndex": 4402 - }, - "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": "toHaveStatusMessageSatisfying", - "jsDoc": { - "doc": "Asserts that the message satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the message and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 159, - "col": 2, - "byteIndex": 4628 - }, - "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": "string", - "kind": "keyword", - "keyword": "string" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageContaining", - "jsDoc": { - "doc": "Asserts that the message contains the specified substring.", - "tags": [ + }, { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 165, - "col": 2, - "byteIndex": 4827 - }, - "params": [ - { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 10807, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageMatching", - "jsDoc": { - "doc": "Asserts that the message matches the specified regular expression.", - "tags": [ + } + ] + }, + { + "id": 10778, + "name": "toHaveMatchedCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10779, + "name": "toHaveMatchedCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the matched count equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10780, "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 171, - "col": 2, - "byteIndex": 5030 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected matched count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessagePresent", - "jsDoc": { - "doc": "Asserts that the message is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 176, - "col": 2, - "byteIndex": 5164 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageNull", - "jsDoc": { - "doc": "Asserts that the message is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 181, - "col": 2, - "byteIndex": 5254 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageUndefined", - "jsDoc": { - "doc": "Asserts that the message is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 186, - "col": 2, - "byteIndex": 5346 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveStatusMessageNullish", - "jsDoc": { - "doc": "Asserts that the message is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 191, - "col": 2, - "byteIndex": 5461 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeaders", - "jsDoc": { - "doc": "Asserts that the headers equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 10792, + "name": "toHaveMatchedCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10793, + "name": "toHaveMatchedCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the matched count is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 197, - "col": 2, - "byteIndex": 5618 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 10794, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersEqual", - "jsDoc": { - "doc": "Asserts that the headers equal the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 10795, + "name": "toHaveMatchedCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10796, + "name": "toHaveMatchedCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the matched count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10797, "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 203, - "col": 2, - "byteIndex": 5799 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersStrictEqual", - "jsDoc": { - "doc": "Asserts that the headers strictly equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 10798, + "name": "toHaveMatchedCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10799, + "name": "toHaveMatchedCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the matched count is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10800, "name": "expected", - "doc": "- The expected headers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 209, - "col": 2, - "byteIndex": 5974 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersSatisfying", - "jsDoc": { - "doc": "Asserts that the headers satisfy the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 10801, + "name": "toHaveMatchedCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10802, + "name": "toHaveMatchedCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the matched count is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the headers and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 215, - "col": 2, - "byteIndex": 6192 - }, - "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": "GrpcHeaders", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GrpcHeaders" - } - } + "id": 10803, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersMatching", - "jsDoc": { - "doc": "Asserts that the headers match the specified subset.", - "tags": [ + } + ] + }, + { + "id": 10790, + "name": "toHaveMatchedCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10791, + "name": "toHaveMatchedCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the matched count is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10784, + "name": "toHaveMatchedCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10785, + "name": "toHaveMatchedCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the matched count satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 223, - "col": 2, - "byteIndex": 6393 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" + "id": 10786, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the matched count and performs assertions" } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10787, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10788, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" + "id": 10789, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } ], - "typeName": "Record" + "type": { + "type": "intrinsic", + "name": "void" + } } - } + ] } - ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersProperty", - "jsDoc": { - "doc": "Asserts that the headers have the specified property.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, + } + ] + }, + { + "id": 10781, + "name": "toHaveMatchedCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10782, + "name": "toHaveMatchedCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the matched count strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 232, - "col": 2, - "byteIndex": 6792 - }, - "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" + "id": 10783, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected matched count" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10808, + "name": "toHaveModifiedCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10809, + "name": "toHaveModifiedCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the modified count equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "parameters": [ + { + "id": 10810, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected modified count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertyContaining", - "jsDoc": { - "doc": "Asserts that the headers property contains the expected value.", - "tags": [ + } + ] + }, + { + "id": 10837, + "name": "toHaveModifiedCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10838, + "name": "toHaveModifiedCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the modified count is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "id": 10839, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", - "name": "expected", - "doc": "- The expected contained value" + "id": 10840, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 239, - "col": 2, - "byteIndex": 7157 - }, - "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" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10811, + "name": "toHaveModifiedCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10812, + "name": "toHaveModifiedCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the modified count equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10813, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected modified count" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10825, + "name": "toHaveModifiedCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10826, + "name": "toHaveModifiedCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the modified count is greater than the expected value." + } + ] }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "parameters": [ + { + "id": 10827, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertyMatching", - "jsDoc": { - "doc": "Asserts that the headers property matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 10828, + "name": "toHaveModifiedCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10829, + "name": "toHaveModifiedCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the modified count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, + "id": 10830, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10831, + "name": "toHaveModifiedCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10832, + "name": "toHaveModifiedCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the modified count is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" + "id": 10833, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 249, - "col": 2, - "byteIndex": 7545 - }, - "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" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10834, + "name": "toHaveModifiedCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10835, + "name": "toHaveModifiedCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the modified count is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10836, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10823, + "name": "toHaveModifiedCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10824, + "name": "toHaveModifiedCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the modified count is NaN." + } + ] }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10817, + "name": "toHaveModifiedCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10818, + "name": "toHaveModifiedCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the modified count satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10819, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the modified count and performs assertions" } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10820, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10821, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" + "id": 10822, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } ], - "typeName": "Record" + "type": { + "type": "intrinsic", + "name": "void" + } } - } + ] } - ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveHeadersPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the headers property satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, + } + ] + }, + { + "id": 10814, + "name": "toHaveModifiedCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10815, + "name": "toHaveModifiedCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the modified count strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 259, - "col": 2, - "byteIndex": 8035 - }, - "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" + "id": 10816, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected modified count" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10841, + "name": "toHaveUpsertedId", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10842, + "name": "toHaveUpsertedId", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the upserted ID equals the expected value." + } + ] }, - { - "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": "any", - "kind": "keyword", - "keyword": "any" - } + "parameters": [ + { + "id": 10843, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected upserted ID" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailers", - "jsDoc": { - "doc": "Asserts that the trailers equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 10864, + "name": "toHaveUpsertedIdContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10865, + "name": "toHaveUpsertedIdContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the upserted ID contains the specified substring." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected trailers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 269, - "col": 2, - "byteIndex": 8390 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 10866, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersEqual", - "jsDoc": { - "doc": "Asserts that the trailers equal the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 10844, + "name": "toHaveUpsertedIdEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10845, + "name": "toHaveUpsertedIdEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the upserted ID equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10846, "name": "expected", - "doc": "- The expected trailers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 275, - "col": 2, - "byteIndex": 8574 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected upserted ID" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersStrictEqual", - "jsDoc": { - "doc": "Asserts that the trailers strictly equal the expected value.", - "tags": [ + } + ] + }, + { + "id": 10867, + "name": "toHaveUpsertedIdMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10868, + "name": "toHaveUpsertedIdMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the upserted ID matches the specified regular expression." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10869, "name": "expected", - "doc": "- The expected trailers value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 281, - "col": 2, - "byteIndex": 8752 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersSatisfying", - "jsDoc": { - "doc": "Asserts that the trailers satisfy the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the trailers and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 287, - "col": 2, - "byteIndex": 8973 - }, - "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": "GrpcTrailers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GrpcTrailers" - } - } - } - ], - "typeParams": [] + } + ] + }, + { + "id": 10858, + "name": "toHaveUpsertedIdNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10859, + "name": "toHaveUpsertedIdNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the upserted ID is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10862, + "name": "toHaveUpsertedIdNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10863, + "name": "toHaveUpsertedIdNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the upserted ID is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10856, + "name": "toHaveUpsertedIdPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10857, + "name": "toHaveUpsertedIdPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the upserted ID is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10850, + "name": "toHaveUpsertedIdSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10851, + "name": "toHaveUpsertedIdSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the upserted ID satisfies the provided matcher function." } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersMatching", - "jsDoc": { - "doc": "Asserts that the trailers match the specified subset.", - "tags": [ + ] + }, + "parameters": [ { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 295, - "col": 2, - "byteIndex": 9177 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" + "id": 10852, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the upserted ID and performs assertions" } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10853, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10854, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" + "id": 10855, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } ], - "typeName": "Record" + "type": { + "type": "intrinsic", + "name": "void" + } } - } + ] } - ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveTrailersProperty", - "jsDoc": { - "doc": "Asserts that the trailers have the specified property.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, + } + ] + }, + { + "id": 10847, + "name": "toHaveUpsertedIdStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10848, + "name": "toHaveUpsertedIdStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the upserted ID strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 304, - "col": 2, - "byteIndex": 9578 - }, - "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" + "id": 10849, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected upserted ID" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10860, + "name": "toHaveUpsertedIdUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10861, + "name": "toHaveUpsertedIdUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the upserted ID is undefined." + } + ] }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 7754, + "name": "MongoUpdateResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Update result with connection failure." + } + ] + }, + "children": [ + { + "id": 7762, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveTrailersPropertyContaining", - "jsDoc": { - "doc": "Asserts that the trailers property contains the expected value.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 311, - "col": 2, - "byteIndex": 9945 - }, - "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" - } - } - ] - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.duration" + } + }, + { + "id": 7757, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveTrailersPropertyMatching", - "jsDoc": { - "doc": "Asserts that the trailers property matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 321, - "col": 2, - "byteIndex": 10335 - }, - "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" - } - } - ] - } + "type": { + "type": "reference", + "target": 10905, + "name": "MongoFailureError", + "package": "@probitas-test/client-mongodb" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.error" + } + }, + { + "id": 7761, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " }, { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveTrailersPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the trailers property satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 331, - "col": 2, - "byteIndex": 10827 - }, - "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" - } - } - ] - } + "type": { + "type": "literal", + "value": "mongo:update" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.kind" + } + }, + { + "id": 7758, + "name": "matchedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.matchedCount" + } + }, + { + "id": 7759, + "name": "modifiedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.modifiedCount" + } + }, + { + "id": 7756, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "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": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] - } - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveData", - "jsDoc": { - "doc": "Asserts that the data equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected data value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 341, - "col": 2, - "byteIndex": 11176 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.ok" + } + }, + { + "id": 7755, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.processed" + } + }, + { + "id": 7760, + "name": "upsertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.upsertedId" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoUpdateResultBase" + }, + "name": "MongoUpdateResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 7736, + "name": "MongoUpdateResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDataEqual", - "jsDoc": { - "doc": "Asserts that the data equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected data value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 347, - "col": 2, - "byteIndex": 11349 - }, - "params": [ + "kind": "text", + "text": "Successful update result." + } + ] + }, + "children": [ + { + "id": 7744, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataStrictEqual", - "jsDoc": { - "doc": "Asserts that the data strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected data value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 353, - "col": 2, - "byteIndex": 11516 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.duration" + } + }, + { + "id": 7739, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataSatisfying", - "jsDoc": { - "doc": "Asserts that the data satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the data and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 359, - "col": 2, - "byteIndex": 11727 - }, - "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": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.error" + } + }, + { + "id": 7743, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataPresent", - "jsDoc": { - "doc": "Asserts that the data is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 367, - "col": 2, - "byteIndex": 12017 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "mongo:update" }, - { - "name": "toHaveDataNull", - "jsDoc": { - "doc": "Asserts that the data is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 372, - "col": 2, - "byteIndex": 12095 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.kind" + } + }, + { + "id": 7740, + "name": "matchedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.matchedCount" + } + }, + { + "id": 7741, + "name": "modifiedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.modifiedCount" + } + }, + { + "id": 7738, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "toHaveDataUndefined", - "jsDoc": { - "doc": "Asserts that the data is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 377, - "col": 2, - "byteIndex": 12175 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "toHaveDataNullish", - "jsDoc": { - "doc": "Asserts that the data is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 382, - "col": 2, - "byteIndex": 12278 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.ok" + } + }, + { + "id": 7737, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] }, - { - "name": "toHaveDataMatching", - "jsDoc": { - "doc": "Asserts that the data matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 388, - "col": 2, - "byteIndex": 12426 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.processed" + } + }, + { + "id": 7742, + "name": "upsertedId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "MongoUpdateResultBase.upsertedId" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-mongodb", + "packagePath": "dist/result.d.ts", + "qualifiedName": "MongoUpdateResultBase" + }, + "name": "MongoUpdateResultBase", + "package": "@probitas-test/client-mongodb" + } + ] + }, + { + "id": 8968, + "name": "RabbitMqAckResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDataProperty", - "jsDoc": { - "doc": "Asserts that the data has the specified property.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 397, - "col": 2, - "byteIndex": 12818 - }, - "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": "text", + "text": "Ack result with RabbitMQ error." + } + ] + }, + "children": [ + { + "id": 8973, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.duration" + } + }, + { + "id": 8971, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataPropertyContaining", - "jsDoc": { - "doc": "Asserts that the data property contains the expected value.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 404, - "col": 2, - "byteIndex": 13177 - }, - "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" - } - } - ] - } + "type": { + "type": "reference", + "target": 8919, + "name": "RabbitMqOperationError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.error" + } + }, + { + "id": 8972, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataPropertyMatching", - "jsDoc": { - "doc": "Asserts that the data property matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 414, - "col": 2, - "byteIndex": 13559 - }, - "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" - } - } - ] - } + "type": { + "type": "literal", + "value": "rabbitmq:ack" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.kind" + } + }, + { + "id": 8970, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDataPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the data property satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 424, - "col": 2, - "byteIndex": 14043 - }, - "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" - } - } - ] - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.ok" + } + }, + { + "id": 8969, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " }, { - "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": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] - } - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqAckResultBase" + }, + "name": "RabbitMqAckResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 11602, + "name": "RabbitMqAckResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 434, - "col": 2, - "byteIndex": 14396 - }, - "params": [ + "kind": "text", + "text": "Fluent API for RabbitMQ ack result validation.\n\nProvides chainable assertions for message acknowledgment results.\nAck results only have ok and duration properties." + } + ] + }, + "children": [ + { + "id": 11603, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Negates the next assertion." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 440, - "col": 2, - "byteIndex": 14581 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqAckResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqAckResult } from \"./ack.ts\";\nconst result = {\n kind: \"rabbitmq:ack\",\n ok: false,\n duration: 0,\n} as unknown as RabbitMqAckResult;\n\nexpectRabbitMqAckResult(result).not.toBeOk();\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + "type": { + "type": "reference", + "target": 11602, + "name": "RabbitMqAckResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 11604, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11605, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11606, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11607, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11608, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 446, - "col": 2, - "byteIndex": 14760 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 11635, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11636, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 452, - "col": 2, - "byteIndex": 14983 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "id": 11637, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11638, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 457, - "col": 2, - "byteIndex": 15103 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11609, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11610, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11611, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 463, - "col": 2, - "byteIndex": 15264 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11623, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11624, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11625, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 469, - "col": 2, - "byteIndex": 15461 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11626, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11627, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11628, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 475, - "col": 2, - "byteIndex": 15650 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11629, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11630, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11631, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 481, - "col": 2, - "byteIndex": 15841 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11632, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11633, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11634, "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 488, - "col": 2, - "byteIndex": 16091 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11621, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11622, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ + } + ] + }, + { + "id": 11615, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11616, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "example", - "doc": "```ts\nimport type { GrpcResponse } from \"@probitas-test/client-grpc\";\nimport { expectGrpcResponse } from \"./grpc.ts\";\nconst mockHeaders = new Map();\nconst response = {\n kind: \"grpc\",\n ok: false,\n statusCode: 5,\n statusMessage: \"NOT_FOUND\",\n headers: mockHeaders,\n trailers: mockHeaders,\n data: null,\n duration: 0,\n} as unknown as GrpcResponse;\n\nexpectGrpcResponse(response).not.toBeOk();\nexpectGrpcResponse(response).not.toHaveStatusCode(0);\n```" + "id": 11617, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11618, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11619, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11620, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 45, - "col": 2, - "byteIndex": 1247 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "expectGrpcResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/grpc.ts", - "line": 491, - "col": 0, - "byteIndex": 16161 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "response", - "optional": false, - "tsType": { - "repr": "GrpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GrpcResponse" + ], + "type": { + "type": "intrinsic", + "name": "this" } } - } - ], - "returnType": { - "repr": "GrpcResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GrpcResponseExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "GrpcClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 133, - "col": 2, - "byteIndex": 4253 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/client.ts", - "line": 141, - "col": 0, - "byteIndex": 4134 - } - } - }, - { - "name": "GrpcError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 135, - "col": 2, - "byteIndex": 4304 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 75, - "col": 0, - "byteIndex": 2020 - } - } - }, - { - "name": "GrpcErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 136, - "col": 2, - "byteIndex": 4336 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 58, - "col": 0, - "byteIndex": 1614 - } - } - }, - { - "name": "GrpcNetworkError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 137, - "col": 2, - "byteIndex": 4387 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/errors.ts", - "line": 22, - "col": 0, - "byteIndex": 599 - } - } - }, - { - "name": "GrpcOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 138, - "col": 2, - "byteIndex": 4433 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/types.ts", - "line": 146, - "col": 0, - "byteIndex": 3803 - } - } - }, - { - "name": "GrpcResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 140, - "col": 2, - "byteIndex": 4494 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 232, - "col": 0, - "byteIndex": 6908 - } - } - }, - { - "name": "GrpcResponseError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 141, - "col": 2, - "byteIndex": 4537 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 164, - "col": 0, - "byteIndex": 4941 - } - } - }, - { - "name": "GrpcResponseFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 142, - "col": 2, - "byteIndex": 4590 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 195, - "col": 0, - "byteIndex": 5781 - } - } - }, - { - "name": "GrpcResponseSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 143, - "col": 2, - "byteIndex": 4647 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 133, - "col": 0, - "byteIndex": 4053 - } - } - }, - { - "name": "GrpcStatus", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 145, - "col": 2, - "byteIndex": 4722 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 13, - "col": 13, - "byteIndex": 317 - } - } - }, - { - "name": "GrpcStatusCode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 146, - "col": 2, - "byteIndex": 4756 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 37, - "col": 0, - "byteIndex": 766 - } - } - }, - { - "name": "getGrpcStatusName", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 150, - "col": 2, - "byteIndex": 4860 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 58, - "col": 0, - "byteIndex": 1349 - } - } - }, - { - "name": "isGrpcStatusCode", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 151, - "col": 2, - "byteIndex": 4898 - }, - "declarationKind": "export", - "kind": "reference", - "reference_def": { - "target": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/status.ts", - "line": 72, - "col": 0, - "byteIndex": 1677 - } - } - }, - { - "name": "GrpcClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 164, - "col": 0, - "byteIndex": 5226 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration for creating a gRPC client.\n\nThis is a subset of ConnectRpcClientConfig with protocol fixed to \"grpc\"." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "Omit", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ConnectRpcClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClientConfig" + ] + }, + { + "id": 11612, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11613, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." } - }, + ] + }, + "parameters": [ { - "repr": "protocol", - "kind": "literal", - "literal": { - "kind": "string", - "string": "protocol" + "id": 11614, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "Omit" + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + } + ] }, { - "name": "createGrpcClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.6.1/mod.ts", - "line": 247, - "col": 0, - "byteIndex": 7442 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new gRPC client instance.\n\nThis is a thin wrapper around `createConnectRpcClient` with `protocol: \"grpc\"` fixed.\nThe client provides Server Reflection support for runtime service discovery.\n", - "tags": [ + "id": 8974, + "name": "RabbitMqAckResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "param", - "name": "config", - "doc": "- Client configuration including server address" + "kind": "text", + "text": "Ack result with connection failure." + } + ] + }, + "children": [ + { + "id": 8979, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "kind": "return", - "doc": "A new gRPC client instance\n" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] }, - { - "kind": "example", - "doc": "Basic usage with reflection\n```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\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" + "type": { + "type": "intrinsic", + "name": "number" }, - { - "kind": "example", - "doc": "Service discovery with reflection\n```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({\n url: \"http://localhost:50051\",\n});\n\n// Discover available services\nconst services = await client.reflection.listServices();\nconsole.log(\"Available services:\", services);\n\n// Get method information\nconst info = await client.reflection.getServiceInfo(\"echo.EchoService\");\nconsole.log(\"Methods:\", info.methods);\n\nawait client.close();\n```\n" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.duration" + } + }, + { + "id": 8977, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "reference", + "target": 8920, + "name": "RabbitMqFailureError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.error" + } + }, + { + "id": 8978, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "rabbitmq:ack" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.kind" + } + }, + { + "id": 8976, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "kind": "example", - "doc": "Testing error responses\n```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({ url: \"http://localhost:50051\" });\n\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.statusCode); // NOT_FOUND = 5\n}\n\nawait client.close();\n```\n" + "type": { + "type": "literal", + "value": false }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\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```" + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.ok" } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "GrpcClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GrpcClientConfig" + }, + { + "id": 8975, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.processed" } - ], - "returnType": { - "repr": "ConnectRpcClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcClient" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqAckResultBase" + }, + "name": "RabbitMqAckResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RedisArrayResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 13, - "col": 0, - "byteIndex": 407 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for Redis array result validation.\n\nProvides chainable assertions specifically designed for array-based results\n(e.g., LRANGE, SMEMBERS, KEYS operations)." + "id": 8962, + "name": "RabbitMqAckResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful ack result." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 37, - "col": 2, - "byteIndex": 1044 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 8967, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveValue", - "jsDoc": { - "doc": "Asserts that the value equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 43, - "col": 2, - "byteIndex": 1172 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueEqual", - "jsDoc": { - "doc": "Asserts that the value equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 49, - "col": 2, - "byteIndex": 1342 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveValueStrictEqual", - "jsDoc": { - "doc": "Asserts that the value strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 55, - "col": 2, - "byteIndex": 1506 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.duration" + } + }, + { + "id": 8965, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueSatisfying", - "jsDoc": { - "doc": "Asserts that the value satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 61, - "col": 2, - "byteIndex": 1720 - }, - "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": "RedisArrayValue", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisArrayValue" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "toHaveValueContaining", - "jsDoc": { - "doc": "Asserts that the value array contains the specified item.", - "tags": [ - { - "kind": "param", - "name": "item", - "doc": "- The item to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 67, - "col": 2, - "byteIndex": 1912 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.error" + } + }, + { + "id": 8966, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueContainingEqual", - "jsDoc": { - "doc": "Asserts that the value array contains an item equal to the specified value.", - "tags": [ - { - "kind": "param", - "name": "item", - "doc": "- The item to search for using deep equality" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 73, - "col": 2, - "byteIndex": 2114 - }, - "params": [ + "kind": "code", + "text": "`kind`" + }, { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueMatching", - "jsDoc": { - "doc": "Asserts that the value array matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 79, - "col": 2, - "byteIndex": 2291 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueEmpty", - "jsDoc": { - "doc": "Asserts that the value array is empty." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 86, - "col": 2, - "byteIndex": 2457 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "rabbitmq:ack" }, - { - "name": "toHaveValueCount", - "jsDoc": { - "doc": "Asserts that the value count equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 92, - "col": 2, - "byteIndex": 2607 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.kind" + } + }, + { + "id": 8964, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueCountEqual", - "jsDoc": { - "doc": "Asserts that the value count equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 98, - "col": 2, - "byteIndex": 2794 - }, - "params": [ + "kind": "code", + "text": "`false`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the value count strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 104, - "col": 2, - "byteIndex": 2975 - }, - "params": [ + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.ok" + } + }, + { + "id": 8963, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqAckResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqAckResultBase" + }, + "name": "RabbitMqAckResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8788, + "name": "RabbitMqChannel", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveValueCountSatisfying", - "jsDoc": { - "doc": "Asserts that the value count satisfies the provided matcher function.", - "tags": [ + "kind": "text", + "text": "RabbitMQ channel interface." + } + ] + }, + "children": [ + { + "id": 8841, + "name": "ack", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8842, + "name": "ack", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8843, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 8707, + "name": "RabbitMqMessage", + "package": "@probitas-test/client-rabbitmq" + } + }, { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the value count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 110, - "col": 2, - "byteIndex": 3206 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] + "id": 8844, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 8980, + "name": "RabbitMqAckResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueCountNaN", - "jsDoc": { - "doc": "Asserts that the value count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 115, - "col": 2, - "byteIndex": 3331 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the value count is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 8789, + "name": "assertExchange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8790, + "name": "assertExchange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8791, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 121, - "col": 2, - "byteIndex": 3497 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8792, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 8787, + "name": "RabbitMqExchangeType", + "package": "@probitas-test/client-rabbitmq" + } + }, + { + "id": 8793, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8730, + "name": "RabbitMqExchangeOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9027, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the value count is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 8798, + "name": "assertQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8799, + "name": "assertQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8800, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 127, - "col": 2, - "byteIndex": 3699 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8801, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8739, + "name": "RabbitMqQueueOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9008, + "name": "RabbitMqQueueResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueCountLessThan", - "jsDoc": { - "doc": "Asserts that the value count is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 8810, + "name": "bindQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8811, + "name": "bindQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8812, + "name": "queue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 133, - "col": 2, - "byteIndex": 3893 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8813, + "name": "exchange", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8814, + "name": "routingKey", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8815, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9027, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the value count is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 8856, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8857, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 8837, + "name": "consume", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8838, + "name": "consume", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8839, + "name": "queue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 139, - "col": 2, - "byteIndex": 4089 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8840, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8766, + "name": "RabbitMqConsumeOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 8707, + "name": "RabbitMqMessage", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "AsyncIterable", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueCountCloseTo", - "jsDoc": { - "doc": "Asserts that the value count is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + } + ] + }, + { + "id": 8794, + "name": "deleteExchange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8795, + "name": "deleteExchange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8796, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 146, - "col": 2, - "byteIndex": 4344 - }, - "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" + "id": 8797, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9027, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 8802, + "name": "deleteQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8803, + "name": "deleteQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8804, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 152, - "col": 2, - "byteIndex": 4537 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 8805, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9008, + "name": "RabbitMqQueueResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 8833, + "name": "get", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8834, + "name": "get", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8835, + "name": "queue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 158, - "col": 2, - "byteIndex": 4722 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 8836, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 8961, + "name": "RabbitMqConsumeResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 8845, + "name": "nack", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8846, + "name": "nack", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8847, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 8707, + "name": "RabbitMqMessage", + "package": "@probitas-test/client-rabbitmq" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" + "id": 8848, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8774, + "name": "RabbitMqNackOptions", + "package": "@probitas-test/client-rabbitmq" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 164, - "col": 2, - "byteIndex": 4901 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 8980, + "name": "RabbitMqAckResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 8853, + "name": "prefetch", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8854, + "name": "prefetch", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8855, + "name": "count", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 8822, + "name": "publish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8823, + "name": "publish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8824, + "name": "exchange", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 170, - "col": 2, - "byteIndex": 5124 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "id": 8825, + "name": "routingKey", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8826, + "name": "content", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] + "name": "Uint8Array", + "package": "typescript" } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 175, - "col": 2, - "byteIndex": 5244 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 181, - "col": 2, - "byteIndex": 5405 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8827, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8752, + "name": "RabbitMqPublishOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 8939, + "name": "RabbitMqPublishResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 8806, + "name": "purgeQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8807, + "name": "purgeQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8808, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 187, - "col": 2, - "byteIndex": 5602 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8809, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9008, + "name": "RabbitMqQueueResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 8849, + "name": "reject", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8850, + "name": "reject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8851, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 8707, + "name": "RabbitMqMessage", + "package": "@probitas-test/client-rabbitmq" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 193, - "col": 2, - "byteIndex": 5791 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8852, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8781, + "name": "RabbitMqRejectOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 8980, + "name": "RabbitMqAckResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 8828, + "name": "sendToQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8829, + "name": "sendToQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8830, + "name": "queue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 199, - "col": 2, - "byteIndex": 5982 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8831, + "name": "content", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "name": "Uint8Array", + "package": "typescript" + } + }, + { + "id": 8832, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8752, + "name": "RabbitMqPublishOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 8939, + "name": "RabbitMqPublishResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 8816, + "name": "unbindQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8817, + "name": "unbindQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 8818, + "name": "queue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + "id": 8819, + "name": "exchange", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 206, - "col": 2, - "byteIndex": 6232 - }, - "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" + "id": 8820, + "name": "routingKey", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8821, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9027, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] + }, + { + "id": 8883, + "name": "RabbitMqChannelErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { RedisArrayResult } from \"@probitas-test/client-redis\";\nimport { expectRedisArrayResult } from \"./array.ts\";\nconst result = {\n kind: \"redis:array\",\n ok: true,\n value: [\"a\", \"b\"],\n duration: 0,\n} as unknown as RedisArrayResult;\n\nexpectRedisArrayResult(result).not.toHaveValueEmpty();\nexpectRedisArrayResult(result).not.toHaveValueContaining(\"x\");\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/array.ts", - "line": 32, - "col": 2, - "byteIndex": 965 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Options for RabbitMQ channel errors." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + }, + "children": [ + { + "id": 8884, + "name": "channelId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8885, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8865, + "name": "RabbitMqErrorOptions.code" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8864, + "name": "RabbitMqErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RedisCommonResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 9, - "col": 0, - "byteIndex": 246 + "id": 8858, + "name": "RabbitMqClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ client interface." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for Redis common result validation.\n\nProvides chainable assertions for generic Redis operation results." + "children": [ + { + "id": 8859, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 8717, + "name": "RabbitMqClientConfig", + "package": "@probitas-test/client-rabbitmq" + } + }, + { + "id": 8860, + "name": "channel", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8861, + "name": "channel", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 8788, + "name": "RabbitMqChannel", + "package": "@probitas-test/client-rabbitmq" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 8862, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8863, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] + }, + { + "id": 8717, + "name": "RabbitMqClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ client configuration." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 32, - "col": 2, - "byteIndex": 812 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 8719, + "name": "heartbeat", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveValue", - "jsDoc": { - "doc": "Asserts that the value equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 38, - "col": 2, - "byteIndex": 940 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Heartbeat interval in seconds" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueEqual", - "jsDoc": { - "doc": "Asserts that the value equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 44, - "col": 2, - "byteIndex": 1110 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8720, + "name": "prefetch", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveValueStrictEqual", - "jsDoc": { - "doc": "Asserts that the value strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 50, - "col": 2, - "byteIndex": 1274 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Default prefetch count for channels" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueSatisfying", - "jsDoc": { - "doc": "Asserts that the value satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 57, - "col": 2, - "byteIndex": 1607 - }, - "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": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8724, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 63, - "col": 2, - "byteIndex": 1791 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 8723, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 69, - "col": 2, - "byteIndex": 1976 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 8721, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Whether to throw errors instead of returning them in results." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 75, - "col": 2, - "byteIndex": 2155 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 81, - "col": 2, - "byteIndex": 2378 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8722, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 86, - "col": 2, - "byteIndex": 2498 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 92, - "col": 2, - "byteIndex": 2659 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + }, + { + "id": 8718, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 98, - "col": 2, - "byteIndex": 2856 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "RabbitMQ connection URL or configuration object." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 104, - "col": 2, - "byteIndex": 3045 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 110, - "col": 2, - "byteIndex": 3236 - }, - "params": [ + "tag": "@example", + "name": "String URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = { url: \"amqp://localhost:5672\" };\n```" + } + ] + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "tag": "@example", + "name": "With credentials", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = {\n url: \"amqp://guest:guest@localhost:5672/%2F\",\n};\n```" + } + ] + }, + { + "tag": "@example", + "name": "Config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = {\n url: { port: 5672, username: \"guest\", password: \"guest\", vhost: \"/\" },\n};\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 117, - "col": 2, - "byteIndex": 3486 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "reference", + "target": 8711, + "name": "RabbitMqConnectionConfig", + "package": "@probitas-test/client-rabbitmq" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { RedisCommonResult } from \"@probitas-test/client-redis\";\nimport { expectRedisCommonResult } from \"./common.ts\";\nconst result = {\n kind: \"redis:common\",\n ok: true,\n value: \"test\",\n duration: 0,\n} as unknown as RedisCommonResult;\n\nexpectRedisCommonResult(result).not.toHaveValue(\"other\");\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/common.ts", - "line": 27, - "col": 2, - "byteIndex": 733 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "RedisCountResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 11, - "col": 0, - "byteIndex": 342 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for Redis count result validation.\n\nProvides chainable assertions specifically designed for count-based results\n(e.g., DEL, LPUSH, SCARD operations)." + "id": 8711, + "name": "RabbitMqConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ connection configuration.\n\nExtends CommonConnectionConfig with RabbitMQ-specific options." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 34, - "col": 2, - "byteIndex": 890 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 8713, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveValue", - "jsDoc": { - "doc": "Asserts that the value equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 40, - "col": 2, - "byteIndex": 1018 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Hostname or IP address." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueEqual", - "jsDoc": { - "doc": "Asserts that the value equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 46, - "col": 2, - "byteIndex": 1188 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueStrictEqual", - "jsDoc": { - "doc": "Asserts that the value strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 52, - "col": 2, - "byteIndex": 1352 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" + } + }, + { + "id": 8716, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueSatisfying", - "jsDoc": { - "doc": "Asserts that the value satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 58, - "col": 2, - "byteIndex": 1566 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 8714, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueNaN", - "jsDoc": { - "doc": "Asserts that the value is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 63, - "col": 2, - "byteIndex": 1680 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveValueGreaterThan", - "jsDoc": { - "doc": "Asserts that the value is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 69, - "col": 2, - "byteIndex": 1835 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 8715, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + }, + { + "id": 8712, + "name": "vhost", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Virtual host." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"/\"\n```" + } + ] + } + ] }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 8766, + "name": "RabbitMqConsumeOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveValueGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the value is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 75, - "col": 2, - "byteIndex": 2026 + "kind": "text", + "text": "Consume options." + } + ] + }, + "children": [ + { + "id": 8768, + "name": "exclusive", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8767, + "name": "noAck", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8769, + "name": "priority", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8773, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8729, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 8772, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueLessThan", - "jsDoc": { - "doc": "Asserts that the value is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 81, - "col": 2, - "byteIndex": 2209 - }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8728, + "name": "RabbitMqOptions.signal" + } + }, + { + "id": 8770, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 8726, + "name": "RabbitMqOptions.throwOnError" + } + }, + { + "id": 8771, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" }, + "inheritedFrom": { + "type": "reference", + "target": 8727, + "name": "RabbitMqOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8947, + "name": "RabbitMqConsumeResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveValueLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the value is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 87, - "col": 2, - "byteIndex": 2394 - }, - "params": [ + "kind": "text", + "text": "Consume result with RabbitMQ error." + } + ] + }, + "children": [ + { + "id": 8953, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueCloseTo", - "jsDoc": { - "doc": "Asserts that the value is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 94, - "col": 2, - "byteIndex": 2638 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.duration" + } + }, + { + "id": 8950, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 100, - "col": 2, - "byteIndex": 2826 - }, - "params": [ + "type": { + "type": "reference", + "target": 8919, + "name": "RabbitMqOperationError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.error" + } + }, + { + "id": 8952, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 106, - "col": 2, - "byteIndex": 3011 - }, - "params": [ + "type": { + "type": "literal", + "value": "rabbitmq:consume" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.kind" + } + }, + { + "id": 8951, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.message" + } + }, + { + "id": 8949, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 112, - "col": 2, - "byteIndex": 3190 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.ok" + } + }, + { + "id": 8948, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 118, - "col": 2, - "byteIndex": 3413 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqConsumeResultBase" + }, + "name": "RabbitMqConsumeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 11639, + "name": "RabbitMqConsumeResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 123, - "col": 2, - "byteIndex": 3533 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Fluent API for RabbitMQ consume result validation.\n\nProvides chainable assertions specifically designed for message consumption results\nincluding message content, properties, headers, and metadata." + } + ] + }, + "children": [ + { + "id": 11640, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 129, - "col": 2, - "byteIndex": 3694 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Negates the next assertion." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqConsumeResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqConsumeResult } from \"./consume.ts\";\nconst result = {\n kind: \"rabbitmq:consume\",\n ok: false,\n message: null,\n duration: 0,\n} as unknown as RabbitMqConsumeResult;\n\nexpectRabbitMqConsumeResult(result).not.toBeOk();\n```" + } + ] + } + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ + "type": { + "type": "reference", + "target": 11639, + "name": "RabbitMqConsumeResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 11641, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11642, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11688, + "name": "toHaveContent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11689, + "name": "toHaveContent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11690, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 135, - "col": 2, - "byteIndex": 3891 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected content" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11691, + "name": "toHaveContentEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11692, + "name": "toHaveContentEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11693, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 141, - "col": 2, - "byteIndex": 4080 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected content" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11711, + "name": "toHaveContentLength", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11712, + "name": "toHaveContentLength", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content length equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11713, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 147, - "col": 2, - "byteIndex": 4271 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected content length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11740, + "name": "toHaveContentLengthCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11741, + "name": "toHaveContentLengthCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content length is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11742, "name": "expected", - "doc": "- The expected value" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", + "id": 11743, "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 154, - "col": 2, - "byteIndex": 4521 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11714, + "name": "toHaveContentLengthEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11715, + "name": "toHaveContentLengthEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content length equals the expected value using deep equality." + } + ] }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11716, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected content length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ + } + ] + }, + { + "id": 11728, + "name": "toHaveContentLengthGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11729, + "name": "toHaveContentLengthGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content length is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "example", - "doc": "```ts\nimport type { RedisCountResult } from \"@probitas-test/client-redis\";\nimport { expectRedisCountResult } from \"./count.ts\";\nconst result = {\n kind: \"redis:count\",\n ok: true,\n value: 5,\n duration: 0,\n} as unknown as RedisCountResult;\n\nexpectRedisCountResult(result).not.toHaveValue(0);\n```" + "id": 11730, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/count.ts", - "line": 29, - "col": 2, - "byteIndex": 811 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisGetResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 10, - "col": 0, - "byteIndex": 306 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for Redis get result validation.\n\nProvides chainable assertions specifically designed for Redis GET operation results." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 33, - "col": 2, - "byteIndex": 852 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValue", - "jsDoc": { - "doc": "Asserts that the value equals the expected value.", - "tags": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11731, + "name": "toHaveContentLengthGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11732, + "name": "toHaveContentLengthGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content length is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11733, "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 39, - "col": 2, - "byteIndex": 980 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueEqual", - "jsDoc": { - "doc": "Asserts that the value equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 11734, + "name": "toHaveContentLengthLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11735, + "name": "toHaveContentLengthLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content length is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11736, "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 45, - "col": 2, - "byteIndex": 1150 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueStrictEqual", - "jsDoc": { - "doc": "Asserts that the value strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11737, + "name": "toHaveContentLengthLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11738, + "name": "toHaveContentLengthLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content length is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11739, "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 51, - "col": 2, - "byteIndex": 1314 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueSatisfying", - "jsDoc": { - "doc": "Asserts that the value satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 11726, + "name": "toHaveContentLengthNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11727, + "name": "toHaveContentLengthNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content length is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11720, + "name": "toHaveContentLengthSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11721, + "name": "toHaveContentLengthSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content length satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11722, "name": "matcher", - "doc": "- A function that receives the value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 57, - "col": 2, - "byteIndex": 1528 - }, - "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": "string", - "kind": "keyword", - "keyword": "string" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the content length and performs assertions" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11723, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11724, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11725, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueContaining", - "jsDoc": { - "doc": "Asserts that the value contains the specified substring.", - "tags": [ + } + ] + }, + { + "id": 11717, + "name": "toHaveContentLengthStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11718, + "name": "toHaveContentLengthStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content length strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 63, - "col": 2, - "byteIndex": 1717 - }, - "params": [ - { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 11719, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected content length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueMatching", - "jsDoc": { - "doc": "Asserts that the value matches the specified regular expression.", - "tags": [ + } + ] + }, + { + "id": 11705, + "name": "toHaveContentNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11706, + "name": "toHaveContentNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11709, + "name": "toHaveContentNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11710, + "name": "toHaveContentNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11703, + "name": "toHaveContentPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11704, + "name": "toHaveContentPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11697, + "name": "toHaveContentSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11698, + "name": "toHaveContentSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 69, - "col": 2, - "byteIndex": 1910 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "id": 11699, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the content and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11700, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11701, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11702, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValuePresent", - "jsDoc": { - "doc": "Asserts that the value is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 74, - "col": 2, - "byteIndex": 2034 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueNull", - "jsDoc": { - "doc": "Asserts that the value is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 79, - "col": 2, - "byteIndex": 2114 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueUndefined", - "jsDoc": { - "doc": "Asserts that the value is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 84, - "col": 2, - "byteIndex": 2196 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueNullish", - "jsDoc": { - "doc": "Asserts that the value is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 89, - "col": 2, - "byteIndex": 2301 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11694, + "name": "toHaveContentStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11695, + "name": "toHaveContentStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11696, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 95, - "col": 2, - "byteIndex": 2453 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected content" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 11707, + "name": "toHaveContentUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11708, + "name": "toHaveContentUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the content is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11744, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11745, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11746, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 101, - "col": 2, - "byteIndex": 2638 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11773, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11774, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11775, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 107, - "col": 2, - "byteIndex": 2817 - }, - "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": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 113, - "col": 2, - "byteIndex": 3040 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "id": 11776, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 118, - "col": 2, - "byteIndex": 3160 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11747, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11748, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11749, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 124, - "col": 2, - "byteIndex": 3321 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11761, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11762, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11763, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 130, - "col": 2, - "byteIndex": 3518 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11764, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11765, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11766, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 136, - "col": 2, - "byteIndex": 3707 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11767, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11768, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11769, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 142, - "col": 2, - "byteIndex": 3898 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11770, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11771, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11772, "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 149, - "col": 2, - "byteIndex": 4148 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11759, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11760, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { RedisGetResult } from \"@probitas-test/client-redis\";\nimport { expectRedisGetResult } from \"./get.ts\";\nconst result = {\n kind: \"redis:get\",\n ok: true,\n value: \"hello\",\n duration: 0,\n} as unknown as RedisGetResult;\n\nexpectRedisGetResult(result).not.toHaveValue(\"world\");\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/get.ts", - "line": 28, - "col": 2, - "byteIndex": 773 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisHashResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 11, - "col": 0, - "byteIndex": 336 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for Redis hash result validation.\n\nProvides chainable assertions specifically designed for hash-based results\n(e.g., HGETALL, HMGET operations)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 34, - "col": 2, - "byteIndex": 905 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValue", - "jsDoc": { - "doc": "Asserts that the value equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11753, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11754, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 40, - "col": 2, - "byteIndex": 1033 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 11755, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11756, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11757, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11758, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueEqual", - "jsDoc": { - "doc": "Asserts that the value equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 11750, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11751, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11752, "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 46, - "col": 2, - "byteIndex": 1203 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueStrictEqual", - "jsDoc": { - "doc": "Asserts that the value strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11643, + "name": "toHaveMessage", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11644, + "name": "toHaveMessage", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11645, "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 52, - "col": 2, - "byteIndex": 1367 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueSatisfying", - "jsDoc": { - "doc": "Asserts that the value satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 11646, + "name": "toHaveMessageEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11647, + "name": "toHaveMessageEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 59, - "col": 2, - "byteIndex": 1700 - }, - "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": "any", - "kind": "keyword", - "keyword": "any" - } + "id": 11648, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueMatching", - "jsDoc": { - "doc": "Asserts that the value matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 11666, + "name": "toHaveMessageMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11667, + "name": "toHaveMessageMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message matches the specified subset." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11668, "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 65, - "col": 2, - "byteIndex": 1882 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueProperty", - "jsDoc": { - "doc": "Asserts that the value has the specified property.", - "tags": [ + } + ] + }, + { + "id": 11660, + "name": "toHaveMessageNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11661, + "name": "toHaveMessageNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is null (no message received)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11664, + "name": "toHaveMessageNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11665, + "name": "toHaveMessageNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11658, + "name": "toHaveMessagePresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11659, + "name": "toHaveMessagePresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11669, + "name": "toHaveMessageProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11670, + "name": "toHaveMessageProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message has the specified property." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11671, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 11672, "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 74, - "col": 2, - "byteIndex": 2276 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11673, + "name": "toHaveMessagePropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11674, + "name": "toHaveMessagePropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message property contains the expected value." + } + ] }, - { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValuePropertyContaining", - "jsDoc": { - "doc": "Asserts that the value property contains the expected value.", - "tags": [ + "parameters": [ { - "kind": "param", + "id": 11675, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 11676, "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 81, - "col": 2, - "byteIndex": 2637 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" } - } - ] - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValuePropertyMatching", - "jsDoc": { - "doc": "Asserts that the value property matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 11677, + "name": "toHaveMessagePropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11678, + "name": "toHaveMessagePropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message property matches the specified subset." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11679, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 11680, "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 91, - "col": 2, - "byteIndex": 3021 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" } - } - ] - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValuePropertySatisfying", - "jsDoc": { - "doc": "Asserts that the value property satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 11681, + "name": "toHaveMessagePropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11682, + "name": "toHaveMessagePropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message property satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11683, "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } }, { - "kind": "param", + "id": 11684, "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 101, - "col": 2, - "byteIndex": 3507 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" } - } - ] - } - }, - { - "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": "any", - "kind": "keyword", - "keyword": "any" + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11685, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11686, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11687, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } - } - ], - "typeParams": [] + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 111, - "col": 2, - "byteIndex": 3861 - }, - "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": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 11652, + "name": "toHaveMessageSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11653, + "name": "toHaveMessageSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 117, - "col": 2, - "byteIndex": 4046 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 11654, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the message and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11655, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11656, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11657, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11649, + "name": "toHaveMessageStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11650, + "name": "toHaveMessageStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11651, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 123, - "col": 2, - "byteIndex": 4225 - }, - "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": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 129, - "col": 2, - "byteIndex": 4448 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + }, + { + "id": 11662, + "name": "toHaveMessageUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11663, + "name": "toHaveMessageUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 8954, + "name": "RabbitMqConsumeResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 134, - "col": 2, - "byteIndex": 4568 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Consume result with connection failure." + } + ] + }, + "children": [ + { + "id": 8960, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 140, - "col": 2, - "byteIndex": 4729 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 146, - "col": 2, - "byteIndex": 4926 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 152, - "col": 2, - "byteIndex": 5115 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.duration" + } + }, + { + "id": 8957, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 158, - "col": 2, - "byteIndex": 5306 - }, - "params": [ + "kind": "code", + "text": "`ok`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 165, - "col": 2, - "byteIndex": 5556 - }, - "params": [ + "kind": "text", + "text": " is " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { RedisHashResult } from \"@probitas-test/client-redis\";\nimport { expectRedisHashResult } from \"./hash.ts\";\nconst result = {\n kind: \"redis:hash\",\n ok: true,\n value: { name: \"Alice\" },\n duration: 0,\n} as unknown as RedisHashResult;\n\nexpectRedisHashResult(result).not.toHaveValueProperty(\"age\");\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/hash.ts", - "line": 29, - "col": 2, - "byteIndex": 826 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisSetResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 12, - "col": 0, - "byteIndex": 353 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for Redis set result validation.\n\nProvides chainable assertions specifically designed for Redis SET operation results." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 35, - "col": 2, - "byteIndex": 896 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValue", - "jsDoc": { - "doc": "Asserts that the value equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 41, - "col": 2, - "byteIndex": 1024 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 8920, + "name": "RabbitMqFailureError", + "package": "@probitas-test/client-rabbitmq" }, - { - "name": "toHaveValueEqual", - "jsDoc": { - "doc": "Asserts that the value equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 47, - "col": 2, - "byteIndex": 1194 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.error" + } + }, + { + "id": 8959, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueStrictEqual", - "jsDoc": { - "doc": "Asserts that the value strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 53, - "col": 2, - "byteIndex": 1358 - }, - "params": [ + "kind": "code", + "text": "`kind`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveValueSatisfying", - "jsDoc": { - "doc": "Asserts that the value satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 59, - "col": 2, - "byteIndex": 1572 - }, - "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": "RedisSetValue", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetValue" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "rabbitmq:consume" }, - { - "name": "toHaveValueContaining", - "jsDoc": { - "doc": "Asserts that the value contains the specified substring.", - "tags": [ - { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 65, - "col": 2, - "byteIndex": 1768 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.kind" + } + }, + { + "id": 8958, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.message" + } + }, + { + "id": 8956, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveValueMatching", - "jsDoc": { - "doc": "Asserts that the value matches the specified regular expression.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 71, - "col": 2, - "byteIndex": 1961 - }, - "params": [ + "kind": "code", + "text": "`false`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 77, - "col": 2, - "byteIndex": 2130 - }, - "params": [ + "kind": "text", + "text": " when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 83, - "col": 2, - "byteIndex": 2315 - }, - "params": [ + "kind": "code", + "text": "`processed`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 89, - "col": 2, - "byteIndex": 2494 - }, - "params": [ + "kind": "text", + "text": " is " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 95, - "col": 2, - "byteIndex": 2717 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.ok" + } + }, + { + "id": 8955, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 100, - "col": 2, - "byteIndex": 2837 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqConsumeResultBase" + }, + "name": "RabbitMqConsumeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8940, + "name": "RabbitMqConsumeResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 106, - "col": 2, - "byteIndex": 2998 - }, - "params": [ + "kind": "text", + "text": "Successful consume result." + } + ] + }, + "children": [ + { + "id": 8946, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 112, - "col": 2, - "byteIndex": 3195 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.duration" + } + }, + { + "id": 8943, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 118, - "col": 2, - "byteIndex": 3384 - }, - "params": [ + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.error" + } + }, + { + "id": 8945, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 124, - "col": 2, - "byteIndex": 3575 - }, - "params": [ + "type": { + "type": "literal", + "value": "rabbitmq:consume" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.kind" + } + }, + { + "id": 8944, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 8707, + "name": "RabbitMqMessage", + "package": "@probitas-test/client-rabbitmq" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 131, - "col": 2, - "byteIndex": 3825 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.message" + } + }, + { + "id": 8942, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.ok" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { RedisSetResult } from \"@probitas-test/client-redis\";\nimport { expectRedisSetResult } from \"./set.ts\";\nconst result = {\n kind: \"redis:set\",\n ok: true,\n value: \"OK\",\n duration: 0,\n} as unknown as RedisSetResult;\n\nexpectRedisSetResult(result).not.toHaveValue(\"ERROR\");\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis/set.ts", - "line": 30, - "col": 2, - "byteIndex": 817 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + }, + { + "id": 8941, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqConsumeResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqConsumeResultBase" + }, + "name": "RabbitMqConsumeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RedisExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis.ts", - "line": 48, - "col": 0, - "byteIndex": 1074 + "id": 8864, + "name": "RabbitMqErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for RabbitMQ errors." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation type returned by expectRedisResult based on the result type." + "children": [ + { + "id": 8865, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 8883, + "name": "RabbitMqChannelErrorOptions" + }, + { + "type": "reference", + "target": 8895, + "name": "RabbitMqNotFoundErrorOptions" + }, + { + "type": "reference", + "target": 8907, + "name": "RabbitMqPreconditionFailedErrorOptions" + } + ] + }, + { + "id": 8730, + "name": "RabbitMqExchangeOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Exchange options." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" + "children": [ + { + "id": 8734, + "name": "arguments", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } - }, - "extendsType": { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 8732, + "name": "autoDelete", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8731, + "name": "durable", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8733, + "name": "internal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8738, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "trueType": { - "repr": "RedisCountResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultExpectation" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8729, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 8737, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisArrayResult" - } - }, - "trueType": { - "repr": "RedisArrayResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "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": "RedisGetResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultExpectation" - } - }, - "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": "RedisSetResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultExpectation" - } - }, - "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": "RedisHashResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RedisCommonResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommonResult" - } - }, - "trueType": { - "repr": "RedisCommonResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommonResultExpectation" - } - }, - "falseType": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - } - } - } - } - } - } + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8728, + "name": "RabbitMqOptions.signal" + } + }, + { + "id": 8735, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, + { + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 8726, + "name": "RabbitMqOptions.throwOnError" } }, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "RedisResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisResult" + { + "id": 8736, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8727, + "name": "RabbitMqOptions.timeout" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "expectRedisResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/redis.ts", - "line": 96, - "col": 0, - "byteIndex": 2758 - }, - "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": [ + "id": 9015, + "name": "RabbitMqExchangeResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nimport type { RedisGetResult, RedisCountResult, RedisArrayResult } from \"@probitas-test/client-redis\";\nimport { expectRedisResult } from \"./redis.ts\";\n\n// For GET result - returns RedisGetResultExpectation\nconst getResult = {\n kind: \"redis:get\",\n ok: true,\n value: \"expected\",\n duration: 0,\n} as unknown as RedisGetResult;\nexpectRedisResult(getResult).toBeOk().toHaveValue(\"expected\");\n\n// For COUNT result - returns RedisCountResultExpectation\nconst countResult = {\n kind: \"redis:count\",\n ok: true,\n value: 1,\n duration: 0,\n} as unknown as RedisCountResult;\nexpectRedisResult(countResult).toBeOk().toHaveValue(1);\n\n// For ARRAY result - returns RedisArrayResultExpectation\nconst arrayResult = {\n kind: \"redis:array\",\n ok: true,\n value: [\"a\", \"b\", \"item\"],\n duration: 0,\n} as unknown as RedisArrayResult;\nexpectRedisResult(arrayResult).toBeOk().toHaveValueCount(3).toHaveValueContaining(\"item\");\n```" + "kind": "text", + "text": "Exchange result with RabbitMQ error." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" + "children": [ + { + "id": 9020, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.duration" } - ], - "returnType": { - "repr": "RedisExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 9018, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "typeName": "RedisExpectation" + ] + }, + "type": { + "type": "reference", + "target": 8919, + "name": "RabbitMqOperationError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.error" } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "RedisResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisResult" + { + "id": 9019, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - } + ] + }, + "type": { + "type": "literal", + "value": "rabbitmq:exchange" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.kind" } - ] - } + }, + { + "id": 9017, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.ok" + } + }, + { + "id": 9016, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqExchangeResultBase" + }, + "name": "RabbitMqExchangeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RedisFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 89, - "col": 0, - "byteIndex": 2108 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the Redis server." + "id": 11777, + "name": "RabbitMqExchangeResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fluent API for RabbitMQ exchange result validation.\n\nProvides chainable assertions for exchange declaration/deletion results.\nExchange results only have ok and duration properties." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisConnectionError" + "children": [ + { + "id": 11778, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqExchangeResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqExchangeResult } from \"./exchange.ts\";\nconst result = {\n kind: \"rabbitmq:exchange\",\n ok: false,\n duration: 0,\n} as unknown as RabbitMqExchangeResult;\n\nexpectRabbitMqExchangeResult(result).not.toBeOk();\n```" + } + ] } - }, + ] + }, + "type": { + "type": "reference", + "target": 11777, + "name": "RabbitMqExchangeResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 11779, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + "id": 11780, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "RedisOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 98, - "col": 0, - "byteIndex": 2326 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was processed but failed.\nThese are errors returned by the Redis server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisCommandError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandError" - } - }, + { + "id": 11781, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisScriptError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisScriptError" + "id": 11782, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11783, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 11810, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisError" + "id": 11811, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11812, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11813, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "RedisCommandOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 22, - "col": 0, - "byteIndex": 458 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis command options.\n\nExtends CommonOptions with Redis-specific behavior options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error when the operation fails.\n\nWhen `true`, failures will throw an error instead of returning a result\nwith `ok: false`.\n", - "tags": [ + { + "id": 11784, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11785, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default false (inherited from client config or defaults to false)" + "id": 11786, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 31, - "col": 2, - "byteIndex": 772 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisSetOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 37, - "col": 0, - "byteIndex": 837 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis SET options" - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "ex", - "jsDoc": { - "doc": "Expiration in seconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 39, - "col": 2, - "byteIndex": 933 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "px", - "jsDoc": { - "doc": "Expiration in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 41, - "col": 2, - "byteIndex": 993 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "nx", - "jsDoc": { - "doc": "Only set if key does not exist" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 43, - "col": 2, - "byteIndex": 1057 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "xx", - "jsDoc": { - "doc": "Only set if key exists" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 45, - "col": 2, - "byteIndex": 1114 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisMessage", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 51, - "col": 0, - "byteIndex": 1173 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis Pub/Sub message" - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "channel", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 52, - "col": 2, - "byteIndex": 1207 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 53, - "col": 2, - "byteIndex": 1235 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 61, - "col": 0, - "byteIndex": 1373 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis connection configuration.\n\nExtends CommonConnectionConfig with Redis-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" + ] + }, + { + "id": 11798, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11799, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 11800, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "db", - "jsDoc": { - "doc": "Database index.", - "tags": [ + ] + }, + { + "id": 11801, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11802, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default 0" + "id": 11803, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 66, - "col": 2, - "byteIndex": 1496 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 72, - "col": 0, - "byteIndex": 1560 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis client configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "Redis connection URL or configuration object.\n", - "tags": [ - { - "kind": "example", - "doc": "String URL\n```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = { url: \"redis://localhost:6379\" };\n```\n" - }, + ] + }, + { + "id": 11804, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11805, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "example", - "doc": "With password\n```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = { url: \"redis://:password@localhost:6379/0\" };\n```\n" - }, + "id": 11806, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11807, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11808, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "example", - "doc": "Config object\n```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = {\n url: { port: 6379, password: \"secret\", db: 1 },\n};\n```" + "id": 11809, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 96, - "col": 2, - "byteIndex": 2329 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11796, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11797, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11790, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11791, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "repr": "RedisConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisConnectionConfig" + "id": 11792, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11793, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11794, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11795, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } - ] - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error when operations fail.\n\nWhen `true`, failures will throw an error instead of returning a result\nwith `ok: false`. This can be overridden per-command.\n", - "tags": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11787, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11788, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default false" + "id": 11789, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 106, - "col": 2, - "byteIndex": 2609 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] }, { - "name": "RedisTransaction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 112, - "col": 0, - "byteIndex": 2684 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis transaction interface" + "id": 9021, + "name": "RabbitMqExchangeResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Exchange result with connection failure." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "get", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 113, - "col": 2, - "byteIndex": 2722 - }, - "params": [ + "children": [ + { + "id": 9026, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "set", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 114, - "col": 2, - "byteIndex": 2748 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.duration" + } + }, + { + "id": 9024, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " is " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisSetOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "del", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 115, - "col": 2, - "byteIndex": 2816 - }, - "params": [ + "kind": "code", + "text": "`false`" + }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "keys", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "incr", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 116, - "col": 2, - "byteIndex": 2848 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 8920, + "name": "RabbitMqFailureError", + "package": "@probitas-test/client-rabbitmq" }, - { - "name": "decr", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 117, - "col": 2, - "byteIndex": 2875 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.error" + } + }, + { + "id": 9025, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "hget", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 118, - "col": 2, - "byteIndex": 2902 - }, - "params": [ + "type": { + "type": "literal", + "value": "rabbitmq:exchange" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.kind" + } + }, + { + "id": 9023, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "field", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "hset", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 119, - "col": 2, - "byteIndex": 2944 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.ok" + } + }, + { + "id": 9022, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "field", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " }, { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqExchangeResultBase" + }, + "name": "RabbitMqExchangeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 9009, + "name": "RabbitMqExchangeResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "hgetall", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 120, - "col": 2, - "byteIndex": 3001 - }, - "params": [ + "kind": "text", + "text": "Successful exchange result." + } + ] + }, + "children": [ + { + "id": 9014, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "hdel", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 121, - "col": 2, - "byteIndex": 3031 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.duration" + } + }, + { + "id": 9012, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "fields", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "lpush", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 122, - "col": 2, - "byteIndex": 3079 - }, - "params": [ + "kind": "text", + "text": " is " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "rpush", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 123, - "col": 2, - "byteIndex": 3128 - }, - "params": [ + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.error" + } + }, + { + "id": 9013, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`kind`" }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "lpop", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 124, - "col": 2, - "byteIndex": 3177 - }, - "params": [ + "kind": "text", + "text": " property is typed as " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "rpop", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 125, - "col": 2, - "byteIndex": 3204 - }, - "params": [ + "type": { + "type": "literal", + "value": "rabbitmq:exchange" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.kind" + } + }, + { + "id": 9011, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "lrange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 126, - "col": 2, - "byteIndex": 3231 - }, - "params": [ + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.ok" + } + }, + { + "id": 9010, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "start", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " }, { - "kind": "identifier", - "name": "stop", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqExchangeResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqExchangeResultBase" + }, + "name": "RabbitMqExchangeResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8707, + "name": "RabbitMqMessage", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "llen", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 127, - "col": 2, - "byteIndex": 3289 - }, - "params": [ + "kind": "text", + "text": "RabbitMQ message." + } + ] + }, + "children": [ + { + "id": 8708, + "name": "content", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "name": "Uint8Array", + "package": "typescript" + } + }, + { + "id": 8710, + "name": "fields", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 8702, + "name": "RabbitMqMessageFields", + "package": "@probitas-test/client-rabbitmq" + } + }, + { + "id": 8709, + "name": "properties", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 8688, + "name": "RabbitMqMessageProperties", + "package": "@probitas-test/client-rabbitmq" + } + } + ] + }, + { + "id": 8702, + "name": "RabbitMqMessageFields", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ message fields." + } + ] + }, + "children": [ + { + "id": 8703, + "name": "deliveryTag", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "bigint" + } + }, + { + "id": 8705, + "name": "exchange", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8704, + "name": "redelivered", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8706, + "name": "routingKey", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 8688, + "name": "RabbitMqMessageProperties", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ message properties." + } + ] + }, + "children": [ + { + "id": 8701, + "name": "appId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8690, + "name": "contentEncoding", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8689, + "name": "contentType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8694, + "name": "correlationId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8692, + "name": "deliveryMode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "1: non-persistent, 2: persistent" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "sadd", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 128, - "col": 2, - "byteIndex": 3316 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": "literal", + "value": 2 }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "members", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "type": "literal", + "value": 1 } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "srem", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 129, - "col": 2, - "byteIndex": 3365 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] + } + }, + { + "id": 8696, + "name": "expiration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8691, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "members", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "type": "intrinsic", + "name": "unknown" } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "name": "Record", + "package": "typescript" + } + }, + { + "id": 8697, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8693, + "name": "priority", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8695, + "name": "replyTo", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8698, + "name": "timestamp", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8699, + "name": "type", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8700, + "name": "userId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 8774, + "name": "RabbitMqNackOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "smembers", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 130, - "col": 2, - "byteIndex": 3414 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Nack options." + } + ] + }, + "children": [ + { + "id": 8776, + "name": "allUpTo", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8775, + "name": "requeue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8780, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "typeParams": [] + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "name": "sismember", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 131, - "col": 2, - "byteIndex": 3445 + "inheritedFrom": { + "type": "reference", + "target": 8729, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 8779, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8728, + "name": "RabbitMqOptions.signal" + } + }, + { + "id": 8777, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`throwOnError`" }, { - "kind": "identifier", - "name": "member", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " setting." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 8726, + "name": "RabbitMqOptions.throwOnError" + } + }, + { + "id": 8778, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8727, + "name": "RabbitMqOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8895, + "name": "RabbitMqNotFoundErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "zadd", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 132, - "col": 2, - "byteIndex": 3493 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Options for RabbitMQ not found errors." + } + ] + }, + "children": [ + { + "id": 8897, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8865, + "name": "RabbitMqErrorOptions.code" + } + }, + { + "id": 8896, + "name": "resource", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8864, + "name": "RabbitMqErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8725, + "name": "RabbitMqOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base options for RabbitMQ operations." + } + ] + }, + "children": [ + { + "id": 8729, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "entries", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "score", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 132, - "col": 34, - "byteIndex": 3525 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "member", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 132, - "col": 49, - "byteIndex": 3540 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } + "kind": "text", + "text": "Retry configuration." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "zrange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 133, - "col": 2, - "byteIndex": 3569 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "start", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "stop", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 8728, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "zscore", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 134, - "col": 2, - "byteIndex": 3627 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 8726, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`throwOnError`" }, { - "kind": "identifier", - "name": "member", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " setting." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "exec", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 135, - "col": 2, - "byteIndex": 3672 - }, - "params": [ - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "RedisArrayResult" - } - } - ], - "typeName": "Promise" + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8727, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "discard", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 136, - "col": 2, - "byteIndex": 3747 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 8730, + "name": "RabbitMqExchangeOptions" + }, + { + "type": "reference", + "target": 8739, + "name": "RabbitMqQueueOptions" + }, + { + "type": "reference", + "target": 8752, + "name": "RabbitMqPublishOptions" + }, + { + "type": "reference", + "target": 8766, + "name": "RabbitMqConsumeOptions" + }, + { + "type": "reference", + "target": 8774, + "name": "RabbitMqNackOptions" + }, + { + "type": "reference", + "target": 8781, + "name": "RabbitMqRejectOptions" + } + ] }, { - "name": "RedisClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 142, - "col": 0, - "byteIndex": 3801 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis client interface" + "id": 8907, + "name": "RabbitMqPreconditionFailedErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for RabbitMQ precondition failed errors." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "children": [ + { + "id": 8909, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8865, + "name": "RabbitMqErrorOptions.code" + } + }, + { + "id": 8908, + "name": "reason", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8864, + "name": "RabbitMqErrorOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8752, + "name": "RabbitMqPublishOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + "kind": "text", + "text": "Publish options." } - ], - "constructors": [], - "methods": [ - { - "name": "get", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 146, - "col": 2, - "byteIndex": 3910 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] + }, + "children": [ + { + "id": 8755, + "name": "contentEncoding", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8754, + "name": "contentType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8757, + "name": "correlationId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8759, + "name": "expiration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8756, + "name": "headers", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } + "type": "intrinsic", + "name": "unknown" } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResult" - } - } - ], - "typeName": "Promise" + "name": "Record", + "package": "typescript" + } + }, + { + "id": 8760, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8753, + "name": "persistent", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8761, + "name": "priority", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8758, + "name": "replyTo", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8765, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "set", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 147, - "col": 2, - "byteIndex": 3986 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisSetOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisSetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResult" - } - } - ], - "typeName": "Promise" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8729, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 8764, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "typeParams": [] + ] }, - { - "name": "del", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 152, - "col": 2, - "byteIndex": 4090 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8728, + "name": "RabbitMqOptions.signal" + } + }, + { + "id": 8762, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, { - "kind": "identifier", - "name": "keys", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "code", + "text": "`throwOnError`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } + "kind": "text", + "text": " setting." } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 8726, + "name": "RabbitMqOptions.throwOnError" + } + }, + { + "id": 8763, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" }, + "inheritedFrom": { + "type": "reference", + "target": 8727, + "name": "RabbitMqOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8927, + "name": "RabbitMqPublishResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "incr", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 153, - "col": 2, - "byteIndex": 4171 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Publish result with RabbitMQ error." + } + ] + }, + "children": [ + { + "id": 8932, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "decr", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 154, - "col": 2, - "byteIndex": 4250 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.duration" + } + }, + { + "id": 8930, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "hget", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 157, - "col": 2, - "byteIndex": 4342 - }, - "params": [ + "kind": "code", + "text": "`ok`" + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " is " }, { - "kind": "identifier", - "name": "field", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "hset", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 162, - "col": 2, - "byteIndex": 4451 - }, - "params": [ + "type": { + "type": "reference", + "target": 8919, + "name": "RabbitMqOperationError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.error" + } + }, + { + "id": 8931, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`kind`" }, { - "kind": "identifier", - "name": "field", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " property is typed as " }, { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`string`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "hgetall", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 168, - "col": 2, - "byteIndex": 4581 - }, - "params": [ + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`as const`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisHashResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "hdel", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 169, - "col": 2, - "byteIndex": 4662 - }, - "params": [ + "type": { + "type": "literal", + "value": "rabbitmq:publish" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.kind" + } + }, + { + "id": 8929, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "fields", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "lpush", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 176, - "col": 2, - "byteIndex": 4788 - }, - "params": [ + "kind": "code", + "text": "`processed`" + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " is " }, { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "rpush", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 181, - "col": 2, - "byteIndex": 4903 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.ok" + } + }, + { + "id": 8928, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " }, { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "lpop", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 186, - "col": 2, - "byteIndex": 5018 - }, - "params": [ + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqPublishResultBase" + }, + "name": "RabbitMqPublishResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 11814, + "name": "RabbitMqPublishResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "rpop", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 187, - "col": 2, - "byteIndex": 5095 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Fluent API for RabbitMQ publish result validation.\nPublish results only have ok and duration properties." + } + ] + }, + "children": [ + { + "id": 11815, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } + "kind": "text", + "text": "Negates the next assertion." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResult" - } + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqPublishResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqPublishResult } from \"./publish.ts\";\nconst result = {\n kind: \"rabbitmq:publish\",\n ok: false,\n duration: 0,\n} as unknown as RabbitMqPublishResult;\n\nexpectRabbitMqPublishResult(result).not.toBeOk();\n```" } - ], - "typeName": "Promise" + ] } - }, - "typeParams": [] + ] }, - { - "name": "lrange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 188, - "col": 2, - "byteIndex": 5172 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "start", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "reference", + "target": 11814, + "name": "RabbitMqPublishResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 11816, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11817, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] }, - { - "kind": "identifier", - "name": "stop", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11818, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11819, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + "parameters": [ + { + "id": 11820, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisArrayResult" - } + } + ] + }, + { + "id": 11847, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11848, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "llen", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 194, - "col": 2, - "byteIndex": 5303 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + "parameters": [ + { + "id": 11849, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11850, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + } + ] + }, + { + "id": 11821, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11822, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "sadd", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 197, - "col": 2, - "byteIndex": 5393 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "members", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "parameters": [ + { + "id": 11823, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11835, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11836, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + "parameters": [ + { + "id": 11837, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + } + ] + }, + { + "id": 11838, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11839, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "srem", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 202, - "col": 2, - "byteIndex": 5508 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "members", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "parameters": [ + { + "id": 11840, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11841, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11842, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + "parameters": [ + { + "id": 11843, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } + } + ] + }, + { + "id": 11844, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11845, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "smembers", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 207, - "col": 2, - "byteIndex": 5623 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + "parameters": [ + { + "id": 11846, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisArrayResult" - } + } + ] + }, + { + "id": 11833, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11834, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "sismember", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 211, - "col": 2, - "byteIndex": 5719 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "member", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCommonResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 11827, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11828, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11829, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11830, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" + "id": 11831, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11832, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } - ], - "typeName": "RedisCommonResult" + ] } } - ], - "typeName": "Promise" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "zadd", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 218, - "col": 2, - "byteIndex": 5864 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "entries", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "score", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 220, - "col": 15, - "byteIndex": 5902 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "member", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 220, - "col": 30, - "byteIndex": 5917 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } + } + ] + }, + { + "id": 11824, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11825, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." } - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" + "parameters": [ + { + "id": 11826, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" + } + ] + } + ] + }, + { + "id": 8933, + "name": "RabbitMqPublishResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Publish result with connection failure." + } + ] + }, + "children": [ + { + "id": 8938, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "zrange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 223, - "col": 2, - "byteIndex": 6006 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.duration" + } + }, + { + "id": 8936, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "start", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " is " }, { - "kind": "identifier", - "name": "stop", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisArrayResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "zscore", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 229, - "col": 2, - "byteIndex": 6137 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "reference", + "target": 8920, + "name": "RabbitMqFailureError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.error" + } + }, + { + "id": 8937, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " }, { - "kind": "identifier", - "name": "member", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`kind`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCommonResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } - ], - "typeName": "RedisCommonResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "publish", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 236, - "col": 2, - "byteIndex": 6281 - }, - "params": [ + "kind": "text", + "text": " property is typed as " + }, { - "kind": "identifier", - "name": "channel", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`string`" }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "subscribe", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 241, - "col": 2, - "byteIndex": 6401 - }, - "params": [ + "kind": "code", + "text": "`as const`" + }, { - "kind": "identifier", - "name": "channel", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisMessage" - } - } - ], - "typeName": "AsyncIterable" - } - }, - "typeParams": [] + ] }, - { - "name": "multi", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 244, - "col": 2, - "byteIndex": 6478 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "RedisTransaction", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisTransaction" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "rabbitmq:publish" }, - { - "name": "command", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 248, - "col": 2, - "byteIndex": 6644 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.kind" + } + }, + { + "id": 8935, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "cmd", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisCommandOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisCommonResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ + "kind": "code", + "text": "`processed`" + }, { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } ] }, - { - "name": "close", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 254, - "col": 2, - "byteIndex": 6774 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "config", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/types.ts", - "line": 143, - "col": 2, - "byteIndex": 3858 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisClientConfig" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisGetResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 32, - "col": 0, - "byteIndex": 952 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful GET result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisGetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 33, - "col": 2, - "byteIndex": 1022 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 34, - "col": 2, - "byteIndex": 1050 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 35, - "col": 2, - "byteIndex": 1071 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 36, - "col": 2, - "byteIndex": 1095 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisGetResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 42, - "col": 0, - "byteIndex": 1169 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GET result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisGetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 43, - "col": 2, - "byteIndex": 1237 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 44, - "col": 2, - "byteIndex": 1265 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 45, - "col": 2, - "byteIndex": 1287 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 46, - "col": 2, - "byteIndex": 1326 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisGetResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 52, - "col": 0, - "byteIndex": 1398 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "GET result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisGetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 53, - "col": 2, - "byteIndex": 1468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 54, - "col": 2, - "byteIndex": 1497 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 55, - "col": 2, - "byteIndex": 1519 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 56, - "col": 2, - "byteIndex": 1556 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisGetResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 62, - "col": 0, - "byteIndex": 1610 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis GET result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisGetResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultSuccess" - } - }, - { - "repr": "RedisGetResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultError" - } - }, - { - "repr": "RedisGetResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultFailure" - } - } - ] }, - "typeParams": [] - } - }, - { - "name": "RedisSetResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 82, - "col": 0, - "byteIndex": 2123 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful SET result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisSetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 83, - "col": 2, - "byteIndex": 2193 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 84, - "col": 2, - "byteIndex": 2221 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + { + "id": 8934, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 85, - "col": 2, - "byteIndex": 2242 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 86, - "col": 2, - "byteIndex": 2266 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "OK", - "kind": "literal", - "literal": { - "kind": "string", - "string": "OK" - } - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqPublishResultBase" + }, + "name": "RabbitMqPublishResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RedisSetResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 92, - "col": 0, - "byteIndex": 2331 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SET result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisSetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 93, - "col": 2, - "byteIndex": 2399 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 94, - "col": 2, - "byteIndex": 2427 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 95, - "col": 2, - "byteIndex": 2449 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - }, - "typeParams": [] - }, + "id": 8921, + "name": "RabbitMqPublishResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 96, - "col": 2, - "byteIndex": 2488 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "kind": "text", + "text": "Successful publish result." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisSetResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 102, - "col": 0, - "byteIndex": 2560 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SET result with connection failure." + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisSetResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 103, - "col": 2, - "byteIndex": 2630 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "children": [ + { + "id": 8926, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 104, - "col": 2, - "byteIndex": 2659 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 105, - "col": 2, - "byteIndex": 2681 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 106, - "col": 2, - "byteIndex": 2718 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.duration" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisSetResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 112, - "col": 0, - "byteIndex": 2772 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis SET result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisSetResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultSuccess" - } - }, - { - "repr": "RedisSetResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultError" - } - }, - { - "repr": "RedisSetResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultFailure" - } - } - ] }, - "typeParams": [] - } - }, - { - "name": "RedisCountResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 132, - "col": 0, - "byteIndex": 3299 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful count result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 133, - "col": 2, - "byteIndex": 3373 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 134, - "col": 2, - "byteIndex": 3401 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 135, - "col": 2, - "byteIndex": 3422 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 136, - "col": 2, - "byteIndex": 3446 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisCountResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 142, - "col": 0, - "byteIndex": 3515 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Count result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 143, - "col": 2, - "byteIndex": 3587 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 144, - "col": 2, - "byteIndex": 3615 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + { + "id": 8924, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 145, - "col": 2, - "byteIndex": 3637 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 146, - "col": 2, - "byteIndex": 3676 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisCountResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 152, - "col": 0, - "byteIndex": 3750 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Count result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultBase" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.error" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 153, - "col": 2, - "byteIndex": 3824 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 154, - "col": 2, - "byteIndex": 3853 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 8925, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 155, - "col": 2, - "byteIndex": 3875 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "rabbitmq:publish" }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 156, - "col": 2, - "byteIndex": 3912 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisCountResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 162, - "col": 0, - "byteIndex": 3995 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis numeric result (DEL, LPUSH, SADD, etc.)." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisCountResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultSuccess" - } - }, - { - "repr": "RedisCountResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultError" - } - }, - { - "repr": "RedisCountResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultFailure" - } - } - ] }, - "typeParams": [] - } - }, - { - "name": "RedisArrayResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 183, - "col": 0, - "byteIndex": 4550 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful array result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisArrayResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 185, - "col": 2, - "byteIndex": 4641 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + { + "id": 8923, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 186, - "col": 2, - "byteIndex": 4669 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.ok" + } + }, + { + "id": 8922, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 187, - "col": 2, - "byteIndex": 4690 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 188, - "col": 2, - "byteIndex": 4714 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqPublishResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqPublishResultBase" + }, + "name": "RabbitMqPublishResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] + }, + { + "id": 8739, + "name": "RabbitMqQueueOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Queue options." } ] - } - }, - { - "name": "RedisArrayResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 194, - "col": 0, - "byteIndex": 4789 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Array result with Redis error." }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisArrayResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResultBase" - } + "children": [ + { + "id": 8743, + "name": "arguments", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 196, - "col": 2, - "byteIndex": 4878 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 8742, + "name": "autoDelete", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8746, + "name": "deadLetterExchange", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8747, + "name": "deadLetterRoutingKey", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8740, + "name": "durable", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8741, + "name": "exclusive", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8745, + "name": "maxLength", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8744, + "name": "messageTtl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8751, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 197, - "col": 2, - "byteIndex": 4906 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 198, - "col": 2, - "byteIndex": 4928 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + "inheritedFrom": { + "type": "reference", + "target": 8729, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 8750, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "typeParams": [] + ] }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 199, - "col": 2, - "byteIndex": 4967 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ] - } - }, - { - "name": "RedisArrayResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 205, - "col": 0, - "byteIndex": 5041 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Array result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisArrayResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResultBase" - } + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8728, + "name": "RabbitMqOptions.signal" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 207, - "col": 2, - "byteIndex": 5132 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 8748, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, + { + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 208, - "col": 2, - "byteIndex": 5161 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "boolean" }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 209, - "col": 2, - "byteIndex": 5183 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + "inheritedFrom": { + "type": "reference", + "target": 8726, + "name": "RabbitMqOptions.throwOnError" + } + }, + { + "id": 8749, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 210, - "col": 2, - "byteIndex": 5220 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8727, + "name": "RabbitMqOptions.timeout" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RedisArrayResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 216, - "col": 0, - "byteIndex": 5301 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis array result (LRANGE, SMEMBERS, etc.)." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisArrayResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResultSuccess" - } - }, - { - "repr": "RedisArrayResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResultError" - } - }, - { - "repr": "RedisArrayResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResultFailure" - } - } - ] - }, - "typeParams": [ + "id": 8990, + "name": "RabbitMqQueueResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Queue result with RabbitMQ error." } ] - } - }, - { - "name": "RedisHashResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 236, - "col": 0, - "byteIndex": 5867 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful hash result." }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisHashResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultBase" - } + "children": [ + { + "id": 8996, + "name": "consumerCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.consumerCount" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 5939 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 8998, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 238, - "col": 2, - "byteIndex": 5967 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.duration" + } + }, + { + "id": 8993, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 239, - "col": 2, - "byteIndex": 5988 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 8919, + "name": "RabbitMqOperationError", + "package": "@probitas-test/client-rabbitmq" }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 240, - "col": 2, - "byteIndex": 6012 - }, - "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" + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.error" + } + }, + { + "id": 8997, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": "rabbitmq:queue" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisHashResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 246, - "col": 0, - "byteIndex": 6096 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Hash result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisHashResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultBase" - } + }, + { + "id": 8995, + "name": "messageCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.messageCount" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 247, - "col": 2, - "byteIndex": 6166 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 8992, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 248, - "col": 2, - "byteIndex": 6194 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 249, - "col": 2, - "byteIndex": 6216 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.ok" + } + }, + { + "id": 8991, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 250, - "col": 2, - "byteIndex": 6255 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 8994, + "name": "queue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.queue" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqQueueResultBase" + }, + "name": "RabbitMqQueueResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RedisHashResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 256, - "col": 0, - "byteIndex": 6328 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Hash result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 11851, + "name": "RabbitMqQueueResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RedisHashResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultBase" - } + "kind": "text", + "text": "Fluent API for RabbitMQ queue result validation.\n\nProvides chainable assertions specifically designed for queue declaration results\n(e.g., assertQueue, checkQueue operations)." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 257, - "col": 2, - "byteIndex": 6400 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 11852, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 258, - "col": 2, - "byteIndex": 6429 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 259, - "col": 2, - "byteIndex": 6451 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqQueueResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqQueueResult } from \"./queue.ts\";\nconst result = {\n kind: \"rabbitmq:queue\",\n ok: false,\n queue: \"test-queue\",\n messageCount: 0,\n consumerCount: 0,\n duration: 0,\n} as unknown as RabbitMqQueueResult;\n\nexpectRabbitMqQueueResult(result).not.toBeOk();\n```" + } + ] } - }, - "typeParams": [] + ] }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 260, - "col": 2, - "byteIndex": 6488 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": 11851, + "name": "RabbitMqQueueResultExpectation", + "package": "@probitas-test/expect" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisHashResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 266, - "col": 0, - "byteIndex": 6553 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis hash result (HGETALL)." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisHashResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultSuccess" - } - }, + }, + { + "id": 11853, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisHashResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultError" + "id": 11854, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 11909, + "name": "toHaveConsumerCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisHashResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultFailure" + "id": 11910, + "name": "toHaveConsumerCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the consumer count equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11911, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected consumer count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "RedisCommonResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 287, - "col": 0, - "byteIndex": 7205 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful common result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCommonResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + { + "id": 11938, + "name": "toHaveConsumerCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11939, + "name": "toHaveConsumerCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the consumer count is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11940, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 11941, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } ], - "typeName": "RedisCommonResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 289, - "col": 2, - "byteIndex": 7295 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 290, - "col": 2, - "byteIndex": 7323 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 291, - "col": 2, - "byteIndex": 7344 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 292, - "col": 2, - "byteIndex": 7368 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - } - ] - } - }, - { - "name": "RedisCommonResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 299, - "col": 0, - "byteIndex": 7550 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Common result with Redis error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCommonResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 11912, + "name": "toHaveConsumerCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11913, + "name": "toHaveConsumerCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the consumer count equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 11914, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected consumer count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "RedisCommonResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 301, - "col": 2, - "byteIndex": 7638 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 302, - "col": 2, - "byteIndex": 7666 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 303, - "col": 2, - "byteIndex": 7688 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 304, - "col": 2, - "byteIndex": 7727 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - } - ] - } - }, - { - "name": "RedisCommonResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 311, - "col": 0, - "byteIndex": 7919 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Common result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisCommonResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 11926, + "name": "toHaveConsumerCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11927, + "name": "toHaveConsumerCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the consumer count is greater than the expected value." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 11928, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } ], - "typeName": "RedisCommonResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 313, - "col": 2, - "byteIndex": 8009 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 314, - "col": 2, - "byteIndex": 8038 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 315, - "col": 2, - "byteIndex": 8060 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + } + ] + }, + { + "id": 11929, + "name": "toHaveConsumerCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11930, + "name": "toHaveConsumerCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the consumer count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11931, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 316, - "col": 2, - "byteIndex": 8097 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - } - ] - } - }, - { - "name": "RedisCommonResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 325, - "col": 0, - "byteIndex": 8354 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Redis operation result (common/generic).\n\nUsed for operations without a more specific result type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisCommonResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ] + }, + { + "id": 11932, + "name": "toHaveConsumerCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11933, + "name": "toHaveConsumerCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the consumer count is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 11934, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "typeName": "RedisCommonResultSuccess" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 11935, + "name": "toHaveConsumerCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisCommonResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 11936, + "name": "toHaveConsumerCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Asserts that the consumer count is less than or equal to the expected value." } - ], - "typeName": "RedisCommonResultError" + ] + }, + "parameters": [ + { + "id": 11937, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 11924, + "name": "toHaveConsumerCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisCommonResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 11925, + "name": "toHaveConsumerCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Asserts that the consumer count is NaN." } - ], - "typeName": "RedisCommonResultFailure" + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "RedisResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 338, - "col": 0, - "byteIndex": 8827 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union of all Redis result types." - }, - "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" - } - }, + { + "id": 11918, + "name": "toHaveConsumerCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 11919, + "name": "toHaveConsumerCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "kind": "text", + "text": "Asserts that the consumer count satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11920, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the consumer count and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11921, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11922, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11923, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] } } - ], - "typeName": "RedisArrayResult" - } - }, - { - "repr": "RedisHashResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResult" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "RedisGetResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 353, - "col": 0, - "byteIndex": 9197 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } + { + "id": 11915, + "name": "toHaveConsumerCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11916, + "name": "toHaveConsumerCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the consumer count strictly equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11917, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected consumer count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 361, - "col": 2, - "byteIndex": 9470 } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:get", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:get" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 354, - "col": 2, - "byteIndex": 9273 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 355, - "col": 2, - "byteIndex": 9313 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 356, - "col": 2, - "byteIndex": 9351 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 357, - "col": 2, - "byteIndex": 9382 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ] + }, + { + "id": 11942, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11943, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 11944, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 358, - "col": 2, - "byteIndex": 9407 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 359, - "col": 2, - "byteIndex": 9440 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisGetResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultSuccess" + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisGetResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 370, - "col": 0, - "byteIndex": 9606 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + ] + }, + { + "id": 11971, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11972, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." } - } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11973, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11974, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 378, - "col": 2, - "byteIndex": 9882 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:get", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:get" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 371, - "col": 2, - "byteIndex": 9678 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 372, - "col": 2, - "byteIndex": 9718 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 373, - "col": 2, - "byteIndex": 9756 - } - }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 374, - "col": 2, - "byteIndex": 9788 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 375, - "col": 2, - "byteIndex": 9827 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 376, - "col": 2, - "byteIndex": 9852 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisGetResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultError" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisGetResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 387, - "col": 0, - "byteIndex": 10024 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + ] + }, + { + "id": 11945, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11946, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." } - } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11947, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 395, - "col": 2, - "byteIndex": 10303 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:get", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:get" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 388, - "col": 2, - "byteIndex": 10100 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 389, - "col": 2, - "byteIndex": 10140 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 390, - "col": 2, - "byteIndex": 10179 - } - }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 391, - "col": 2, - "byteIndex": 10211 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 392, - "col": 2, - "byteIndex": 10248 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 393, - "col": 2, - "byteIndex": 10273 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisGetResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResultFailure" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisSetResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 404, - "col": 0, - "byteIndex": 10443 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ] + }, + { + "id": 11959, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11960, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 11961, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 412, - "col": 2, - "byteIndex": 10717 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:set", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:set" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 405, - "col": 2, - "byteIndex": 10519 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 406, - "col": 2, - "byteIndex": 10559 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 407, - "col": 2, - "byteIndex": 10597 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 408, - "col": 2, - "byteIndex": 10628 - } - }, - { - "tsType": { - "repr": "OK", - "kind": "literal", - "literal": { - "kind": "string", - "string": "OK" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 409, - "col": 2, - "byteIndex": 10653 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 410, - "col": 2, - "byteIndex": 10687 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisSetResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultSuccess" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisSetResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 420, - "col": 0, - "byteIndex": 10807 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + ] + }, + { + "id": 11962, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11963, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." } - } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11964, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 428, - "col": 2, - "byteIndex": 11083 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:set", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:set" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 421, - "col": 2, - "byteIndex": 10879 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 422, - "col": 2, - "byteIndex": 10919 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 423, - "col": 2, - "byteIndex": 10957 - } - }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 424, - "col": 2, - "byteIndex": 10989 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 425, - "col": 2, - "byteIndex": 11028 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 426, - "col": 2, - "byteIndex": 11053 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisSetResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultError" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisSetResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 437, - "col": 0, - "byteIndex": 11225 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + ] + }, + { + "id": 11965, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11966, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." } - } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11967, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 445, - "col": 2, - "byteIndex": 11504 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:set", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:set" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 438, - "col": 2, - "byteIndex": 11301 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 439, - "col": 2, - "byteIndex": 11341 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 440, - "col": 2, - "byteIndex": 11380 - } - }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 441, - "col": 2, - "byteIndex": 11412 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 442, - "col": 2, - "byteIndex": 11449 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 443, - "col": 2, - "byteIndex": 11474 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisSetResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResultFailure" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisCountResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 454, - "col": 0, - "byteIndex": 11644 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + ] + }, + { + "id": 11968, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11969, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11970, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 462, - "col": 2, - "byteIndex": 11916 } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:count" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 455, - "col": 2, - "byteIndex": 11724 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 456, - "col": 2, - "byteIndex": 11766 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 11957, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11958, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 457, - "col": 2, - "byteIndex": 11804 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 458, - "col": 2, - "byteIndex": 11835 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 459, - "col": 2, - "byteIndex": 11860 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 460, - "col": 2, - "byteIndex": 11886 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCountResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultSuccess" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisCountResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 471, - "col": 0, - "byteIndex": 12045 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + ] + }, + { + "id": 11951, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11952, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." } - } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11953, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11954, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11955, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11956, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 479, - "col": 2, - "byteIndex": 12327 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:count" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 472, - "col": 2, - "byteIndex": 12121 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 473, - "col": 2, - "byteIndex": 12163 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 474, - "col": 2, - "byteIndex": 12201 - } - }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 475, - "col": 2, - "byteIndex": 12233 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 476, - "col": 2, - "byteIndex": 12272 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 477, - "col": 2, - "byteIndex": 12297 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCountResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultError" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisCountResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 488, - "col": 0, - "byteIndex": 12469 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + ] + }, + { + "id": 11948, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11949, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11950, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11876, + "name": "toHaveMessageCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11877, + "name": "toHaveMessageCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message count equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11878, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 496, - "col": 2, - "byteIndex": 12754 } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:count" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 489, - "col": 2, - "byteIndex": 12549 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 490, - "col": 2, - "byteIndex": 12591 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 491, - "col": 2, - "byteIndex": 12630 - } - }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + ] + }, + { + "id": 11905, + "name": "toHaveMessageCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11906, + "name": "toHaveMessageCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message count is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11907, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11908, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 492, - "col": 2, - "byteIndex": 12662 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 493, - "col": 2, - "byteIndex": 12699 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 494, - "col": 2, - "byteIndex": 12724 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCountResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultFailure" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisArrayResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 505, - "col": 0, - "byteIndex": 12894 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ] + }, + { + "id": 11879, + "name": "toHaveMessageCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11880, + "name": "toHaveMessageCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message count equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 11881, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message count" } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11893, + "name": "toHaveMessageCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11894, + "name": "toHaveMessageCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message count is greater than the expected value." + } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11895, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 514, - "col": 2, - "byteIndex": 13189 } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:array", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:array" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 507, - "col": 2, - "byteIndex": 12991 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 508, - "col": 2, - "byteIndex": 13033 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 509, - "col": 2, - "byteIndex": 13071 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 510, - "col": 2, - "byteIndex": 13102 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ] + }, + { + "id": 11896, + "name": "toHaveMessageCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11897, + "name": "toHaveMessageCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11898, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 511, - "col": 2, - "byteIndex": 13127 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 512, - "col": 2, - "byteIndex": 13159 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisArrayResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 11899, + "name": "toHaveMessageCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11900, + "name": "toHaveMessageCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message count is less than the expected value." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 11901, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } ], - "typeName": "RedisArrayResultSuccess" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "superTypeParams": [] - } - }, - { - "name": "RedisArrayResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 523, - "col": 0, - "byteIndex": 13324 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + ] + }, + { + "id": 11902, + "name": "toHaveMessageCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11903, + "name": "toHaveMessageCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message count is less than or equal to the expected value." } - } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11904, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 532, - "col": 2, - "byteIndex": 13623 } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:array", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:array" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 525, - "col": 2, - "byteIndex": 13417 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 526, - "col": 2, - "byteIndex": 13459 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 527, - "col": 2, - "byteIndex": 13497 - } - }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + ] + }, + { + "id": 11891, + "name": "toHaveMessageCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11892, + "name": "toHaveMessageCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message count is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 528, - "col": 2, - "byteIndex": 13529 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 529, - "col": 2, - "byteIndex": 13568 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 530, - "col": 2, - "byteIndex": 13593 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisArrayResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 11885, + "name": "toHaveMessageCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11886, + "name": "toHaveMessageCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message count satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 11887, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the message count and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11888, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11889, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11890, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } ], - "typeName": "RedisArrayResultError" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "superTypeParams": [] - } - }, - { - "name": "RedisArrayResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 541, - "col": 0, - "byteIndex": 13765 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + ] + }, + { + "id": 11882, + "name": "toHaveMessageCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11883, + "name": "toHaveMessageCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message count strictly equals the expected value." } - } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11884, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 550, - "col": 2, - "byteIndex": 14067 } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:array", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:array" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 543, - "col": 2, - "byteIndex": 13862 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 544, - "col": 2, - "byteIndex": 13904 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 545, - "col": 2, - "byteIndex": 13943 - } - }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + ] + }, + { + "id": 11855, + "name": "toHaveQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11856, + "name": "toHaveQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue name equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11857, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected queue name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 546, - "col": 2, - "byteIndex": 13975 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 547, - "col": 2, - "byteIndex": 14012 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 548, - "col": 2, - "byteIndex": 14037 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisArrayResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 11870, + "name": "toHaveQueueContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11871, + "name": "toHaveQueueContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue name contains the specified substring." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 11872, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } } ], - "typeName": "RedisArrayResultFailure" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "superTypeParams": [] - } - }, - { - "name": "RedisHashResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 559, - "col": 0, - "byteIndex": 14207 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ] + }, + { + "id": 11858, + "name": "toHaveQueueEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11859, + "name": "toHaveQueueEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue name equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 11860, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "The expected queue name" } - ], - "typeName": "Record" + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11873, + "name": "toHaveQueueMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11874, + "name": "toHaveQueueMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue name matches the specified regular expression." + } + ] }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 11875, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 567, - "col": 2, - "byteIndex": 14492 } - } - ], - "properties": [ - { - "tsType": { - "repr": "redis:hash", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:hash" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 560, - "col": 2, - "byteIndex": 14285 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 561, - "col": 2, - "byteIndex": 14326 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 11864, + "name": "toHaveQueueSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11865, + "name": "toHaveQueueSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue name satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11866, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the queue name and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11867, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11868, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11869, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 562, - "col": 2, - "byteIndex": 14364 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 563, - "col": 2, - "byteIndex": 14395 } - }, - { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 11861, + "name": "toHaveQueueStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11862, + "name": "toHaveQueueStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Asserts that the queue name strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11863, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected queue name" + } + ] }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "type": { + "type": "intrinsic", + "name": "unknown" } - ], - "typeName": "Record" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 564, - "col": 2, - "byteIndex": 14420 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 565, - "col": 2, - "byteIndex": 14462 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisHashResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultSuccess" } - } - ], - "typeParams": [], - "superTypeParams": [] - } + ] + } + ] }, { - "name": "RedisHashResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 576, - "col": 0, - "byteIndex": 14637 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 8999, + "name": "RabbitMqQueueResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Queue result with connection failure." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 9005, + "name": "consumerCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.consumerCount" + } + }, + { + "id": 9007, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.duration" + } + }, + { + "id": 9002, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 584, - "col": 2, - "byteIndex": 14916 - } + ] + }, + "type": { + "type": "reference", + "target": 8920, + "name": "RabbitMqFailureError", + "package": "@probitas-test/client-rabbitmq" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:hash", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:hash" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 577, - "col": 2, - "byteIndex": 14711 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 578, - "col": 2, - "byteIndex": 14752 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 579, - "col": 2, - "byteIndex": 14790 - } - }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + }, + { + "id": 9006, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 580, - "col": 2, - "byteIndex": 14822 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 581, - "col": 2, - "byteIndex": 14861 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 582, - "col": 2, - "byteIndex": 14886 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisHashResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultError" - } + ] + }, + "type": { + "type": "literal", + "value": "rabbitmq:queue" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.kind" } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisHashResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 593, - "col": 0, - "byteIndex": 15058 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" + }, + { + "id": 9004, + "name": "messageCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.messageCount" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 9001, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 601, - "col": 2, - "byteIndex": 15340 - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.ok" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:hash", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:hash" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 594, - "col": 2, - "byteIndex": 15136 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 595, - "col": 2, - "byteIndex": 15177 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 596, - "col": 2, - "byteIndex": 15216 - } - }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + }, + { + "id": 9000, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 597, - "col": 2, - "byteIndex": 15248 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 598, - "col": 2, - "byteIndex": 15285 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 599, - "col": 2, - "byteIndex": 15310 - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.processed" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisHashResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResultFailure" - } + }, + { + "id": 9003, + "name": "queue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.queue" } - ], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqQueueResultBase" + }, + "name": "RabbitMqQueueResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RedisCommonResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 610, - "col": 0, - "byteIndex": 15480 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 8981, + "name": "RabbitMqQueueResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Successful queue result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 8987, + "name": "consumerCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.consumerCount" + } + }, + { + "id": 8989, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.duration" + } + }, + { + "id": 8984, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 619, - "col": 2, - "byteIndex": 15758 - } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:common", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:common" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 612, - "col": 2, - "byteIndex": 15570 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 613, - "col": 2, - "byteIndex": 15613 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 614, - "col": 2, - "byteIndex": 15651 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 615, - "col": 2, - "byteIndex": 15682 - } - }, - { - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + }, + { + "id": 8988, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 616, - "col": 2, - "byteIndex": 15707 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 617, - "col": 2, - "byteIndex": 15728 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCommonResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResultSuccess" - } - } - ], - "typeParams": [ - { - "name": "T" + ] + }, + "type": { + "type": "literal", + "value": "rabbitmq:queue" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.kind" } - ], - "superTypeParams": [] - } - }, - { - "name": "RedisCommonResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 628, - "col": 0, - "byteIndex": 15882 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ - { - "kind": "internal" + }, + { + "id": 8986, + "name": "messageCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.messageCount" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 8983, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" - } - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 637, - "col": 2, - "byteIndex": 16175 - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.ok" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:common", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:common" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 630, - "col": 2, - "byteIndex": 15968 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 631, - "col": 2, - "byteIndex": 16011 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 632, - "col": 2, - "byteIndex": 16049 - } - }, - { - "tsType": { - "repr": "RedisOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisOperationError" + }, + { + "id": 8982, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 633, - "col": 2, - "byteIndex": 16081 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 634, - "col": 2, - "byteIndex": 16120 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 635, - "col": 2, - "byteIndex": 16145 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCommonResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResultError" - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.processed" } - ], - "typeParams": [ - { - "name": "T" + }, + { + "id": 8985, + "name": "queue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RabbitMqQueueResultBase.queue" } - ], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-rabbitmq", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RabbitMqQueueResultBase" + }, + "name": "RabbitMqQueueResultBase", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RedisCommonResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 646, - "col": 0, - "byteIndex": 16317 - }, - "declarationKind": "export", - "jsDoc": { - "tags": [ + "id": 8781, + "name": "RabbitMqRejectOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Reject options." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 655, - "col": 2, - "byteIndex": 16613 - } + "children": [ + { + "id": 8782, + "name": "requeue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "properties": [ - { - "tsType": { - "repr": "redis:common", - "kind": "literal", - "literal": { - "kind": "string", - "string": "redis:common" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 648, - "col": 2, - "byteIndex": 16407 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 649, - "col": 2, - "byteIndex": 16450 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 8786, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 650, - "col": 2, - "byteIndex": 16489 - } - }, - { - "tsType": { - "repr": "RedisFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisFailureError" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8729, + "name": "RabbitMqOptions.retry" + } + }, + { + "id": 8785, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 651, - "col": 2, - "byteIndex": 16521 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 652, - "col": 2, - "byteIndex": 16558 - } - }, - { - "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-redis/0.5.1/result.ts", - "line": 653, - "col": 2, - "byteIndex": 16583 - } + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8728, + "name": "RabbitMqOptions.signal" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RedisCommonResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResultFailure" - } + }, + { + "id": 8783, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw errors instead of returning them in results.\nOverrides the client-level " + }, + { + "kind": "code", + "text": "`throwOnError`" + }, + { + "kind": "text", + "text": " setting." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 8726, + "name": "RabbitMqOptions.throwOnError" } - ], - "typeParams": [ - { - "name": "T" + }, + { + "id": 8784, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8727, + "name": "RabbitMqOptions.timeout" } - ], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8725, + "name": "RabbitMqOptions", + "package": "@probitas-test/client-rabbitmq" + } + ] }, { - "name": "RedisErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 140 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for Redis errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ + "id": 7129, + "name": "RedisArrayResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 11, - "col": 2, - "byteIndex": 200 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "Array result with Redis error." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 17, - "col": 0, - "byteIndex": 280 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for Redis client errors." + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 7136, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.duration" + } + }, + { + "id": 7133, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - "right": "redis", - "tsType": null + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisErrorOptions" - } - } + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 21, - "col": 2, - "byteIndex": 404 - } + ] + }, + "type": { + "type": "reference", + "target": 10296, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 18, - "col": 2, - "byteIndex": 328 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 19, - "col": 2, - "byteIndex": 377 - } + }, + { + "id": 7135, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:array" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 34, - "col": 0, - "byteIndex": 649 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a Redis connection cannot be established." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 7132, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RedisErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisErrorOptions" - } - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 38, - "col": 2, - "byteIndex": 808 - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.ok" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 35, - "col": 2, - "byteIndex": 706 - } - }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + }, + { + "id": 7131, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 36, - "col": 2, - "byteIndex": 757 - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.processed" } - ], - "indexSignatures": [], - "methods": [], - "extends": "RedisError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisCommandErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 46, - "col": 0, - "byteIndex": 963 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for Redis command errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisErrorOptions" - } + }, + { + "id": 7134, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.value", + "package": "@probitas-test/client-redis" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "command", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1035 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + } + ], + "typeParameters": [ + { + "id": 7130, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisArrayResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7130, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisArrayResultError.T", + "refersToTypeParameter": true + } + ], + "name": "RedisArrayResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "RedisCommandError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 53, - "col": 0, - "byteIndex": 1116 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a Redis command fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 9879, + "name": "RedisArrayResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "kind": "text", + "text": "Fluent API for Redis array result validation.\n\nProvides chainable assertions specifically designed for array-based results\n(e.g., LRANGE, SMEMBERS, KEYS operations)." + } + ] + }, + "children": [ + { + "id": 9880, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Negates the next assertion." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "RedisCommandErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCommandErrorOptions" + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisArrayResult } from \"@probitas-test/client-redis\";\nimport { expectRedisArrayResult } from \"./array.ts\";\nconst result = {\n kind: \"redis:array\",\n ok: true,\n value: [\"a\", \"b\"],\n duration: 0,\n} as unknown as RedisArrayResult;\n\nexpectRedisArrayResult(result).not.toHaveValueEmpty();\nexpectRedisArrayResult(result).not.toHaveValueContaining(\"x\");\n```" } - } + ] } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 58, - "col": 2, - "byteIndex": 1294 - } + ] + }, + "type": { + "type": "reference", + "target": 9879, + "name": "RedisArrayResultExpectation", + "package": "@probitas-test/expect" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 54, - "col": 2, - "byteIndex": 1170 - } - }, - { - "tsType": { - "repr": "command", - "kind": "literal", - "literal": { - "kind": "string", - "string": "command" + }, + { + "id": 9881, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9882, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 55, - "col": 2, - "byteIndex": 1218 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "command", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 56, - "col": 2, - "byteIndex": 1265 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "RedisError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "RedisScriptErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 67, - "col": 0, - "byteIndex": 1487 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for Redis script errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisErrorOptions" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "script", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 68, - "col": 2, - "byteIndex": 1558 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisScriptError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 74, - "col": 0, - "byteIndex": 1641 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a Redis Lua script fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] + }, + { + "id": 9942, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9943, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "RedisScriptErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisScriptErrorOptions" + "parameters": [ + { + "id": 9944, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 79, - "col": 2, - "byteIndex": 1815 } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 75, - "col": 2, - "byteIndex": 1694 - } - }, - { - "tsType": { - "repr": "script", - "kind": "literal", - "literal": { - "kind": "string", - "string": "script" + ] + }, + { + "id": 9971, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9972, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 9973, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 9974, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1741 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "script", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/errors.ts", - "line": 77, - "col": 2, - "byteIndex": 1787 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "RedisError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "createRedisClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/client.ts", - "line": 312, - "col": 0, - "byteIndex": 8521 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new Redis client instance.\n\nThe client provides comprehensive Redis data structure support including strings,\nhashes, lists, sets, sorted sets, pub/sub, and transactions.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- Redis client configuration" - }, - { - "kind": "return", - "doc": "A promise resolving to a new Redis client instance\n" - }, - { - "kind": "example", - "doc": "Using URL string\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({\n url: \"redis://localhost:6379/0\",\n});\n\nawait client.set(\"key\", \"value\");\nconst result = await client.get(\"key\");\nif (result.ok) {\n console.log(result.value); // \"value\"\n}\n\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using connection config object\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({\n url: {\n host: \"localhost\",\n port: 6379,\n password: \"secret\",\n db: 0,\n },\n});\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Set with expiration\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\nconst sessionData = JSON.stringify({ userId: \"123\" });\nconst data = \"temporary value\";\n\n// Set key with 1 hour TTL\nawait client.set(\"session\", sessionData, { ex: 3600 });\n\n// Set key with 5 second TTL in milliseconds\nawait client.set(\"temp\", data, { px: 5000 });\n\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Hash operations\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\nawait client.hset(\"user:123\", \"name\", \"Alice\");\nawait client.hset(\"user:123\", \"email\", \"alice@example.com\");\n\nconst user = await client.hgetall(\"user:123\");\nif (user.ok) {\n console.log(user.value); // { name: \"Alice\", email: \"alice@example.com\" }\n}\n\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Pub/Sub\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\n// Subscribe to channel (this would run indefinitely in practice)\n// for await (const message of client.subscribe(\"events\")) {\n// console.log(\"Received:\", message.message);\n// }\n\n// Publish to channel\nawait client.publish(\"events\", JSON.stringify({ type: \"user.created\" }));\n\nawait client.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nawait using client = await createRedisClient({\n url: \"redis://localhost:6379\",\n});\n\nawait client.set(\"test\", \"value\");\n// Client automatically closed when scope exits\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "RedisClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisClientConfig" + ] + }, + { + "id": 9945, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9946, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 9947, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RedisClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisClient" + ] + }, + { + "id": 9959, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9960, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 9961, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "typeName": "Promise" - } + } + ] }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "MongoCountResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 8, - "col": 0, - "byteIndex": 223 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB count result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the count result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 31, - "col": 2, - "byteIndex": 779 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveCount", - "jsDoc": { - "doc": "Asserts that the count equals the expected value.", - "tags": [ + { + "id": 9962, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9963, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9964, "name": "expected", - "doc": "- The expected count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 37, - "col": 2, - "byteIndex": 907 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveCountEqual", - "jsDoc": { - "doc": "Asserts that the count equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 9965, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9966, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9967, "name": "expected", - "doc": "- The expected count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 43, - "col": 2, - "byteIndex": 1077 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the count strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 9968, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9969, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9970, "name": "expected", - "doc": "- The expected count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 49, - "col": 2, - "byteIndex": 1241 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveCountSatisfying", - "jsDoc": { - "doc": "Asserts that the count satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 9957, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9958, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9951, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9952, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9953, "name": "matcher", - "doc": "- A function that receives the count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 55, - "col": 2, - "byteIndex": 1455 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 9954, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9955, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9956, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveCountNaN", - "jsDoc": { - "doc": "Asserts that the count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 60, - "col": 2, - "byteIndex": 1569 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the count is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 9948, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9949, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9950, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 66, - "col": 2, - "byteIndex": 1724 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the count is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 9883, + "name": "toHaveValue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9884, + "name": "toHaveValue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9885, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 72, - "col": 2, - "byteIndex": 1915 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveCountLessThan", - "jsDoc": { - "doc": "Asserts that the count is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 9898, + "name": "toHaveValueContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9899, + "name": "toHaveValueContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value array contains the specified item." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + "id": 9900, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 78, - "col": 2, - "byteIndex": 2098 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9901, + "name": "toHaveValueContainingEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9902, + "name": "toHaveValueContainingEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value array contains an item equal to the specified value." + } + ] + }, + "parameters": [ + { + "id": 9903, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for using deep equality" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the count is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 9909, + "name": "toHaveValueCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9910, + "name": "toHaveValueCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value count equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9911, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 84, - "col": 2, - "byteIndex": 2283 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveCountCloseTo", - "jsDoc": { - "doc": "Asserts that the count is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 9938, + "name": "toHaveValueCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9939, + "name": "toHaveValueCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value count is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9940, "name": "expected", - "doc": "- The expected value" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", + "id": 9941, "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 91, - "col": 2, - "byteIndex": 2527 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9912, + "name": "toHaveValueCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9913, + "name": "toHaveValueCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value count equals the expected value using deep equality." + } + ] }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "parameters": [ + { + "id": 9914, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 9926, + "name": "toHaveValueCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9927, + "name": "toHaveValueCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value count is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9928, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 97, - "col": 2, - "byteIndex": 2715 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 9929, + "name": "toHaveValueCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9930, + "name": "toHaveValueCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9931, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 103, - "col": 2, - "byteIndex": 2900 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 9932, + "name": "toHaveValueCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9933, + "name": "toHaveValueCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value count is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9934, "name": "expected", - "doc": "- The expected duration value" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 109, - "col": 2, - "byteIndex": 3079 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9935, + "name": "toHaveValueCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9936, + "name": "toHaveValueCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value count is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 9937, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 9924, + "name": "toHaveValueCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9925, + "name": "toHaveValueCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value count is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9918, + "name": "toHaveValueCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9919, + "name": "toHaveValueCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value count satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9920, "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 115, - "col": 2, - "byteIndex": 3302 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the value count and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 9921, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9922, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9923, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9915, + "name": "toHaveValueCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9916, + "name": "toHaveValueCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value count strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 9917, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value count" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 120, - "col": 2, - "byteIndex": 3422 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 9907, + "name": "toHaveValueEmpty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9908, + "name": "toHaveValueEmpty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value array is empty." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9886, + "name": "toHaveValueEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9887, + "name": "toHaveValueEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9888, "name": "expected", - "doc": "- The value to compare against" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 126, - "col": 2, - "byteIndex": 3583 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9904, + "name": "toHaveValueMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9905, + "name": "toHaveValueMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value array matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 9906, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 9892, + "name": "toHaveValueSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9893, + "name": "toHaveValueSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 9894, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 9895, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9896, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9897, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9889, + "name": "toHaveValueStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9890, + "name": "toHaveValueStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9891, "name": "expected", - "doc": "- The value to compare against" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 132, - "col": 2, - "byteIndex": 3780 - }, - "params": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 7137, + "name": "RedisArrayResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array result with connection failure." + } + ] + }, + "children": [ + { + "id": 7144, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 138, - "col": 2, - "byteIndex": 3969 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.duration" + } + }, + { + "id": 7141, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 144, - "col": 2, - "byteIndex": 4160 - }, - "params": [ + "type": { + "type": "reference", + "target": 10295, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.error" + } + }, + { + "id": 7143, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:array" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.kind" + } + }, + { + "id": 7140, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 151, - "col": 2, - "byteIndex": 4410 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.ok" + } + }, + { + "id": 7139, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.processed" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { MongoCountResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoCountResult } from \"./count.ts\";\nconst result = {\n kind: \"mongo:count\",\n ok: true,\n count: 5,\n duration: 0,\n} as unknown as MongoCountResult;\n\nexpectMongoCountResult(result).not.toHaveCount(0);\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/count.ts", - "line": 26, - "col": 2, - "byteIndex": 694 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + }, + { + "id": 7142, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.value", + "package": "@probitas-test/client-redis" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "typeParameters": [ + { + "id": 7138, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisArrayResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7138, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisArrayResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "RedisArrayResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "MongoDeleteResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 8, - "col": 0, - "byteIndex": 225 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB delete result validation." + "id": 7121, + "name": "RedisArrayResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful array result." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the delete result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 31, - "col": 2, - "byteIndex": 803 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 7128, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveDeletedCount", - "jsDoc": { - "doc": "Asserts that the deleted count equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected deleted count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 37, - "col": 2, - "byteIndex": 947 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDeletedCountEqual", - "jsDoc": { - "doc": "Asserts that the deleted count equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected deleted count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 43, - "col": 2, - "byteIndex": 1140 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveDeletedCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the deleted count strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected deleted count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 49, - "col": 2, - "byteIndex": 1327 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.duration" + } + }, + { + "id": 7125, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDeletedCountSatisfying", - "jsDoc": { - "doc": "Asserts that the deleted count satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the deleted count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 55, - "col": 2, - "byteIndex": 1564 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDeletedCountNaN", - "jsDoc": { - "doc": "Asserts that the deleted count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 60, - "col": 2, - "byteIndex": 1693 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "toHaveDeletedCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the deleted count is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 66, - "col": 2, - "byteIndex": 1863 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.error" + } + }, + { + "id": 7127, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:array" + }, + "inheritedFrom": { + "type": "reference", + "target": 7135, + "name": "RedisArrayResultBase.kind", + "package": "@probitas-test/client-redis" + } + }, + { + "id": 7124, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDeletedCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the deleted count is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 72, - "col": 2, - "byteIndex": 2069 - }, - "params": [ + "kind": "code", + "text": "`false`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDeletedCountLessThan", - "jsDoc": { - "doc": "Asserts that the deleted count is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 78, - "col": 2, - "byteIndex": 2267 - }, - "params": [ + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.ok" + } + }, + { + "id": 7123, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDeletedCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the deleted count is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 84, - "col": 2, - "byteIndex": 2467 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.processed" + } + }, + { + "id": 7126, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 7122, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisArrayResultSuccess.T", + "refersToTypeParameter": true } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisArrayResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "typeParameters": [ + { + "id": 7122, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisArrayResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7122, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisArrayResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "RedisArrayResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 6928, + "name": "RedisClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDeletedCountCloseTo", - "jsDoc": { - "doc": "Asserts that the deleted count is close to the expected value.", - "tags": [ + "kind": "text", + "text": "Redis client interface" + } + ] + }, + "children": [ + { + "id": 6929, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 6830, + "name": "RedisClientConfig", + "package": "@probitas-test/client-redis" + } + }, + { + "id": 7053, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7054, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7047, + "name": "command", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7048, + "name": "command", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 7049, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + "id": 7050, + "name": "cmd", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 91, - "col": 2, - "byteIndex": 2726 - }, - "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" + "id": 7051, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 7052, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7193, + "typeArguments": [ + { + "type": "reference", + "target": 7049, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 6947, + "name": "decr", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6948, + "name": "decr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6949, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 97, - "col": 2, - "byteIndex": 2921 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 6950, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 6939, + "name": "del", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6940, + "name": "del", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6941, + "name": "keys", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 103, - "col": 2, - "byteIndex": 3106 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 6942, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 6930, + "name": "get", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6931, + "name": "get", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6932, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 109, - "col": 2, - "byteIndex": 3285 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 6933, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7076, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 6966, + "name": "hdel", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6967, + "name": "hdel", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6968, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 115, - "col": 2, - "byteIndex": 3508 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] + "id": 6969, + "name": "fields", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 6970, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 120, - "col": 2, - "byteIndex": 3628 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 6951, + "name": "hget", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6952, + "name": "hget", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6953, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 126, - "col": 2, - "byteIndex": 3789 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 6954, + "name": "field", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6955, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7076, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 6962, + "name": "hgetall", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6963, + "name": "hgetall", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6964, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 132, - "col": 2, - "byteIndex": 3986 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 6965, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7168, + "name": "RedisHashResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 6956, + "name": "hset", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6957, + "name": "hset", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6958, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + "id": 6959, + "name": "field", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6960, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6961, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 138, - "col": 2, - "byteIndex": 4175 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 6943, + "name": "incr", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6944, + "name": "incr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6945, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6946, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 6995, + "name": "llen", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6996, + "name": "llen", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6997, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + "id": 6998, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 144, - "col": 2, - "byteIndex": 4366 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 6981, + "name": "lpop", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6982, + "name": "lpop", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6983, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6984, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7076, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 6971, + "name": "lpush", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6972, + "name": "lpush", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6973, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + "id": 6974, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } }, { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 151, - "col": 2, - "byteIndex": 4616 - }, - "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" + "id": 6975, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ + } + ] + }, + { + "id": 6989, + "name": "lrange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6990, + "name": "lrange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6991, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "example", - "doc": "```ts\nimport type { MongoDeleteResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoDeleteResult } from \"./delete.ts\";\nconst result = {\n kind: \"mongo:delete\",\n ok: true,\n deletedCount: 3,\n duration: 0,\n} as unknown as MongoDeleteResult;\n\nexpectMongoDeleteResult(result).not.toHaveDeletedCount(0);\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/delete.ts", - "line": 26, - "col": 2, - "byteIndex": 717 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoFindOneResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 10, - "col": 0, - "byteIndex": 284 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB findOne result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the findOne result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 33, - "col": 2, - "byteIndex": 890 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDoc", - "jsDoc": { - "doc": "Asserts that the doc equals the expected value.", - "tags": [ + "id": 6992, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected doc value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 39, - "col": 2, - "byteIndex": 1020 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 6993, + "name": "stop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6994, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7145, + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocEqual", - "jsDoc": { - "doc": "Asserts that the doc equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 7045, + "name": "multi", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7046, + "name": "multi", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": 6836, + "name": "RedisTransaction", + "package": "@probitas-test/client-redis" + } + } + ] + }, + { + "id": 7037, + "name": "publish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7038, + "name": "publish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7039, + "name": "channel", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected doc value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 45, - "col": 2, - "byteIndex": 1190 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 7040, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7041, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocStrictEqual", - "jsDoc": { - "doc": "Asserts that the doc strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 6985, + "name": "rpop", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6986, + "name": "rpop", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6987, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected doc value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 51, - "col": 2, - "byteIndex": 1354 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 6988, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7076, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocSatisfying", - "jsDoc": { - "doc": "Asserts that the doc satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 6976, + "name": "rpush", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6977, + "name": "rpush", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6978, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the doc and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 57, - "col": 2, - "byteIndex": 1562 - }, - "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": "MongoFindOneDoc", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "_T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "_T" - } - } - ], - "typeName": "MongoFindOneDoc" - } - } - } - ], - "typeParams": [] + "id": 6979, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 6980, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocPresent", - "jsDoc": { - "doc": "Asserts that the doc is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 64, - "col": 2, - "byteIndex": 1722 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocNull", - "jsDoc": { - "doc": "Asserts that the doc is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 69, - "col": 2, - "byteIndex": 1798 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocUndefined", - "jsDoc": { - "doc": "Asserts that the doc is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 74, - "col": 2, - "byteIndex": 1876 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocNullish", - "jsDoc": { - "doc": "Asserts that the doc is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 79, - "col": 2, - "byteIndex": 1977 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocMatching", - "jsDoc": { - "doc": "Asserts that the doc matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 6999, + "name": "sadd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7000, + "name": "sadd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7001, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 85, - "col": 2, - "byteIndex": 2123 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } + "id": 7002, + "name": "members", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } - ] + } + }, + { + "id": 7003, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocProperty", - "jsDoc": { - "doc": "Asserts that the doc has the specified property.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + } + ] + }, + { + "id": 6934, + "name": "set", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6935, + "name": "set", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6936, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", + "id": 6937, "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 94, - "col": 2, - "byteIndex": 2513 - }, - "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": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6938, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6812, + "name": "RedisSetOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7098, + "name": "RedisSetResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocPropertyContaining", - "jsDoc": { - "doc": "Asserts that the doc property contains the expected value.", - "tags": [ + } + ] + }, + { + "id": 7013, + "name": "sismember", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7014, + "name": "sismember", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7015, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "id": 7016, + "name": "member", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "expected", - "doc": "- The expected contained value" + "id": 7017, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 101, - "col": 2, - "byteIndex": 2870 - }, - "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" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7193, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" } - } - ] - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "name": "RedisCommonResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7009, + "name": "smembers", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7010, + "name": "smembers", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7011, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7012, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7145, + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocPropertyMatching", - "jsDoc": { - "doc": "Asserts that the doc property matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 7004, + "name": "srem", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7005, + "name": "srem", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7006, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "id": 7007, + "name": "members", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } }, { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" + "id": 7008, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 111, - "col": 2, - "byteIndex": 3250 - }, - "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" - } - } - ] + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 7042, + "name": "subscribe", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7043, + "name": "subscribe", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7044, + "name": "channel", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 6821, + "name": "RedisMessage", + "package": "@probitas-test/client-redis" + } + ], + "name": "AsyncIterable", + "package": "typescript" + } + } + ] + }, + { + "id": 7018, + "name": "zadd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7019, + "name": "zadd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7020, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7021, + "name": "entries", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 7022, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" + "id": 7024, + "name": "member", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 7023, + "name": "score", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "typeName": "Record" - } + } + ] } } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocPropertySatisfying", - "jsDoc": { - "doc": "Asserts that the doc property satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + } }, { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 121, - "col": 2, - "byteIndex": 3732 - }, - "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": "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": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] + "id": 7025, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 131, - "col": 2, - "byteIndex": 4084 - }, - "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": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 7026, + "name": "zrange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7027, + "name": "zrange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7028, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 137, - "col": 2, - "byteIndex": 4269 - }, - "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": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + "id": 7029, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 143, - "col": 2, - "byteIndex": 4448 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 7030, + "name": "stop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 7031, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7145, + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 7032, + "name": "zscore", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 7033, + "name": "zscore", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 7034, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" + "id": 7035, + "name": "member", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7036, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 149, - "col": 2, - "byteIndex": 4671 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7193, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "literal", + "value": null + } + ] } ], - "typeParams": [] + "name": "RedisCommonResult", + "package": "@probitas-test/client-redis" } - } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] + }, + { + "id": 6830, + "name": "RedisClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 154, - "col": 2, - "byteIndex": 4791 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Redis client configuration." + } + ] + }, + "children": [ + { + "id": 6835, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 160, - "col": 2, - "byteIndex": 4952 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Retry configuration." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 166, - "col": 2, - "byteIndex": 5149 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 6834, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 172, - "col": 2, - "byteIndex": 5338 - }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 6832, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error when operations fail.\n\nWhen " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ", failures will throw an error instead of returning a result\nwith " + }, + { + "kind": "code", + "text": "`ok: false`" + }, + { + "kind": "text", + "text": ". This can be overridden per-command." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 178, - "col": 2, - "byteIndex": 5529 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 6833, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + }, + { + "id": 6831, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Redis connection URL or configuration object." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@example", + "name": "String URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = { url: \"redis://localhost:6379\" };\n```" + } + ] + }, + { + "tag": "@example", + "name": "With password", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = { url: \"redis://:password@localhost:6379/0\" };\n```" + } + ] + }, + { + "tag": "@example", + "name": "Config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisClientConfig } from \"@probitas-test/client-redis\";\nconst config: RedisClientConfig = {\n url: { port: 6379, password: \"secret\", db: 1 },\n};\n```" + } + ] + } + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 185, - "col": 2, - "byteIndex": 5779 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "reference", + "target": 6824, + "name": "RedisConnectionConfig", + "package": "@probitas-test/client-redis" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { MongoFindOneResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoFindOneResult } from \"./find_one.ts\";\nconst result = {\n kind: \"mongo:find-one\",\n ok: true,\n doc: { name: \"Alice\" },\n duration: 0,\n} as unknown as MongoFindOneResult;\n\nexpectMongoFindOneResult(result).not.toHaveDocNullish();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find_one.ts", - "line": 28, - "col": 2, - "byteIndex": 803 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 7425, + "name": "RedisCommandErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "_T", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Options for Redis command errors." } ] - } + }, + "children": [ + { + "id": 7427, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 7407, + "name": "RedisErrorOptions.code" + } + }, + { + "id": 7426, + "name": "command", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7406, + "name": "RedisErrorOptions", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "MongoFindResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 10, - "col": 0, - "byteIndex": 274 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB find result validation." + "id": 6807, + "name": "RedisCommandOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redis command options.\n\nExtends CommonOptions with Redis-specific behavior options." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the find result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 33, - "col": 2, - "byteIndex": 856 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 6811, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveDocs", - "jsDoc": { - "doc": "Asserts that the docs equal the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected docs value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 39, - "col": 2, - "byteIndex": 987 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Retry configuration." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDocsEqual", - "jsDoc": { - "doc": "Asserts that the docs equal the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected docs value" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 45, - "col": 2, - "byteIndex": 1159 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 6810, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDocsStrictEqual", - "jsDoc": { - "doc": "Asserts that the docs strictly equal the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected docs value" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 51, - "col": 2, - "byteIndex": 1325 - }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 6808, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error when the operation fails.\n\nWhen " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ", failures will throw an error instead of returning a result\nwith " + }, + { + "kind": "code", + "text": "`ok: false`" + }, + { + "kind": "text", + "text": "." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocsSatisfying", - "jsDoc": { - "doc": "Asserts that the docs satisfy the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the docs and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 57, - "col": 2, - "byteIndex": 1534 - }, - "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": "MongoFindDocs", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "_T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "_T" - } - } - ], - "typeName": "MongoFindDocs" - } - } - } - ], - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config or defaults to false)\n```" } - } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 6809, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 6812, + "name": "RedisSetOptions" + } + ] + }, + { + "id": 7177, + "name": "RedisCommonResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDocsContaining", - "jsDoc": { - "doc": "Asserts that the docs array contains the specified item.", - "tags": [ - { - "kind": "param", - "name": "item", - "doc": "- The item to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 63, - "col": 2, - "byteIndex": 1726 - }, - "params": [ + "kind": "text", + "text": "Common result with Redis error." + } + ] + }, + "children": [ + { + "id": 7184, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDocsContainingEqual", - "jsDoc": { - "doc": "Asserts that the docs array contains an item equal to the specified value.", - "tags": [ - { - "kind": "param", - "name": "item", - "doc": "- The item to search for using deep equality" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 69, - "col": 2, - "byteIndex": 1926 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.duration" + } + }, + { + "id": 7181, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDocsMatching", - "jsDoc": { - "doc": "Asserts that the docs array matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 75, - "col": 2, - "byteIndex": 2101 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "type": { + "type": "reference", + "target": 10296, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.error" + } + }, + { + "id": 7183, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:common" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.kind" + } + }, + { + "id": 7180, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDocsEmpty", - "jsDoc": { - "doc": "Asserts that the docs array is empty." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 82, - "col": 2, - "byteIndex": 2265 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "toHaveDocsCount", - "jsDoc": { - "doc": "Asserts that the docs count equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected docs count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 88, - "col": 2, - "byteIndex": 2412 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.ok" + } + }, + { + "id": 7179, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.processed" + } + }, + { + "id": 7182, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "typeParameters": [ + { + "id": 7178, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisCommonResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7178, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisCommonResultError.T", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 9975, + "name": "RedisCommonResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDocsCountEqual", - "jsDoc": { - "doc": "Asserts that the docs count equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected docs count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 94, - "col": 2, - "byteIndex": 2596 - }, - "params": [ + "kind": "text", + "text": "Fluent API for Redis common result validation.\n\nProvides chainable assertions for generic Redis operation results." + } + ] + }, + "children": [ + { + "id": 9976, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Negates the next assertion." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisCommonResult } from \"@probitas-test/client-redis\";\nimport { expectRedisCommonResult } from \"./common.ts\";\nconst result = {\n kind: \"redis:common\",\n ok: true,\n value: \"test\",\n duration: 0,\n} as unknown as RedisCommonResult;\n\nexpectRedisCommonResult(result).not.toHaveValue(\"other\");\n```" + } + ] + } + ] }, - { - "name": "toHaveDocsCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the docs count strictly equals the expected value.", - "tags": [ + "type": { + "type": "reference", + "target": 9975, + "name": "RedisCommonResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 9977, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9978, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9994, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9995, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9996, "name": "expected", - "doc": "- The expected docs count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 100, - "col": 2, - "byteIndex": 2774 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocsCountSatisfying", - "jsDoc": { - "doc": "Asserts that the docs count satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 10023, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10024, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the docs count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 106, - "col": 2, - "byteIndex": 3002 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "id": 10025, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10026, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocsCountNaN", - "jsDoc": { - "doc": "Asserts that the docs count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 111, - "col": 2, - "byteIndex": 3125 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocsCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the docs count is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 9997, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9998, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9999, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 117, - "col": 2, - "byteIndex": 3289 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocsCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the docs count is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10011, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10012, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10013, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 123, - "col": 2, - "byteIndex": 3489 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocsCountLessThan", - "jsDoc": { - "doc": "Asserts that the docs count is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 10014, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10015, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10016, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 129, - "col": 2, - "byteIndex": 3681 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocsCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the docs count is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10017, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10018, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10019, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 135, - "col": 2, - "byteIndex": 3875 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDocsCountCloseTo", - "jsDoc": { - "doc": "Asserts that the docs count is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10020, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10021, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10022, "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 142, - "col": 2, - "byteIndex": 4128 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10009, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10010, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10003, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10004, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10005, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10006, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10007, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10008, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10000, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10001, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10002, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 148, - "col": 2, - "byteIndex": 4320 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 9979, + "name": "toHaveValue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9980, + "name": "toHaveValue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9981, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 154, - "col": 2, - "byteIndex": 4505 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 9982, + "name": "toHaveValueEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9983, + "name": "toHaveValueEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9984, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 160, - "col": 2, - "byteIndex": 4684 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 9988, + "name": "toHaveValueSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9989, + "name": "toHaveValueSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9990, "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 166, - "col": 2, - "byteIndex": 4907 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the value and performs assertions" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 9991, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9992, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9993, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 171, - "col": 2, - "byteIndex": 5027 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 9985, + "name": "toHaveValueStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9986, + "name": "toHaveValueStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 9987, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 177, - "col": 2, - "byteIndex": 5188 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + } + ] + }, + { + "id": 7185, + "name": "RedisCommonResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 183, - "col": 2, - "byteIndex": 5385 - }, - "params": [ + "kind": "text", + "text": "Common result with connection failure." + } + ] + }, + "children": [ + { + "id": 7192, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 189, - "col": 2, - "byteIndex": 5574 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.duration" + } + }, + { + "id": 7189, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 195, - "col": 2, - "byteIndex": 5765 - }, - "params": [ + "type": { + "type": "reference", + "target": 10295, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.error" + } + }, + { + "id": 7191, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:common" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.kind" + } + }, + { + "id": 7188, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 202, - "col": 2, - "byteIndex": 6015 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.ok" + } + }, + { + "id": 7187, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.processed" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { MongoFindResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoFindResult } from \"./find.ts\";\nconst result = {\n kind: \"mongo:find\",\n ok: true,\n docs: [{ name: \"Alice\" }],\n duration: 0,\n} as unknown as MongoFindResult;\n\nexpectMongoFindResult(result).not.toHaveDocsEmpty();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/find.ts", - "line": 28, - "col": 2, - "byteIndex": 772 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + }, + { + "id": 7190, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.value", + "package": "@probitas-test/client-redis" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "_T", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + } + ], + "typeParameters": [ + { + "id": 7186, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisCommonResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7186, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisCommonResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "MongoInsertManyResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 8, - "col": 0, - "byteIndex": 233 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB insertMany result validation." + "id": 7169, + "name": "RedisCommonResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful common result." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the insert result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 32, - "col": 2, - "byteIndex": 880 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 7176, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveInsertedIds", - "jsDoc": { - "doc": "Asserts that the inserted IDs equal the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected inserted IDs" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 38, - "col": 2, - "byteIndex": 1021 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveInsertedIdsEqual", - "jsDoc": { - "doc": "Asserts that the inserted IDs equal the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected inserted IDs" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 44, - "col": 2, - "byteIndex": 1210 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveInsertedIdsStrictEqual", - "jsDoc": { - "doc": "Asserts that the inserted IDs strictly equal the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected inserted IDs" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 50, - "col": 2, - "byteIndex": 1393 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.duration" + } + }, + { + "id": 7173, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveInsertedIdsSatisfying", - "jsDoc": { - "doc": "Asserts that the inserted IDs satisfy the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the inserted IDs and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 56, - "col": 2, - "byteIndex": 1625 - }, - "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": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "toHaveInsertedIdsContaining", - "jsDoc": { - "doc": "Asserts that the inserted IDs array contains the specified item.", - "tags": [ - { - "kind": "param", - "name": "item", - "doc": "- The item to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 62, - "col": 2, - "byteIndex": 1823 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.error" + } + }, + { + "id": 7175, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:common" + }, + "inheritedFrom": { + "type": "reference", + "target": 7183, + "name": "RedisCommonResultBase.kind", + "package": "@probitas-test/client-redis" + } + }, + { + "id": 7172, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveInsertedIdsContainingEqual", - "jsDoc": { - "doc": "Asserts that the inserted IDs array contains an item equal to the specified value.", - "tags": [ - { - "kind": "param", - "name": "item", - "doc": "- The item to search for using deep equality" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 68, - "col": 2, - "byteIndex": 2038 - }, - "params": [ + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.ok" + } + }, + { + "id": 7171, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveInsertedIdsMatching", - "jsDoc": { - "doc": "Asserts that the inserted IDs array matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 74, - "col": 2, - "byteIndex": 2228 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.processed" + } + }, + { + "id": 7174, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 7170, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisCommonResultSuccess.T", + "refersToTypeParameter": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCommonResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "typeParameters": [ + { + "id": 7170, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisCommonResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7170, + "name": "T", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisCommonResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 6824, + "name": "RedisConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveInsertedIdsEmpty", - "jsDoc": { - "doc": "Asserts that the inserted IDs array is empty." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 81, - "col": 2, - "byteIndex": 2407 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Redis connection configuration.\n\nExtends CommonConnectionConfig with Redis-specific options." + } + ] + }, + "children": [ + { + "id": 6825, + "name": "db", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveInsertedCount", - "jsDoc": { - "doc": "Asserts that the inserted count equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected inserted count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 87, - "col": 2, - "byteIndex": 2569 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Database index." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveInsertedCountEqual", - "jsDoc": { - "doc": "Asserts that the inserted count equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected inserted count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 93, - "col": 2, - "byteIndex": 2765 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n0\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveInsertedCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the inserted count strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected inserted count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 99, - "col": 2, - "byteIndex": 2955 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6826, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Hostname or IP address." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveInsertedCountSatisfying", - "jsDoc": { - "doc": "Asserts that the inserted count satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the inserted count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 105, - "col": 2, - "byteIndex": 3195 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" } - } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveInsertedCountNaN", - "jsDoc": { - "doc": "Asserts that the inserted count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 110, - "col": 2, - "byteIndex": 3326 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" }, - { - "name": "toHaveInsertedCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the inserted count is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 116, - "col": 2, - "byteIndex": 3498 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" + } + }, + { + "id": 6829, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveInsertedCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the inserted count is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 122, - "col": 2, - "byteIndex": 3706 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 6827, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 6828, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 7106, + "name": "RedisCountResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveInsertedCountLessThan", - "jsDoc": { - "doc": "Asserts that the inserted count is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 128, - "col": 2, - "byteIndex": 3906 - }, - "params": [ + "kind": "text", + "text": "Count result with Redis error." + } + ] + }, + "children": [ + { + "id": 7112, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveInsertedCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the inserted count is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 134, - "col": 2, - "byteIndex": 4108 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.duration" + } + }, + { + "id": 7109, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveInsertedCountCloseTo", - "jsDoc": { - "doc": "Asserts that the inserted count is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 141, - "col": 2, - "byteIndex": 4369 - }, - "params": [ + "type": { + "type": "reference", + "target": 10296, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.error" + } + }, + { + "id": 7111, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:count" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.kind" + } + }, + { + "id": 7108, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 147, - "col": 2, - "byteIndex": 4565 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.ok" + } + }, + { + "id": 7107, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.processed" + } + }, + { + "id": 7110, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisCountResultBase" + }, + "name": "RedisCountResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 10027, + "name": "RedisCountResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 153, - "col": 2, - "byteIndex": 4750 - }, - "params": [ + "kind": "text", + "text": "Fluent API for Redis count result validation.\n\nProvides chainable assertions specifically designed for count-based results\n(e.g., DEL, LPUSH, SCARD operations)." + } + ] + }, + "children": [ + { + "id": 10028, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Negates the next assertion." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisCountResult } from \"@probitas-test/client-redis\";\nimport { expectRedisCountResult } from \"./count.ts\";\nconst result = {\n kind: \"redis:count\",\n ok: true,\n value: 5,\n duration: 0,\n} as unknown as RedisCountResult;\n\nexpectRedisCountResult(result).not.toHaveValue(0);\n```" + } + ] + } + ] }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + "type": { + "type": "reference", + "target": 10027, + "name": "RedisCountResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 10029, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10030, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10064, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10065, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10066, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 159, - "col": 2, - "byteIndex": 4929 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 10093, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10094, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 165, - "col": 2, - "byteIndex": 5152 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "id": 10095, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10096, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 170, - "col": 2, - "byteIndex": 5272 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 10067, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10068, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10069, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 176, - "col": 2, - "byteIndex": 5433 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10081, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10082, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10083, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 182, - "col": 2, - "byteIndex": 5630 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 10084, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10085, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10086, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 188, - "col": 2, - "byteIndex": 5819 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10087, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10088, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10089, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 194, - "col": 2, - "byteIndex": 6010 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10090, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10091, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10092, "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 201, - "col": 2, - "byteIndex": 6260 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10079, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10080, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { MongoInsertManyResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoInsertManyResult } from \"./insert_many.ts\";\nconst result = {\n kind: \"mongo:insert-many\",\n ok: true,\n insertedIds: [\"1\", \"2\", \"3\"],\n insertedCount: 3,\n duration: 0,\n} as unknown as MongoInsertManyResult;\n\nexpectMongoInsertManyResult(result).not.toHaveInsertedCount(0);\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_many.ts", - "line": 27, - "col": 2, - "byteIndex": 794 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoInsertOneResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 8, - "col": 0, - "byteIndex": 231 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB insertOne result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the insert result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 31, - "col": 2, - "byteIndex": 822 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveInsertedId", - "jsDoc": { - "doc": "Asserts that the inserted ID equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10073, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10074, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected inserted ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 37, - "col": 2, - "byteIndex": 962 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 10075, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10076, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10077, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10078, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveInsertedIdEqual", - "jsDoc": { - "doc": "Asserts that the inserted ID equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 10070, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10071, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10072, "name": "expected", - "doc": "- The expected inserted ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 43, - "col": 2, - "byteIndex": 1149 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveInsertedIdStrictEqual", - "jsDoc": { - "doc": "Asserts that the inserted ID strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10031, + "name": "toHaveValue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10032, + "name": "toHaveValue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10033, "name": "expected", - "doc": "- The expected inserted ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 49, - "col": 2, - "byteIndex": 1330 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveInsertedIdSatisfying", - "jsDoc": { - "doc": "Asserts that the inserted ID satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 10060, + "name": "toHaveValueCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10061, + "name": "toHaveValueCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the inserted ID and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 55, - "col": 2, - "byteIndex": 1561 - }, - "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": "string", - "kind": "keyword", - "keyword": "string" - } + "id": 10062, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10063, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveInsertedIdContaining", - "jsDoc": { - "doc": "Asserts that the inserted ID contains the specified substring.", - "tags": [ + } + ] + }, + { + "id": 10034, + "name": "toHaveValueEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10035, + "name": "toHaveValueEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 61, - "col": 2, - "byteIndex": 1761 - }, - "params": [ - { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 10036, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveInsertedIdMatching", - "jsDoc": { - "doc": "Asserts that the inserted ID matches the specified regular expression.", - "tags": [ + } + ] + }, + { + "id": 10048, + "name": "toHaveValueGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10049, + "name": "toHaveValueGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10050, "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 67, - "col": 2, - "byteIndex": 1965 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10051, + "name": "toHaveValueGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10052, + "name": "toHaveValueGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10053, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 73, - "col": 2, - "byteIndex": 2139 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 10054, + "name": "toHaveValueLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10055, + "name": "toHaveValueLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10056, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 79, - "col": 2, - "byteIndex": 2324 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10057, + "name": "toHaveValueLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10058, + "name": "toHaveValueLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10059, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 85, - "col": 2, - "byteIndex": 2503 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 10046, + "name": "toHaveValueNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10047, + "name": "toHaveValueNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10040, + "name": "toHaveValueSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10041, + "name": "toHaveValueSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10042, "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 91, - "col": 2, - "byteIndex": 2726 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the value and performs assertions" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10043, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10044, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10045, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 96, - "col": 2, - "byteIndex": 2846 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 10037, + "name": "toHaveValueStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10038, + "name": "toHaveValueStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10039, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 102, - "col": 2, - "byteIndex": 3007 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + } + ] + }, + { + "id": 7113, + "name": "RedisCountResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 108, - "col": 2, - "byteIndex": 3204 - }, - "params": [ + "kind": "text", + "text": "Count result with connection failure." + } + ] + }, + "children": [ + { + "id": 7119, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 114, - "col": 2, - "byteIndex": 3393 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.duration" + } + }, + { + "id": 7116, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 120, - "col": 2, - "byteIndex": 3584 - }, - "params": [ + "type": { + "type": "reference", + "target": 10295, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.error" + } + }, + { + "id": 7118, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:count" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.kind" + } + }, + { + "id": 7115, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 127, - "col": 2, - "byteIndex": 3834 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.ok" + } + }, + { + "id": 7114, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.processed" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { MongoInsertOneResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoInsertOneResult } from \"./insert_one.ts\";\nconst result = {\n kind: \"mongo:insert-one\",\n ok: false,\n insertedId: \"123\",\n duration: 0,\n} as unknown as MongoInsertOneResult;\n\nexpectMongoInsertOneResult(result).not.toBeOk();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/insert_one.ts", - "line": 26, - "col": 2, - "byteIndex": 736 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + }, + { + "id": 7117, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.value", + "package": "@probitas-test/client-redis" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisCountResultBase" + }, + "name": "RedisCountResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "MongoUpdateResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 10, - "col": 0, - "byteIndex": 282 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB update result validation." + "id": 7099, + "name": "RedisCountResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful count result." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the update result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 35, - "col": 2, - "byteIndex": 915 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 7105, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveMatchedCount", - "jsDoc": { - "doc": "Asserts that the matched count equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected matched count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 41, - "col": 2, - "byteIndex": 1059 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMatchedCountEqual", - "jsDoc": { - "doc": "Asserts that the matched count equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected matched count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 47, - "col": 2, - "byteIndex": 1252 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.duration" + } + }, + { + "id": 7102, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMatchedCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the matched count strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected matched count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 53, - "col": 2, - "byteIndex": 1439 - }, - "params": [ + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.error" + } + }, + { + "id": 7104, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:count" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.kind" + } + }, + { + "id": 7101, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMatchedCountSatisfying", - "jsDoc": { - "doc": "Asserts that the matched count satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the matched count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 59, - "col": 2, - "byteIndex": 1676 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.ok" + } + }, + { + "id": 7100, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMatchedCountNaN", - "jsDoc": { - "doc": "Asserts that the matched count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 64, - "col": 2, - "byteIndex": 1805 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.processed" + } + }, + { + "id": 7103, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisCountResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisCountResultBase" + }, + "name": "RedisCountResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 7406, + "name": "RedisErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveMatchedCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the matched count is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 70, - "col": 2, - "byteIndex": 1975 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Options for Redis errors." + } + ] + }, + "children": [ + { + "id": 7407, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 7425, + "name": "RedisCommandErrorOptions" + }, + { + "type": "reference", + "target": 7437, + "name": "RedisScriptErrorOptions" + } + ] + }, + { + "id": 7062, + "name": "RedisGetResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveMatchedCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the matched count is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 76, - "col": 2, - "byteIndex": 2181 - }, - "params": [ + "kind": "text", + "text": "GET result with Redis error." + } + ] + }, + "children": [ + { + "id": 7068, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMatchedCountLessThan", - "jsDoc": { - "doc": "Asserts that the matched count is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 82, - "col": 2, - "byteIndex": 2379 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7068, + "name": "RedisGetResultBase.duration", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisResultBase.duration" + } + }, + { + "id": 7065, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMatchedCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the matched count is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 88, - "col": 2, - "byteIndex": 2579 - }, - "params": [ + "type": { + "type": "reference", + "target": 10296, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.error" + } + }, + { + "id": 7067, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:get" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.kind" + } + }, + { + "id": 7064, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMatchedCountCloseTo", - "jsDoc": { - "doc": "Asserts that the matched count is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 95, - "col": 2, - "byteIndex": 2838 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.ok" + } + }, + { + "id": 7063, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.processed" + } + }, + { + "id": 7066, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisGetResultBase" + }, + "name": "RedisGetResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 10097, + "name": "RedisGetResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveModifiedCount", - "jsDoc": { - "doc": "Asserts that the modified count equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected modified count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 101, - "col": 2, - "byteIndex": 3039 - }, - "params": [ + "kind": "text", + "text": "Fluent API for Redis get result validation.\n\nProvides chainable assertions specifically designed for Redis GET operation results." + } + ] + }, + "children": [ + { + "id": 10098, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Negates the next assertion." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveModifiedCountEqual", - "jsDoc": { - "doc": "Asserts that the modified count equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected modified count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 107, - "col": 2, - "byteIndex": 3235 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisGetResult } from \"@probitas-test/client-redis\";\nimport { expectRedisGetResult } from \"./get.ts\";\nconst result = {\n kind: \"redis:get\",\n ok: true,\n value: \"hello\",\n duration: 0,\n} as unknown as RedisGetResult;\n\nexpectRedisGetResult(result).not.toHaveValue(\"world\");\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveModifiedCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the modified count strictly equals the expected value.", - "tags": [ + "type": { + "type": "reference", + "target": 10097, + "name": "RedisGetResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 10099, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10100, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10130, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10131, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10132, "name": "expected", - "doc": "- The expected modified count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 113, - "col": 2, - "byteIndex": 3425 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveModifiedCountSatisfying", - "jsDoc": { - "doc": "Asserts that the modified count satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 10159, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10160, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the modified count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 119, - "col": 2, - "byteIndex": 3665 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "id": 10161, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10162, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveModifiedCountNaN", - "jsDoc": { - "doc": "Asserts that the modified count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 124, - "col": 2, - "byteIndex": 3796 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveModifiedCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the modified count is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 10133, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10134, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10135, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 130, - "col": 2, - "byteIndex": 3968 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveModifiedCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the modified count is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10147, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10148, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10149, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 136, - "col": 2, - "byteIndex": 4176 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveModifiedCountLessThan", - "jsDoc": { - "doc": "Asserts that the modified count is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 10150, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10151, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10152, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 142, - "col": 2, - "byteIndex": 4376 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveModifiedCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the modified count is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10153, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10154, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10155, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 148, - "col": 2, - "byteIndex": 4578 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveModifiedCountCloseTo", - "jsDoc": { - "doc": "Asserts that the modified count is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10156, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10157, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10158, "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 155, - "col": 2, - "byteIndex": 4839 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10145, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10146, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUpsertedId", - "jsDoc": { - "doc": "Asserts that the upserted ID equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10139, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10140, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected upserted ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 161, - "col": 2, - "byteIndex": 5035 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 10141, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10142, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10143, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10144, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUpsertedIdEqual", - "jsDoc": { - "doc": "Asserts that the upserted ID equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 10136, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10137, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10138, "name": "expected", - "doc": "- The expected upserted ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 167, - "col": 2, - "byteIndex": 5222 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUpsertedIdStrictEqual", - "jsDoc": { - "doc": "Asserts that the upserted ID strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10101, + "name": "toHaveValue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10102, + "name": "toHaveValue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10103, "name": "expected", - "doc": "- The expected upserted ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 173, - "col": 2, - "byteIndex": 5403 - }, - "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": "toHaveUpsertedIdSatisfying", - "jsDoc": { - "doc": "Asserts that the upserted ID satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the upserted ID and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 179, - "col": 2, - "byteIndex": 5634 - }, - "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": "MongoUpsertedId", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpsertedId" - } - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUpsertedIdPresent", - "jsDoc": { - "doc": "Asserts that the upserted ID is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 186, - "col": 2, - "byteIndex": 5805 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUpsertedIdNull", - "jsDoc": { - "doc": "Asserts that the upserted ID is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 191, - "col": 2, - "byteIndex": 5896 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUpsertedIdUndefined", - "jsDoc": { - "doc": "Asserts that the upserted ID is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 196, - "col": 2, - "byteIndex": 5989 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUpsertedIdNullish", - "jsDoc": { - "doc": "Asserts that the upserted ID is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 201, - "col": 2, - "byteIndex": 6105 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUpsertedIdContaining", - "jsDoc": { - "doc": "Asserts that the upserted ID contains the specified substring.", - "tags": [ + } + ] + }, + { + "id": 10116, + "name": "toHaveValueContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10117, + "name": "toHaveValueContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value contains the specified substring." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10118, "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 207, - "col": 2, - "byteIndex": 6270 - }, - "params": [ - { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveUpsertedIdMatching", - "jsDoc": { - "doc": "Asserts that the upserted ID matches the specified regular expression.", - "tags": [ + } + ] + }, + { + "id": 10104, + "name": "toHaveValueEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10105, + "name": "toHaveValueEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10106, "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 213, - "col": 2, - "byteIndex": 6474 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10119, + "name": "toHaveValueMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10120, + "name": "toHaveValueMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value matches the specified regular expression." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 10121, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 219, - "col": 2, - "byteIndex": 6648 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 225, - "col": 2, - "byteIndex": 6833 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + } + ] + }, + { + "id": 10124, + "name": "toHaveValueNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10125, + "name": "toHaveValueNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10128, + "name": "toHaveValueNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10129, + "name": "toHaveValueNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10122, + "name": "toHaveValuePresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10123, + "name": "toHaveValuePresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10110, + "name": "toHaveValueSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10111, + "name": "toHaveValueSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 231, - "col": 2, - "byteIndex": 7012 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 10112, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10113, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10114, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10115, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 10107, + "name": "toHaveValueStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10108, + "name": "toHaveValueStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 237, - "col": 2, - "byteIndex": 7235 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "id": 10109, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + }, + { + "id": 10126, + "name": "toHaveValueUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10127, + "name": "toHaveValueUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 7069, + "name": "RedisGetResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 242, - "col": 2, - "byteIndex": 7355 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "GET result with connection failure." + } + ] + }, + "children": [ + { + "id": 7075, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 248, - "col": 2, - "byteIndex": 7516 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 254, - "col": 2, - "byteIndex": 7713 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 260, - "col": 2, - "byteIndex": 7902 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": 7068, + "name": "RedisGetResultBase.duration", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisResultBase.duration" + } + }, + { + "id": 7072, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 266, - "col": 2, - "byteIndex": 8093 - }, - "params": [ + "type": { + "type": "reference", + "target": 10295, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.error" + } + }, + { + "id": 7074, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:get" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.kind" + } + }, + { + "id": 7071, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 273, - "col": 2, - "byteIndex": 8343 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.ok" + } + }, + { + "id": 7070, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.processed" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { MongoUpdateResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoUpdateResult } from \"./update.ts\";\nconst result = {\n kind: \"mongo:update\",\n ok: true,\n matchedCount: 2,\n modifiedCount: 2,\n upsertedId: undefined,\n duration: 0,\n} as unknown as MongoUpdateResult;\n\nexpectMongoUpdateResult(result).not.toHaveMatchedCount(0);\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb/update.ts", - "line": 30, - "col": 2, - "byteIndex": 829 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + }, + { + "id": 7073, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.value", + "package": "@probitas-test/client-redis" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisGetResultBase" + }, + "name": "RedisGetResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "MongoExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb.ts", - "line": 54, - "col": 0, - "byteIndex": 1322 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation type returned by expectMongoResult based on the result type." + "id": 7055, + "name": "RedisGetResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful GET result." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" + "children": [ + { + "id": 7061, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "extendsType": { - "repr": "MongoFindResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "infer", - "infer": { - "typeParam": { - "name": "T" - } - } - } - ], - "typeName": "MongoFindResult" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 7068, + "name": "RedisGetResultBase.duration", + "package": "@probitas-test/client-redis", + "qualifiedName": "RedisResultBase.duration" + } + }, + { + "id": 7058, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "trueType": { - "repr": "MongoFindResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultExpectation" + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.error" + } + }, + { + "id": 7060, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:get" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.kind" + } + }, + { + "id": 7057, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "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": "MongoInsertOneResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultExpectation" - } - }, - "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": "MongoInsertManyResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultExpectation" - } - }, - "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" - } - } - } - } - } - } - } - } - } - } - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.ok" + } + }, + { + "id": 7056, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.processed" } }, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "MongoResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoResult" + { + "id": 7059, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null } - } + ] + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisGetResultBase.value", + "package": "@probitas-test/client-redis" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisGetResultBase" + }, + "name": "RedisGetResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "expectMongoResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/mongodb.ts", - "line": 131, - "col": 0, - "byteIndex": 4073 - }, - "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": [ + "id": 7154, + "name": "RedisHashResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nimport type { MongoFindResult, MongoInsertOneResult, MongoUpdateResult, MongoDeleteResult, MongoFindOneResult, MongoCountResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoResult } from \"./mongodb.ts\";\n\n// For find result - returns MongoFindResultExpectation\nconst findResult = {\n kind: \"mongo:find\",\n ok: true,\n docs: [{ name: \"Alice\" }],\n duration: 0,\n} as unknown as MongoFindResult;\nexpectMongoResult(findResult).toBeOk().toHaveDocsCount(1);\n\n// For insert result - returns MongoInsertOneResultExpectation\nconst insertResult = {\n kind: \"mongo:insert-one\",\n ok: true,\n insertedId: \"123\",\n duration: 0,\n} as unknown as MongoInsertOneResult;\nexpectMongoResult(insertResult).toBeOk().toHaveInsertedId(\"123\");\n\n// For update result - returns MongoUpdateResultExpectation\nconst updateResult = {\n kind: \"mongo:update\",\n ok: true,\n matchedCount: 1,\n modifiedCount: 1,\n duration: 0,\n} as unknown as MongoUpdateResult;\nexpectMongoResult(updateResult).toBeOk().toHaveMatchedCount(1).toHaveModifiedCount(1);\n\n// For delete result - returns MongoDeleteResultExpectation\nconst deleteResult = {\n kind: \"mongo:delete\",\n ok: true,\n deletedCount: 1,\n duration: 0,\n} as unknown as MongoDeleteResult;\nexpectMongoResult(deleteResult).toBeOk().toHaveDeletedCount(1);\n\n// For findOne result - returns MongoFindOneResultExpectation\nconst findOneResult = {\n kind: \"mongo:find-one\",\n ok: true,\n doc: { name: \"Alice\" },\n duration: 0,\n} as unknown as MongoFindOneResult;\nexpectMongoResult(findOneResult).toBeOk().toHaveDocPresent();\n\n// For count result - returns MongoCountResultExpectation\nconst countResult = {\n kind: \"mongo:count\",\n ok: true,\n count: 10,\n duration: 0,\n} as unknown as MongoCountResult;\nexpectMongoResult(countResult).toBeOk().toHaveCount(10);\n```" + "kind": "text", + "text": "Hash result with Redis error." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" + "children": [ + { + "id": 7160, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.duration" } - ], - "returnType": { - "repr": "MongoExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 7157, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "typeName": "MongoExpectation" + ] + }, + "type": { + "type": "reference", + "target": 10296, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.error" } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "MongoResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoResult" + { + "id": 7159, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:hash" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.kind" + } + }, + { + "id": 7156, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.ok" } - ] - } + }, + { + "id": 7155, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.processed" + } + }, + { + "id": 7158, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisHashResultBase" + }, + "name": "RedisHashResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "MongoCountResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 370, - "col": 0, - "byteIndex": 9221 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Count result." + "id": 10163, + "name": "RedisHashResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fluent API for Redis hash result validation.\n\nProvides chainable assertions specifically designed for hash-based results\n(e.g., HGETALL, HMGET operations)." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoCountResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultSuccess" + "children": [ + { + "id": 10164, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } - }, - { - "repr": "MongoCountResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultError" + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisHashResult } from \"@probitas-test/client-redis\";\nimport { expectRedisHashResult } from \"./hash.ts\";\nconst result = {\n kind: \"redis:hash\",\n ok: true,\n value: { name: \"Alice\" },\n duration: 0,\n} as unknown as RedisHashResult;\n\nexpectRedisHashResult(result).not.toHaveValueProperty(\"age\");\n```" + } + ] } - }, + ] + }, + "type": { + "type": "reference", + "target": 10163, + "name": "RedisHashResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 10165, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoCountResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultFailure" + "id": 10166, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "MongoDeleteResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 320, - "col": 0, - "byteIndex": 8044 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoDeleteResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultSuccess" - } - }, + { + "id": 10204, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoDeleteResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultError" + "id": 10205, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10206, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 10233, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoDeleteResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultFailure" + "id": 10234, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10235, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 10236, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "MongoFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 150, - "col": 0, - "byteIndex": 3747 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the MongoDB server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoConnectionError" + { + "id": 10207, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10208, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10209, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 10221, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + "id": 10222, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10223, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 10224, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + "id": 10225, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 10226, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "MongoFindOneResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 106, - "col": 0, - "byteIndex": 2585 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "FindOne result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoFindOneResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + { + "id": 10227, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10228, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10229, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "typeName": "MongoFindOneResultSuccess" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 10230, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoFindOneResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 10231, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." } - ], - "typeName": "MongoFindOneResultError" - } - }, - { - "repr": "MongoFindOneResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ] + }, + "parameters": [ + { + "id": 10232, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "typeName": "MongoFindOneResultFailure" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } - } - ] - } - }, - { - "name": "MongoFindResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 53, - "col": 0, - "byteIndex": 1315 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Query result (find, aggregate)." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoFindResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultSuccess" - } - }, + { + "id": 10219, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoFindResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 10220, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Asserts that the duration is NaN." } - ], - "typeName": "MongoFindResultError" + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 10213, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoFindResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 10214, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10215, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10216, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10217, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10218, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] } } - ], - "typeName": "MongoFindResultFailure" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } - } - ] - } - }, - { - "name": "MongoInsertManyResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 212, - "col": 0, - "byteIndex": 5317 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Insert many result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoInsertManyResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultSuccess" - } - }, - { - "repr": "MongoInsertManyResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultError" - } - }, + { + "id": 10210, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoInsertManyResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultFailure" + "id": 10211, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10212, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "MongoInsertOneResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 156, - "col": 0, - "byteIndex": 3867 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Insert one result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoInsertOneResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultSuccess" - } - }, - { - "repr": "MongoInsertOneResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultError" - } - }, + { + "id": 10167, + "name": "toHaveValue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoInsertOneResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultFailure" + "id": 10168, + "name": "toHaveValue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10169, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "MongoResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 383, - "col": 0, - "byteIndex": 9674 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union of all MongoDB result types." - }, - "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" - } - }, + { + "id": 10170, + "name": "toHaveValueEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoFindOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 10171, + "name": "toHaveValueEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Asserts that the value equals the expected value using deep equality." } - ], - "typeName": "MongoFindOneResult" - } - }, - { - "repr": "MongoCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResult" + ] + }, + "parameters": [ + { + "id": 10172, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "MongoUpdateResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 270, - "col": 0, - "byteIndex": 6825 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Update result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoUpdateResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultSuccess" - } - }, - { - "repr": "MongoUpdateResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultError" - } - }, + { + "id": 10182, + "name": "toHaveValueMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoUpdateResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultFailure" + "id": 10183, + "name": "toHaveValueMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 10184, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "MongoOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 32, - "col": 0, - "byteIndex": 612 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Common options with throwOnError support." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 38, - "col": 2, - "byteIndex": 836 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 46, - "col": 0, - "byteIndex": 985 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB connection configuration.\n\nExtends CommonConnectionConfig with MongoDB-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "database", - "jsDoc": { - "doc": "Database name to connect to." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 50, - "col": 2, - "byteIndex": 1105 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "authSource", - "jsDoc": { - "doc": "Authentication database." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 55, - "col": 2, - "byteIndex": 1178 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "replicaSet", - "jsDoc": { - "doc": "Replica set name." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 60, - "col": 2, - "byteIndex": 1246 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "Document", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 67, - "col": 0, - "byteIndex": 1429 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB document type" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + { + "id": 10185, + "name": "toHaveValueProperty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10186, + "name": "toHaveValueProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value has the specified property." + } + ] }, - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "parameters": [ + { + "id": 10187, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 10188, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional expected value at the key path" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "typeName": "Record" - } - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - } - ] - } - }, - { - "name": "Filter", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 74, - "col": 0, - "byteIndex": 1732 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB filter type (simplified for compatibility with mongodb driver)\nAllows query operators like $gte, $lt, $in, etc." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } + ] }, - "typeParams": [] - } - }, - { - "name": "UpdateFilter", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 81, - "col": 0, - "byteIndex": 2038 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB update filter type (simplified for compatibility with mongodb driver)\nAllows update operators like $set, $inc, $unset, etc." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + { + "id": 10189, + "name": "toHaveValuePropertyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10190, + "name": "toHaveValuePropertyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value property contains the expected value." + } + ] }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - }, - "typeParams": [] - } - }, - { - "name": "MongoFindOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 86, - "col": 0, - "byteIndex": 2119 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB find options" - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "sort", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 87, - "col": 2, - "byteIndex": 2178 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "1", - "kind": "literal", - "literal": { - "kind": "number", - "number": 1 - } + "parameters": [ + { + "id": 10191, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" }, { - "repr": "-1", - "kind": "literal", - "literal": { - "kind": "number", - "number": -1 - } + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." } ] - } - ], - "typeName": "Record" - } - }, - "typeParams": [] - }, - { - "name": "limit", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 88, - "col": 2, - "byteIndex": 2220 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "skip", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 89, - "col": 2, - "byteIndex": 2247 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "projection", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 90, - "col": 2, - "byteIndex": 2273 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 - } + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, { - "repr": "1", - "kind": "literal", - "literal": { - "kind": "number", - "number": 1 + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } } ] } - ], - "typeName": "Record" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoUpdateOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 96, - "col": 0, - "byteIndex": 2355 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB update options" - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "upsert", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 97, - "col": 2, - "byteIndex": 2416 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 125, - "col": 0, - "byteIndex": 2930 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB client configuration.\n", - "tags": [ - { - "kind": "example", - "doc": "Using a connection string\n```ts\nconst config: MongoClientConfig = {\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n};\n```\n" - }, - { - "kind": "example", - "doc": "Using a configuration object\n```ts\nconst config: MongoClientConfig = {\n url: {\n host: \"localhost\",\n port: 27017,\n username: \"admin\",\n password: \"secret\",\n authSource: \"admin\",\n },\n database: \"testdb\",\n};\n```" - } - ] - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "MongoDB connection URL or configuration object." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 129, - "col": 2, - "byteIndex": 3055 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" }, { - "repr": "MongoConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoConnectionConfig" + "id": 10192, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected contained value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } - ] - }, - "typeParams": [] - }, - { - "name": "database", - "jsDoc": { - "doc": "Database name to connect to." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 134, - "col": 2, - "byteIndex": 3150 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoSession", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 140, - "col": 0, - "byteIndex": 3236 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB session interface (for transactions)" - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "collection", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 141, - "col": 2, - "byteIndex": 3270 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "MongoCollection", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + } + ] + }, + { + "id": 10193, + "name": "toHaveValuePropertyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10194, + "name": "toHaveValuePropertyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value property matches the specified subset." } - ], - "typeName": "MongoCollection" - } - }, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + ] + }, + "parameters": [ + { + "id": 10195, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] } }, - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + { + "id": 10196, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoCollection", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 147, - "col": 0, - "byteIndex": 3390 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB collection interface" - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "find", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 148, - "col": 2, - "byteIndex": 3447 - }, - "params": [ - { - "kind": "identifier", - "name": "filter", - "optional": true, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" + } + ] + }, + { + "id": 10197, + "name": "toHaveValuePropertySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10198, + "name": "toHaveValuePropertySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value property satisfies the provided matcher function." } - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoFindOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFindOptions" + "parameters": [ + { + "id": 10199, + "name": "keyPath", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Property path as dot-separated string (" + }, + { + "kind": "code", + "text": "`\"user.name\"`" + }, + { + "kind": "text", + "text": ") or array (" + }, + { + "kind": "code", + "text": "`[\"user\", \"name\"]`" + }, + { + "kind": "text", + "text": "). Use array format for properties containing dots." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoFindResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 10200, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the property value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10201, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 10202, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10203, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" } } - ], - "typeName": "MongoFindResult" + ] } } - ], - "typeName": "Promise" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "findOne", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 152, - "col": 2, - "byteIndex": 3542 - }, - "params": [ - { - "kind": "identifier", - "name": "filter", - "optional": false, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" + } + ] + }, + { + "id": 10176, + "name": "toHaveValueSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10177, + "name": "toHaveValueSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value satisfies the provided matcher function." } - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoFindOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "parameters": [ + { + "id": 10178, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10179, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 10180, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10181, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" } } - ], - "typeName": "MongoFindOneResult" + ] } } - ], - "typeName": "Promise" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "insertOne", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 156, - "col": 2, - "byteIndex": 3638 - }, - "params": [ - { - "kind": "identifier", - "name": "doc", - "optional": false, - "tsType": { - "repr": "Omit", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "_id", - "kind": "literal", - "literal": { - "kind": "string", - "string": "_id" - } - } - ], - "typeName": "Omit" + } + ] + }, + { + "id": 10173, + "name": "toHaveValueStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10174, + "name": "toHaveValueStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value strictly equals the expected value." } - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" + "parameters": [ + { + "id": 10175, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoInsertOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResult" - } - } - ], - "typeName": "Promise" + } + ] + } + ] + }, + { + "id": 7161, + "name": "RedisHashResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Hash result with connection failure." + } + ] + }, + "children": [ + { + "id": 7167, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "insertMany", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 160, - "col": 2, - "byteIndex": 3740 - }, - "params": [ - { - "kind": "identifier", - "name": "docs", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "Omit", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "_id", - "kind": "literal", - "literal": { - "kind": "string", - "string": "_id" - } - } - ], - "typeName": "Omit" - } - } - } + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.duration" + } + }, + { + "id": 7164, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoInsertManyResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "updateOne", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 164, - "col": 2, - "byteIndex": 3847 - }, - "params": [ + "type": { + "type": "reference", + "target": 10295, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.error" + } + }, + { + "id": 7166, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:hash" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.kind" + } + }, + { + "id": 7163, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "filter", - "optional": false, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" - } - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "update", - "optional": false, - "tsType": { - "repr": "UpdateFilter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "UpdateFilter" - } - } + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoUpdateOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoUpdateResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "updateMany", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 169, - "col": 2, - "byteIndex": 3973 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.ok" + } + }, + { + "id": 7162, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "filter", - "optional": false, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" - } - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "update", - "optional": false, - "tsType": { - "repr": "UpdateFilter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "UpdateFilter" - } - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoUpdateOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoUpdateResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.processed" + } + }, + { + "id": 7165, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisHashResultBase" + }, + "name": "RedisHashResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 7147, + "name": "RedisHashResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "deleteOne", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 174, - "col": 2, - "byteIndex": 4100 - }, - "params": [ + "kind": "text", + "text": "Successful hash result." + } + ] + }, + "children": [ + { + "id": 7153, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "filter", - "optional": false, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" - } - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.duration" + } + }, + { + "id": 7150, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "deleteMany", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 178, - "col": 2, - "byteIndex": 4194 - }, - "params": [ + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.error" + } + }, + { + "id": 7152, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:hash" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.kind" + } + }, + { + "id": 7149, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "filter", - "optional": false, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" - } - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "aggregate", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 182, - "col": 2, - "byteIndex": 4289 - }, - "params": [ - { - "kind": "identifier", - "name": "pipeline", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.ok" + } + }, + { + "id": 7148, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoFindResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - ], - "typeName": "MongoFindResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ + "kind": "code", + "text": "`true`" + }, { - "name": "R", - "default": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } ] }, - { - "name": "countDocuments", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 186, - "col": 2, - "byteIndex": 4397 - }, - "params": [ - { - "kind": "identifier", - "name": "filter", - "optional": true, - "tsType": { - "repr": "Filter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Filter" - } - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.processed" + } + }, + { + "id": 7151, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoOptions" - } - } + "type": "intrinsic", + "name": "string" } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "name": "Record", + "package": "typescript" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisHashResultBase.value", + "package": "@probitas-test/client-redis" } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisHashResultBase" + }, + "name": "RedisHashResultBase", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 6821, + "name": "RedisMessage", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "constraint": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } + "kind": "text", + "text": "Redis Pub/Sub message" } ] - } + }, + "children": [ + { + "id": 6822, + "name": "channel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6823, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "MongoClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 195, - "col": 0, - "byteIndex": 4533 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "MongoDB client interface" + "id": 7437, + "name": "RedisScriptErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for Redis script errors." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "children": [ + { + "id": 7439, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 7407, + "name": "RedisErrorOptions.code" + } + }, + { + "id": 7438, + "name": "script", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 7406, + "name": "RedisErrorOptions", + "package": "@probitas-test/client-redis" + } + ] + }, + { + "id": 6812, + "name": "RedisSetOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + "kind": "text", + "text": "Redis SET options" } - ], - "constructors": [], - "methods": [ - { - "name": "collection", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 198, - "col": 2, - "byteIndex": 4629 - }, - "params": [ + ] + }, + "children": [ + { + "id": 6813, + "name": "ex", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "MongoCollection", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoCollection" + "kind": "text", + "text": "Expiration in seconds" } - }, - "typeParams": [ + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6815, + "name": "nx", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "name": "T", - "constraint": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - }, - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } + "kind": "text", + "text": "Only set if key does not exist" } ] }, - { - "name": "db", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 199, - "col": 2, - "byteIndex": 4708 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 6814, + "name": "px", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Expiration in milliseconds" } - ], - "optional": false, - "returnType": { - "repr": "MongoClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoClient" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6820, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "typeParams": [] + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "name": "transaction", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 200, - "col": 2, - "byteIndex": 4741 + "inheritedFrom": { + "type": "reference", + "target": 6811, + "name": "RedisCommandOptions.retry" + } + }, + { + "id": 6819, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - "params": [ - { - "kind": "identifier", - "name": "session", - "optional": false, - "tsType": { - "repr": "MongoSession", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoSession" - } - } - } - ], - "typeParams": [] - } - } + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 6810, + "name": "RedisCommandOptions.signal" + } + }, + { + "id": 6817, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error when the operation fails.\n\nWhen " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ", failures will throw an error instead of returning a result\nwith " + }, + { + "kind": "code", + "text": "`ok: false`" + }, + { + "kind": "text", + "text": "." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [ + "blockTags": [ { - "name": "T" + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config or defaults to false)\n```" + } + ] } ] }, - { - "name": "close", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 202, - "col": 2, - "byteIndex": 4815 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 6808, + "name": "RedisCommandOptions.throwOnError" + } + }, + { + "id": 6818, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 6809, + "name": "RedisCommandOptions.timeout" } - ], - "properties": [ - { - "name": "config", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/types.ts", - "line": 196, - "col": 2, - "byteIndex": 4590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoClientConfig" + }, + { + "id": 6816, + "name": "xx", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Only set if key exists" } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "MongoErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 142 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for MongoDB errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ + "id": 7084, + "name": "RedisSetResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 11, - "col": 2, - "byteIndex": 202 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "SET result with Redis error." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 17, - "col": 0, - "byteIndex": 284 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for MongoDB client errors." + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "children": [ + { + "id": 7090, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.duration" + } + }, + { + "id": 7087, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - "right": "mongo", - "tsType": null + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" - } - } + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 21, - "col": 2, - "byteIndex": 408 - } + ] + }, + "type": { + "type": "reference", + "target": 10296, + "name": "RedisOperationError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 18, - "col": 2, - "byteIndex": 332 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 19, - "col": 2, - "byteIndex": 381 - } + }, + { + "id": 7089, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:set" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 34, - "col": 0, - "byteIndex": 655 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a MongoDB connection cannot be established." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 7086, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" - } - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.ok" + } + }, + { + "id": 7085, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 38, - "col": 2, - "byteIndex": 814 - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.processed" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 35, - "col": 2, - "byteIndex": 712 - } - }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 36, - "col": 2, - "byteIndex": 763 - } + }, + { + "id": 7088, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.value", + "package": "@probitas-test/client-redis" } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisSetResultBase" + }, + "name": "RedisSetResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "MongoQueryError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 46, - "col": 0, - "byteIndex": 976 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a MongoDB query fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 10237, + "name": "RedisSetResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Fluent API for Redis set result validation.\n\nProvides chainable assertions specifically designed for Redis SET operation results." + } + ] + }, + "children": [ + { + "id": 10238, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "collection", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Negates the next assertion." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisSetResult } from \"@probitas-test/client-redis\";\nimport { expectRedisSetResult } from \"./set.ts\";\nconst result = {\n kind: \"redis:set\",\n ok: true,\n value: \"OK\",\n duration: 0,\n} as unknown as RedisSetResult;\n\nexpectRedisSetResult(result).not.toHaveValue(\"ERROR\");\n```" } - } + ] } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 51, - "col": 2, - "byteIndex": 1151 - } + ] + }, + "type": { + "type": "reference", + "target": 10237, + "name": "RedisSetResultExpectation", + "package": "@probitas-test/expect" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1028 - } - }, - { - "tsType": { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" + }, + { + "id": 10239, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10240, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 48, - "col": 2, - "byteIndex": 1074 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "collection", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 49, - "col": 2, - "byteIndex": 1119 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoDuplicateKeyError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 64, - "col": 0, - "byteIndex": 1396 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a duplicate key constraint is violated." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "keyPattern", - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ] + }, + { + "id": 10262, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10263, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 10264, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "kind": "text", + "text": "The expected duration value" } - ], - "typeName": "Record" + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10291, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10292, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] }, - { - "kind": "identifier", - "name": "keyValue", - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "parameters": [ + { + "id": 10293, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "kind": "text", + "text": "The expected value" } - ], - "typeName": "Record" + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" + }, + { + "id": 10294, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 70, - "col": 2, - "byteIndex": 1655 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 65, - "col": 2, - "byteIndex": 1455 - } - }, - { - "tsType": { - "repr": "duplicate_key", - "kind": "literal", - "literal": { - "kind": "string", - "string": "duplicate_key" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 66, - "col": 2, - "byteIndex": 1508 } - }, - { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 10265, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10266, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10267, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] }, - { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": { + "type": "intrinsic", + "name": "unknown" } - ], - "typeName": "Record" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "keyPattern", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 67, - "col": 2, - "byteIndex": 1561 } - }, - { - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 10279, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10280, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10281, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": { + "type": "intrinsic", + "name": "number" } - ], - "typeName": "Record" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "keyValue", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 68, - "col": 2, - "byteIndex": 1608 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoValidationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 85, - "col": 0, - "byteIndex": 2000 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when document validation fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "validationErrors", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + ] + }, + { + "id": 10282, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10283, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." } - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" + "parameters": [ + { + "id": 10284, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 90, - "col": 2, - "byteIndex": 2207 } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 86, - "col": 2, - "byteIndex": 2057 - } - }, - { - "tsType": { - "repr": "validation", - "kind": "literal", - "literal": { - "kind": "string", - "string": "validation" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 87, - "col": 2, - "byteIndex": 2108 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ] + }, + { + "id": 10285, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10286, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 10287, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "validationErrors", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 88, - "col": 2, - "byteIndex": 2158 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoWriteError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 103, - "col": 0, - "byteIndex": 2471 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a write operation fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "writeErrors", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "index", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 114, - "col": 28, - "byteIndex": 2777 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 114, - "col": 43, - "byteIndex": 2792 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 114, - "col": 57, - "byteIndex": 2806 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } + ] + }, + { + "id": 10288, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10289, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." } - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" + "parameters": [ + { + "id": 10290, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 112, - "col": 2, - "byteIndex": 2715 } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 104, - "col": 2, - "byteIndex": 2523 - } - }, - { - "tsType": { - "repr": "write", - "kind": "literal", - "literal": { - "kind": "string", - "string": "write" + ] + }, + { + "id": 10277, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10278, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 105, - "col": 2, - "byteIndex": 2569 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "index", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 107, - "col": 4, - "byteIndex": 2651 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 108, - "col": 4, - "byteIndex": 2670 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + } + ] + }, + { + "id": 10271, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10272, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 10273, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10274, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 109, - "col": 4, - "byteIndex": 2688 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "id": 10275, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10276, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } - ], - "callSignatures": [], - "indexSignatures": [] + ] } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "writeErrors", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 106, - "col": 2, - "byteIndex": 2614 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoNotFoundError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 125, - "col": 0, - "byteIndex": 3033 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a document is not found (for firstOrThrow, lastOrThrow)." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] + }, + { + "id": 10268, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10269, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "MongoErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoErrorOptions" + "parameters": [ + { + "id": 10270, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 129, - "col": 2, - "byteIndex": 3187 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 126, - "col": 2, - "byteIndex": 3088 - } - }, - { - "tsType": { - "repr": "not_found", - "kind": "literal", - "literal": { - "kind": "string", - "string": "not_found" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 127, - "col": 2, - "byteIndex": 3137 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "MongoError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/errors.ts", - "line": 138, - "col": 0, - "byteIndex": 3431 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate a MongoDB operation error.\nThese are errors where the operation reached the server but failed." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoQueryError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoQueryError" - } - }, - { - "repr": "MongoDuplicateKeyError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDuplicateKeyError" - } - }, - { - "repr": "MongoValidationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoValidationError" - } - }, - { - "repr": "MongoWriteError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoWriteError" - } - }, - { - "repr": "MongoNotFoundError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoNotFoundError" - } - }, - { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "MongoFindResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 20, - "col": 0, - "byteIndex": 581 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful find result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + { + "id": 10241, + "name": "toHaveValue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10242, + "name": "toHaveValue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 10243, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "MongoFindResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 22, - "col": 2, - "byteIndex": 672 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 23, - "col": 2, - "byteIndex": 700 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 24, - "col": 2, - "byteIndex": 721 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 25, - "col": 2, - "byteIndex": 745 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + "type": { + "type": "intrinsic", + "name": "this" } } - } - ] - } - }, - { - "name": "MongoFindResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 31, - "col": 0, - "byteIndex": 820 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Find result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 10256, + "name": "toHaveValueContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10257, + "name": "toHaveValueContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value contains the specified substring." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 10258, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } } ], - "typeName": "MongoFindResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 33, - "col": 2, - "byteIndex": 909 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 34, - "col": 2, - "byteIndex": 937 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 35, - "col": 2, - "byteIndex": 959 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 36, - "col": 2, - "byteIndex": 989 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + } + ] + }, + { + "id": 10244, + "name": "toHaveValueEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10245, + "name": "toHaveValueEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 10246, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + ], + "type": { + "type": "intrinsic", + "name": "this" } } - } - ] - } - }, - { - "name": "MongoFindResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 42, - "col": 0, - "byteIndex": 1069 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Find result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 10259, + "name": "toHaveValueMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10260, + "name": "toHaveValueMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value matches the specified regular expression." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 10261, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" } } ], - "typeName": "MongoFindResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 44, - "col": 2, - "byteIndex": 1160 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 45, - "col": 2, - "byteIndex": 1189 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 46, - "col": 2, - "byteIndex": 1211 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 47, - "col": 2, - "byteIndex": 1248 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + "type": { + "type": "intrinsic", + "name": "this" } } - } - ] - } - }, - { - "name": "MongoFindOneResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 73, - "col": 0, - "byteIndex": 1858 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful findOne result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 10250, + "name": "toHaveValueSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10251, + "name": "toHaveValueSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 10252, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the value and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 10253, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10254, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10255, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "OK" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } ], - "typeName": "MongoFindOneResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 75, - "col": 2, - "byteIndex": 1955 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 76, - "col": 2, - "byteIndex": 1983 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 77, - "col": 2, - "byteIndex": 2004 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 78, - "col": 2, - "byteIndex": 2028 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + } + ] + }, + { + "id": 10247, + "name": "toHaveValueStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10248, + "name": "toHaveValueStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the value strictly equals the expected value." } - }, + ] + }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 10249, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + ], + "type": { + "type": "intrinsic", + "name": "this" } } - } - ] - } + ] + } + ] }, { - "name": "MongoFindOneResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 84, - "col": 0, - "byteIndex": 2101 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "FindOne result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 7091, + "name": "RedisSetResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoFindOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResultBase" - } + "kind": "text", + "text": "SET result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 86, - "col": 2, - "byteIndex": 2196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 7097, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 87, - "col": 2, - "byteIndex": 2224 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 88, - "col": 2, - "byteIndex": 2246 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 89, - "col": 2, - "byteIndex": 2276 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.duration" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + }, + { + "id": 7094, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - } + ] + }, + "type": { + "type": "reference", + "target": 10295, + "name": "RedisFailureError", + "package": "@probitas-test/client-redis" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.error" } - ] - } - }, - { - "name": "MongoFindOneResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 95, - "col": 0, - "byteIndex": 2350 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "FindOne result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoFindOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResultBase" - } + }, + { + "id": 7096, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:set" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 97, - "col": 2, - "byteIndex": 2447 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 7093, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 98, - "col": 2, - "byteIndex": 2476 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 99, - "col": 2, - "byteIndex": 2498 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.ok" + } + }, + { + "id": 7092, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 100, - "col": 2, - "byteIndex": 2535 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" - } - } + }, + { + "id": 7095, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.value", + "package": "@probitas-test/client-redis" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisSetResultBase" + }, + "name": "RedisSetResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "MongoInsertOneResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 126, - "col": 0, - "byteIndex": 3159 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful insertOne result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 7077, + "name": "RedisSetResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoInsertOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultBase" - } + "kind": "text", + "text": "Successful SET result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 127, - "col": 2, - "byteIndex": 3241 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 7083, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 128, - "col": 2, - "byteIndex": 3269 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 129, - "col": 2, - "byteIndex": 3290 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 130, - "col": 2, - "byteIndex": 3314 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoInsertOneResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 136, - "col": 0, - "byteIndex": 3394 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "InsertOne result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoInsertOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultBase" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.duration" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 137, - "col": 2, - "byteIndex": 3474 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 138, - "col": 2, - "byteIndex": 3502 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 7080, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 139, - "col": 2, - "byteIndex": 3524 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 140, - "col": 2, - "byteIndex": 3554 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.error" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoInsertOneResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 146, - "col": 0, - "byteIndex": 3637 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "InsertOne result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoInsertOneResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultBase" - } + }, + { + "id": 7082, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "literal", + "value": "redis:set" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 147, - "col": 2, - "byteIndex": 3719 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 7079, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 148, - "col": 2, - "byteIndex": 3748 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 149, - "col": 2, - "byteIndex": 3770 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.ok" + } + }, + { + "id": 7078, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 150, - "col": 2, - "byteIndex": 3807 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 7081, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "OK" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "RedisSetResultBase.value", + "package": "@probitas-test/client-redis" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-redis", + "packagePath": "dist/result.d.ts", + "qualifiedName": "RedisSetResultBase" + }, + "name": "RedisSetResultBase", + "package": "@probitas-test/client-redis" + } + ] }, { - "name": "MongoInsertManyResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 177, - "col": 0, - "byteIndex": 4484 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful insertMany result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 6836, + "name": "RedisTransaction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoInsertManyResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultBase" - } + "kind": "text", + "text": "Redis transaction interface" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 179, - "col": 2, - "byteIndex": 4570 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 6851, + "name": "decr", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6852, + "name": "decr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6853, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 180, - "col": 2, - "byteIndex": 4598 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + } + ] + }, + { + "id": 6845, + "name": "del", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6846, + "name": "del", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6847, + "name": "keys", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 181, - "col": 2, - "byteIndex": 4619 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 182, - "col": 2, - "byteIndex": 4643 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 6926, + "name": "discard", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6927, + "name": "discard", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 6923, + "name": "exec", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6924, + "name": "exec", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6925, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6807, + "name": "RedisCommandOptions", + "package": "@probitas-test/client-redis" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 7145, + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 183, - "col": 2, - "byteIndex": 4686 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoInsertManyResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 189, - "col": 0, - "byteIndex": 4770 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "InsertMany result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoInsertManyResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 190, - "col": 2, - "byteIndex": 4852 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 6837, + "name": "get", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6838, + "name": "get", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6839, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 191, - "col": 2, - "byteIndex": 4880 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ] + }, + { + "id": 6866, + "name": "hdel", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6867, + "name": "hdel", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6868, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6869, + "name": "fields", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 192, - "col": 2, - "byteIndex": 4902 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + } + ] + }, + { + "id": 6854, + "name": "hget", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6855, + "name": "hget", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6856, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6857, + "name": "field", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 193, - "col": 2, - "byteIndex": 4932 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 194, - "col": 2, - "byteIndex": 4962 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoInsertManyResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 200, - "col": 0, - "byteIndex": 5049 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "InsertMany result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoInsertManyResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 202, - "col": 2, - "byteIndex": 5135 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + { + "id": 6863, + "name": "hgetall", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6864, + "name": "hgetall", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6865, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 203, - "col": 2, - "byteIndex": 5164 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ] + }, + { + "id": 6858, + "name": "hset", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6859, + "name": "hset", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6860, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6861, + "name": "field", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6862, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 204, - "col": 2, - "byteIndex": 5186 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + } + ] + }, + { + "id": 6848, + "name": "incr", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6849, + "name": "incr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6850, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 205, - "col": 2, - "byteIndex": 5223 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 206, - "col": 2, - "byteIndex": 5253 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoUpdateResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 234, - "col": 0, - "byteIndex": 5945 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful update result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoUpdateResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 235, - "col": 2, - "byteIndex": 6021 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 6889, + "name": "llen", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6890, + "name": "llen", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6891, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 236, - "col": 2, - "byteIndex": 6049 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + } + ] + }, + { + "id": 6878, + "name": "lpop", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6879, + "name": "lpop", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6880, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 6070 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 238, - "col": 2, - "byteIndex": 6094 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 239, - "col": 2, - "byteIndex": 6127 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 240, - "col": 2, - "byteIndex": 6161 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 6870, + "name": "lpush", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6871, + "name": "lpush", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6872, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6873, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6884, + "name": "lrange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6885, + "name": "lrange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6886, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6887, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 6888, + "name": "stop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoUpdateResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 246, - "col": 0, - "byteIndex": 6245 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Update result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoUpdateResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultBase" + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 247, - "col": 2, - "byteIndex": 6319 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 6881, + "name": "rpop", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6882, + "name": "rpop", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6883, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 248, - "col": 2, - "byteIndex": 6347 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ] + }, + { + "id": 6874, + "name": "rpush", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6875, + "name": "rpush", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6876, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6877, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 249, - "col": 2, - "byteIndex": 6369 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + } + ] + }, + { + "id": 6892, + "name": "sadd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6893, + "name": "sadd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6894, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6895, + "name": "members", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 250, - "col": 2, - "byteIndex": 6399 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 251, - "col": 2, - "byteIndex": 6430 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 252, - "col": 2, - "byteIndex": 6462 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoUpdateResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 258, - "col": 0, - "byteIndex": 6542 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Update result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoUpdateResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 259, - "col": 2, - "byteIndex": 6618 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + { + "id": 6840, + "name": "set", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6841, + "name": "set", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6842, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6843, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6844, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 6812, + "name": "RedisSetOptions", + "package": "@probitas-test/client-redis" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 260, - "col": 2, - "byteIndex": 6647 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ] + }, + { + "id": 6903, + "name": "sismember", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6904, + "name": "sismember", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6905, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6906, + "name": "member", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 261, - "col": 2, - "byteIndex": 6669 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + } + ] + }, + { + "id": 6900, + "name": "smembers", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6901, + "name": "smembers", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6902, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 262, - "col": 2, - "byteIndex": 6706 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 263, - "col": 2, - "byteIndex": 6737 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 264, - "col": 2, - "byteIndex": 6769 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoDeleteResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 290, - "col": 0, - "byteIndex": 7358 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful delete result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 291, - "col": 2, - "byteIndex": 7434 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 6896, + "name": "srem", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6897, + "name": "srem", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6898, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6899, + "name": "members", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 292, - "col": 2, - "byteIndex": 7462 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + } + ] + }, + { + "id": 6907, + "name": "zadd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6908, + "name": "zadd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6909, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6910, + "name": "entries", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 6911, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 6913, + "name": "member", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6912, + "name": "score", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 293, - "col": 2, - "byteIndex": 7483 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 294, - "col": 2, - "byteIndex": 7507 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] + }, + { + "id": 6914, + "name": "zrange", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6915, + "name": "zrange", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6916, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6917, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 6918, + "name": "stop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 6919, + "name": "zscore", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6920, + "name": "zscore", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6921, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 6922, + "name": "member", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] }, { - "name": "MongoDeleteResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 300, - "col": 0, - "byteIndex": 7586 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 6517, + "name": "ReflectionApi", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultBase" - } + "kind": "text", + "text": "Reflection API for ConnectRPC client.\nOnly available when client is created with schema: \"reflection\"." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 301, - "col": 2, - "byteIndex": 7660 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 302, - "col": 2, - "byteIndex": 7688 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 6518, + "name": "enabled", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 303, - "col": 2, - "byteIndex": 7710 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if reflection is enabled." } - }, - "typeParams": [] + ] }, - { - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 304, - "col": 2, - "byteIndex": 7740 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoDeleteResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 310, - "col": 0, - "byteIndex": 7822 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultBase" + }, + { + "id": 6521, + "name": "getServiceInfo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6522, + "name": "getServiceInfo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get detailed information about a specific service." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" + } + ] + } + ] + }, + "parameters": [ + { + "id": 6523, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name (e.g., \"echo.EchoService\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 6383, + "name": "ServiceDetail", + "package": "@probitas-test/client-connectrpc" + } + ], + "name": "Promise", + "package": "typescript" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 311, - "col": 2, - "byteIndex": 7898 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + { + "id": 6527, + "name": "hasService", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6528, + "name": "hasService", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if a service exists." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" + } + ] + } + ] + }, + "parameters": [ + { + "id": 6529, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 312, - "col": 2, - "byteIndex": 7927 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ] + }, + { + "id": 6524, + "name": "listMethods", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6525, + "name": "listMethods", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get methods for a specific service." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" + } + ] + } + ] + }, + "parameters": [ + { + "id": 6526, + "name": "serviceName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "target": 6376, + "name": "MethodInfo", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 313, - "col": 2, - "byteIndex": 7949 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + } + ] + }, + { + "id": 6519, + "name": "listServices", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 6520, + "name": "listServices", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "List all available services on the server." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "Error if reflection is not enabled" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "target": 6373, + "name": "ServiceInfo", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "name": "Promise", + "package": "typescript" } - }, - "typeParams": [] - }, - { - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 314, - "col": 2, - "byteIndex": 7986 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] + } + ] }, { - "name": "MongoCountResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 340, - "col": 0, - "byteIndex": 8565 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful count result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 6383, + "name": "ServiceDetail", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "MongoCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultBase" - } + "kind": "text", + "text": "Detailed service information." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 341, - "col": 2, - "byteIndex": 8639 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 6385, + "name": "fullName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 342, - "col": 2, - "byteIndex": 8667 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 343, - "col": 2, - "byteIndex": 8688 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + ] }, - { - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 344, - "col": 2, - "byteIndex": 8712 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoCountResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 350, - "col": 0, - "byteIndex": 8783 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Count result with MongoDB error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 351, - "col": 2, - "byteIndex": 8855 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + }, + { + "id": 6388, + "name": "methods", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 352, - "col": 2, - "byteIndex": 8883 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "All methods" } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 353, - "col": 2, - "byteIndex": 8905 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 6376, + "name": "MethodInfo", + "package": "@probitas-test/client-connectrpc" } - }, - "typeParams": [] - }, - { - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 354, - "col": 2, - "byteIndex": 8935 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoCountResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 360, - "col": 0, - "byteIndex": 9009 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Count result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MongoCountResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultBase" } } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 361, - "col": 2, - "byteIndex": 9083 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 362, - "col": 2, - "byteIndex": 9112 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + }, + { + "id": 6384, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 363, - "col": 2, - "byteIndex": 9134 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Service name" } - }, - "typeParams": [] + ] }, - { - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 364, - "col": 2, - "byteIndex": 9171 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoFindResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 400, - "col": 0, - "byteIndex": 10152 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindResultSuccess.", - "tags": [ - { - "kind": "internal" + "type": { + "type": "intrinsic", + "name": "string" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 410, - "col": 4, - "byteIndex": 10471 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 411, - "col": 4, - "byteIndex": 10495 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + }, + { + "id": 6386, + "name": "packageName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Package name" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 409, - "col": 2, - "byteIndex": 10445 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 402, - "col": 2, - "byteIndex": 10249 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 403, - "col": 2, - "byteIndex": 10290 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 404, - "col": 2, - "byteIndex": 10328 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 405, - "col": 2, - "byteIndex": 10359 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } + }, + { + "id": 6387, + "name": "protoFile", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Proto file name" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 406, - "col": 2, - "byteIndex": 10384 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 407, - "col": 2, - "byteIndex": 10415 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultSuccess" - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeParams": [ + } + ] + }, + { + "id": 6373, + "name": "ServiceInfo", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + "kind": "text", + "text": "Service information from reflection." + } + ] + }, + "children": [ + { + "id": 6375, + "name": "file", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Proto file name" } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "superTypeParams": [] - } + }, + { + "id": 6374, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fully qualified service name (e.g., \"echo.EchoService\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "MongoFindResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 422, - "col": 0, - "byteIndex": 10664 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindResultError.", - "tags": [ + "id": 9376, + "name": "SqlErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Options for SqlError constructor." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 432, - "col": 4, - "byteIndex": 10990 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 433, - "col": 4, - "byteIndex": 11013 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 9377, + "name": "sqlState", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL State code (e.g., \"23505\" for unique violation)" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 431, - "col": 2, - "byteIndex": 10964 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [ + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ] + }, + { + "id": 9350, + "name": "SqlQueryOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "mongo:find", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 424, - "col": 2, - "byteIndex": 10757 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "kind": "text", + "text": "Options for individual SQL queries." + } + ] + }, + "children": [ + { + "id": 9354, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 425, - "col": 2, - "byteIndex": 10798 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" + } + }, + { + "id": 9353, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 426, - "col": 2, - "byteIndex": 10836 - } - }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 9351, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 427, - "col": 2, - "byteIndex": 10868 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse (inherited from client config if not specified)\n```" } - } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 428, - "col": 2, - "byteIndex": 10898 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 429, - "col": 2, - "byteIndex": 10934 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultError" - } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + }, + { + "id": 9352, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ] }, { - "name": "MongoFindResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 444, - "col": 0, - "byteIndex": 11186 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindResultFailure.", - "tags": [ + "id": 9448, + "name": "SqlQueryResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 454, - "col": 4, - "byteIndex": 11512 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 455, - "col": 4, - "byteIndex": 11542 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 9458, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query execution duration in milliseconds." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 453, - "col": 2, - "byteIndex": 11486 - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find" + }, + { + "id": 9452, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error describing the SQL error." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 446, - "col": 2, - "byteIndex": 11283 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "type": { + "type": "reference", + "target": 9378, + "name": "SqlError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9457, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, + { + "kind": "code", + "text": "`\"sql\"`" + }, + { + "kind": "text", + "text": " for SQL query results." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 447, - "col": 2, - "byteIndex": 11324 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" + } + }, + { + "id": 9455, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No lastInsertId for failed queries." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 448, - "col": 2, - "byteIndex": 11363 - } - }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + ] + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9451, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query failed." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 449, - "col": 2, - "byteIndex": 11395 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "docs", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 450, - "col": 2, - "byteIndex": 11432 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 451, - "col": 2, - "byteIndex": 11456 - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultFailure" - } + }, + { + "id": 9450, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Server processed the query." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + }, + { + "id": 9454, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Zero affected rows for failed queries." + } + ] + }, + "type": { + "type": "literal", + "value": 0 + } + }, + { + "id": 9453, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Empty rows for failed queries." + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" } } } - ], - "superTypeParams": [] - } - }, - { - "name": "MongoFindOneResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 470, - "col": 0, - "byteIndex": 11924 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindOneResultSuccess.", - "tags": [ - { - "kind": "internal" + }, + { + "id": 9456, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No warnings for failed queries." + } + ] + }, + "type": { + "type": "literal", + "value": null } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 480, - "col": 4, - "byteIndex": 12248 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ + }, + { + "id": 9466, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 9467, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 9468, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 9469, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 9470, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 9471, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 9472, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9449, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" } - ] - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 481, - "col": 4, - "byteIndex": 12267 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] + ], + "type": { + "type": "reference", + "target": 9443, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } } } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 9443, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 479, - "col": 2, - "byteIndex": 12222 } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find-one" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 472, - "col": 2, - "byteIndex": 12027 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 473, - "col": 2, - "byteIndex": 12072 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 474, - "col": 2, - "byteIndex": 12110 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 475, - "col": 2, - "byteIndex": 12141 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + }, + { + "id": 9459, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 9460, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." } - }, + ] + }, + "typeParameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 9461, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 476, - "col": 2, - "byteIndex": 12166 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 477, - "col": 2, - "byteIndex": 12192 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindOneResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 9462, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 9463, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9464, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9465, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9449, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 9436, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } } } ], - "typeName": "MongoFindOneResultSuccess" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 9436, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "superTypeParams": [] - } + } + ], + "typeParameters": [ + { + "id": 9449, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9449, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultError.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "MongoFindOneResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 492, - "col": 0, - "byteIndex": 12437 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindOneResultError.", - "tags": [ + "id": 9197, + "name": "SqlQueryResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Expectation interface for SQL query results.\nAll methods return " + }, + { + "kind": "code", + "text": "`this`" + }, { - "kind": "internal" + "kind": "text", + "text": " for chaining." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 502, - "col": 4, - "byteIndex": 12760 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 503, - "col": 4, - "byteIndex": 12783 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 9198, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 501, - "col": 2, - "byteIndex": 12734 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find-one" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 494, - "col": 2, - "byteIndex": 12536 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 495, - "col": 2, - "byteIndex": 12581 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqlQueryResult } from \"@probitas-test/client-sql\";\nimport { expectSqlQueryResult } from \"./sql.ts\";\nconst result = {\n kind: \"sql\",\n ok: false,\n rows: [],\n rowCount: 0,\n duration: 0,\n map: () => [],\n as: () => [],\n} as unknown as SqlQueryResult;\n\nexpectSqlQueryResult(result).not.toBeOk();\nexpectSqlQueryResult(result).not.toHaveRowCount(5);\n```" + } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 496, - "col": 2, - "byteIndex": 12619 - } - }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + ] + }, + "type": { + "type": "reference", + "target": 9197, + "name": "SqlQueryResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 9199, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9200, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqlQueryResult } from \"@probitas-test/client-sql\";\nimport { expectSqlQueryResult } from \"./sql.ts\";\nconst result = {\n kind: \"sql\",\n ok: true,\n rows: [],\n rowCount: 0,\n duration: 0,\n map: () => [],\n as: () => [],\n} as unknown as SqlQueryResult;\n\nexpectSqlQueryResult(result).toBeOk();\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 497, - "col": 2, - "byteIndex": 12651 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 498, - "col": 2, - "byteIndex": 12681 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 499, - "col": 2, - "byteIndex": 12704 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindOneResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 9317, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9318, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 9319, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "MongoFindOneResultError" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + "type": { + "type": "intrinsic", + "name": "this" } } - } - ], - "superTypeParams": [] - } - }, - { - "name": "MongoFindOneResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 514, - "col": 0, - "byteIndex": 12959 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoFindOneResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 524, - "col": 4, - "byteIndex": 13294 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 9346, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9347, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 9348, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 525, - "col": 4, - "byteIndex": 13324 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The expected value" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 9349, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 523, - "col": 2, - "byteIndex": 13268 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:find-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:find-one" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 516, - "col": 2, - "byteIndex": 13062 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 517, - "col": 2, - "byteIndex": 13107 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 518, - "col": 2, - "byteIndex": 13146 - } - }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 519, - "col": 2, - "byteIndex": 13178 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "doc", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 520, - "col": 2, - "byteIndex": 13215 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 521, - "col": 2, - "byteIndex": 13238 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoFindOneResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 9320, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9321, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 9322, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeName": "MongoFindOneResultFailure" - } - } - ], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Document", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Document" + "type": { + "type": "intrinsic", + "name": "this" } } - } - ], - "superTypeParams": [] - } - }, - { - "name": "MongoInsertOneResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 540, - "col": 0, - "byteIndex": 13710 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertOneResultSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 550, - "col": 4, - "byteIndex": 14028 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, + ] + }, + { + "id": 9334, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9335, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 9336, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 551, - "col": 4, - "byteIndex": 14052 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The value to compare against" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 549, - "col": 2, - "byteIndex": 14002 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-one" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 542, - "col": 2, - "byteIndex": 13800 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 543, - "col": 2, - "byteIndex": 13847 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 9337, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9338, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 9339, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 544, - "col": 2, - "byteIndex": 13885 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 545, - "col": 2, - "byteIndex": 13916 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 546, - "col": 2, - "byteIndex": 13941 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 547, - "col": 2, - "byteIndex": 13972 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertOneResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultSuccess" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoInsertOneResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 562, - "col": 0, - "byteIndex": 14238 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertOneResultError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 572, - "col": 4, - "byteIndex": 14557 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 9340, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9341, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 9342, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 573, - "col": 4, - "byteIndex": 14580 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The value to compare against" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 571, - "col": 2, - "byteIndex": 14531 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-one" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 564, - "col": 2, - "byteIndex": 14324 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 565, - "col": 2, - "byteIndex": 14371 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 566, - "col": 2, - "byteIndex": 14409 - } - }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 567, - "col": 2, - "byteIndex": 14441 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 568, - "col": 2, - "byteIndex": 14471 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 569, - "col": 2, - "byteIndex": 14501 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertOneResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultError" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoInsertOneResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 584, - "col": 0, - "byteIndex": 14758 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertOneResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 594, - "col": 4, - "byteIndex": 15089 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 9343, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9344, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 9345, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 595, - "col": 4, - "byteIndex": 15119 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The value to compare against" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 593, - "col": 2, - "byteIndex": 15063 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-one", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-one" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 586, - "col": 2, - "byteIndex": 14848 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 587, - "col": 2, - "byteIndex": 14895 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 588, - "col": 2, - "byteIndex": 14934 - } - }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + ] + }, + { + "id": 9332, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9333, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 589, - "col": 2, - "byteIndex": 14966 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 590, - "col": 2, - "byteIndex": 15003 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 591, - "col": 2, - "byteIndex": 15033 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertOneResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResultFailure" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoInsertManyResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 610, - "col": 0, - "byteIndex": 15507 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertManyResultSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 621, - "col": 4, - "byteIndex": 15874 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ] + }, + { + "id": 9326, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9327, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 9328, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 9329, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9330, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9331, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "void" } - }, - "typeParams": [] - }, - { - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 622, - "col": 4, - "byteIndex": 15910 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 623, - "col": 4, - "byteIndex": 15937 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 620, - "col": 2, - "byteIndex": 15848 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-many", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-many" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 612, - "col": 2, - "byteIndex": 15599 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 613, - "col": 2, - "byteIndex": 15647 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 614, - "col": 2, - "byteIndex": 15685 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 615, - "col": 2, - "byteIndex": 15716 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ] + }, + { + "id": 9323, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9324, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 9325, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 616, - "col": 2, - "byteIndex": 15741 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 617, - "col": 2, - "byteIndex": 15784 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 618, - "col": 2, - "byteIndex": 15818 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertManyResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultSuccess" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoInsertManyResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 635, - "col": 0, - "byteIndex": 16173 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertManyResultError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 646, - "col": 4, - "byteIndex": 16529 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 9260, + "name": "toHaveLastInsertId", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9261, + "name": "toHaveLastInsertId", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the last insert ID equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 9262, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 647, - "col": 4, - "byteIndex": 16552 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The expected last insert ID" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 645, - "col": 2, - "byteIndex": 16503 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-many", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-many" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 637, - "col": 2, - "byteIndex": 16261 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 638, - "col": 2, - "byteIndex": 16309 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 639, - "col": 2, - "byteIndex": 16347 - } - }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 640, - "col": 2, - "byteIndex": 16379 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 641, - "col": 2, - "byteIndex": 16409 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 642, - "col": 2, - "byteIndex": 16440 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 643, - "col": 2, - "byteIndex": 16473 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertManyResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultError" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoInsertManyResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 658, - "col": 0, - "byteIndex": 16731 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoInsertManyResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 669, - "col": 4, - "byteIndex": 17099 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 9263, + "name": "toHaveLastInsertIdEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9264, + "name": "toHaveLastInsertIdEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the last insert ID equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 9265, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 670, - "col": 4, - "byteIndex": 17129 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The expected last insert ID" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 668, - "col": 2, - "byteIndex": 17073 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:insert-many", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:insert-many" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 660, - "col": 2, - "byteIndex": 16823 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 661, - "col": 2, - "byteIndex": 16871 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + { + "id": 9277, + "name": "toHaveLastInsertIdNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9278, + "name": "toHaveLastInsertIdNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the last insert ID is null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 662, - "col": 2, - "byteIndex": 16910 - } - }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + } + ] + }, + { + "id": 9281, + "name": "toHaveLastInsertIdNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9282, + "name": "toHaveLastInsertIdNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the last insert ID is nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 663, - "col": 2, - "byteIndex": 16942 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedIds", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 664, - "col": 2, - "byteIndex": 16979 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "insertedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 665, - "col": 2, - "byteIndex": 17010 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 666, - "col": 2, - "byteIndex": 17043 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoInsertManyResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResultFailure" + ] + }, + { + "id": 9275, + "name": "toHaveLastInsertIdPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9276, + "name": "toHaveLastInsertIdPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the last insert ID is present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoUpdateResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 685, - "col": 0, - "byteIndex": 17509 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoUpdateResultSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 696, - "col": 4, - "byteIndex": 17889 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 697, - "col": 4, - "byteIndex": 17915 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + ] + }, + { + "id": 9269, + "name": "toHaveLastInsertIdSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9270, + "name": "toHaveLastInsertIdSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the last insert ID satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 9271, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 698, - "col": 4, - "byteIndex": 17942 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + "kind": "text", + "text": "A function that receives the last insert ID and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 9272, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9273, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 9274, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } } - ] - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 699, - "col": 4, - "byteIndex": 17973 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 695, - "col": 2, - "byteIndex": 17863 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:update", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:update" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 686, - "col": 2, - "byteIndex": 17591 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 687, - "col": 2, - "byteIndex": 17634 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 688, - "col": 2, - "byteIndex": 17672 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 689, - "col": 2, - "byteIndex": 17703 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 690, - "col": 2, - "byteIndex": 17728 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 691, - "col": 2, - "byteIndex": 17761 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ] + }, + { + "id": 9266, + "name": "toHaveLastInsertIdStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9267, + "name": "toHaveLastInsertIdStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the last insert ID strictly equals the expected value." + } + ] + }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 9268, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected last insert ID" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 692, - "col": 2, - "byteIndex": 17795 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 693, - "col": 2, - "byteIndex": 17833 + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoUpdateResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultSuccess" + ] + }, + { + "id": 9279, + "name": "toHaveLastInsertIdUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9280, + "name": "toHaveLastInsertIdUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the last insert ID is undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoUpdateResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 712, - "col": 0, - "byteIndex": 18248 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoUpdateResultError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 723, - "col": 4, - "byteIndex": 18620 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 9227, + "name": "toHaveRowCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9228, + "name": "toHaveRowCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the row count equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 9229, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 724, - "col": 4, - "byteIndex": 18643 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The expected row count" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 722, - "col": 2, - "byteIndex": 18594 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:update", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:update" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 713, - "col": 2, - "byteIndex": 18326 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 714, - "col": 2, - "byteIndex": 18369 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 715, - "col": 2, - "byteIndex": 18407 - } - }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + ] + }, + { + "id": 9256, + "name": "toHaveRowCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9257, + "name": "toHaveRowCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the row count is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 9258, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 9259, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 716, - "col": 2, - "byteIndex": 18439 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 717, - "col": 2, - "byteIndex": 18469 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 718, - "col": 2, - "byteIndex": 18501 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 719, - "col": 2, - "byteIndex": 18534 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 720, - "col": 2, - "byteIndex": 18564 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoUpdateResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultError" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoUpdateResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 735, - "col": 0, - "byteIndex": 18818 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoUpdateResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 746, - "col": 4, - "byteIndex": 19202 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 9230, + "name": "toHaveRowCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9231, + "name": "toHaveRowCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the row count equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 9232, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 747, - "col": 4, - "byteIndex": 19232 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The expected row count" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 745, - "col": 2, - "byteIndex": 19176 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:update", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:update" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 736, - "col": 2, - "byteIndex": 18900 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 737, - "col": 2, - "byteIndex": 18943 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 738, - "col": 2, - "byteIndex": 18982 - } - }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + ] + }, + { + "id": 9244, + "name": "toHaveRowCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9245, + "name": "toHaveRowCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the row count is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 9246, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 739, - "col": 2, - "byteIndex": 19014 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "matchedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 740, - "col": 2, - "byteIndex": 19051 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "modifiedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 741, - "col": 2, - "byteIndex": 19083 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "upsertedId", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 742, - "col": 2, - "byteIndex": 19116 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 743, - "col": 2, - "byteIndex": 19146 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoUpdateResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultFailure" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoDeleteResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 762, - "col": 0, - "byteIndex": 19612 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoDeleteResultSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 771, - "col": 4, - "byteIndex": 19920 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + ] + }, + { + "id": 9247, + "name": "toHaveRowCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9248, + "name": "toHaveRowCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the row count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 9249, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 772, - "col": 4, - "byteIndex": 19946 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The value to compare against" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 770, - "col": 2, - "byteIndex": 19894 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:delete" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 763, - "col": 2, - "byteIndex": 19694 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 764, - "col": 2, - "byteIndex": 19737 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 9250, + "name": "toHaveRowCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9251, + "name": "toHaveRowCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the row count is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 9252, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 765, - "col": 2, - "byteIndex": 19775 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 766, - "col": 2, - "byteIndex": 19806 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 767, - "col": 2, - "byteIndex": 19831 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 768, - "col": 2, - "byteIndex": 19864 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoDeleteResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultSuccess" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoDeleteResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 783, - "col": 0, - "byteIndex": 20133 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoDeleteResultError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 792, - "col": 4, - "byteIndex": 20442 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 9253, + "name": "toHaveRowCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9254, + "name": "toHaveRowCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the row count is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 9255, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 793, - "col": 4, - "byteIndex": 20465 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The value to compare against" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 791, - "col": 2, - "byteIndex": 20416 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:delete" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 784, - "col": 2, - "byteIndex": 20211 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 785, - "col": 2, - "byteIndex": 20254 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 786, - "col": 2, - "byteIndex": 20292 - } - }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + ] + }, + { + "id": 9242, + "name": "toHaveRowCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9243, + "name": "toHaveRowCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the row count is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 787, - "col": 2, - "byteIndex": 20324 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 788, - "col": 2, - "byteIndex": 20354 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 789, - "col": 2, - "byteIndex": 20386 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoDeleteResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultError" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoDeleteResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 804, - "col": 0, - "byteIndex": 20640 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoDeleteResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 813, - "col": 4, - "byteIndex": 20961 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 9236, + "name": "toHaveRowCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9237, + "name": "toHaveRowCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the row count satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 9238, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 814, - "col": 4, - "byteIndex": 20991 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "A function that receives the row count and performs assertions" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 9239, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9240, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9241, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 812, - "col": 2, - "byteIndex": 20935 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:delete" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 805, - "col": 2, - "byteIndex": 20722 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 806, - "col": 2, - "byteIndex": 20765 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 807, - "col": 2, - "byteIndex": 20804 - } - }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + ] + }, + { + "id": 9233, + "name": "toHaveRowCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9234, + "name": "toHaveRowCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the row count strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 9235, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected row count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 808, - "col": 2, - "byteIndex": 20836 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "deletedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 809, - "col": 2, - "byteIndex": 20873 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 810, - "col": 2, - "byteIndex": 20905 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoDeleteResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultFailure" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoCountResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 829, - "col": 0, - "byteIndex": 21369 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoCountResultSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 838, - "col": 4, - "byteIndex": 21667 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + ] + }, + { + "id": 9201, + "name": "toHaveRows", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9202, + "name": "toHaveRows", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the rows equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 9203, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 839, - "col": 4, - "byteIndex": 21686 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The expected rows value" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 837, - "col": 2, - "byteIndex": 21641 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:count" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 830, - "col": 2, - "byteIndex": 21449 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 831, - "col": 2, - "byteIndex": 21491 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 9216, + "name": "toHaveRowsContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9217, + "name": "toHaveRowsContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the rows array contains the specified item." + } + ] + }, + "parameters": [ + { + "id": 9218, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 832, - "col": 2, - "byteIndex": 21529 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 833, - "col": 2, - "byteIndex": 21560 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 834, - "col": 2, - "byteIndex": 21585 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 835, - "col": 2, - "byteIndex": 21611 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoCountResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultSuccess" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoCountResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 850, - "col": 0, - "byteIndex": 21858 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoCountResultError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 859, - "col": 4, - "byteIndex": 22157 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 9219, + "name": "toHaveRowsContainingEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9220, + "name": "toHaveRowsContainingEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the rows array contains an item equal to the specified value." + } + ] + }, + "parameters": [ + { + "id": 9221, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 860, - "col": 4, - "byteIndex": 22180 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The item to search for using deep equality" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 858, - "col": 2, - "byteIndex": 22131 } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:count" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 851, - "col": 2, - "byteIndex": 21934 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 852, - "col": 2, - "byteIndex": 21976 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 853, - "col": 2, - "byteIndex": 22014 - } - }, - { - "tsType": { - "repr": "MongoError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoError" + ] + }, + { + "id": 9225, + "name": "toHaveRowsEmpty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9226, + "name": "toHaveRowsEmpty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the rows array is empty." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 854, - "col": 2, - "byteIndex": 22046 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 855, - "col": 2, - "byteIndex": 22076 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 856, - "col": 2, - "byteIndex": 22101 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoCountResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultError" + ] + }, + { + "id": 9204, + "name": "toHaveRowsEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9205, + "name": "toHaveRowsEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the rows equal the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 9206, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected rows value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MongoCountResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 871, - "col": 0, - "byteIndex": 22354 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for MongoCountResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 880, - "col": 4, - "byteIndex": 22665 + ] + }, + { + "id": 9222, + "name": "toHaveRowsMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9223, + "name": "toHaveRowsMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the rows array matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 9224, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" } - }, - "typeParams": [] + ], + "name": "Record", + "package": "typescript" }, { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 881, - "col": 4, - "byteIndex": 22695 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } } - ], - "callSignatures": [], - "indexSignatures": [] + ] } } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 879, - "col": 2, - "byteIndex": 22639 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "mongo:count", - "kind": "literal", - "literal": { - "kind": "string", - "string": "mongo:count" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 872, - "col": 2, - "byteIndex": 22434 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 873, - "col": 2, - "byteIndex": 22476 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 874, - "col": 2, - "byteIndex": 22515 - } - }, - { - "tsType": { - "repr": "MongoFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 875, - "col": 2, - "byteIndex": 22547 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "count", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 876, - "col": 2, - "byteIndex": 22584 - } - }, - { - "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-mongodb/0.6.1/result.ts", - "line": 877, - "col": 2, - "byteIndex": 22609 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "MongoCountResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultFailure" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "createMongoClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/client.ts", - "line": 488, - "col": 0, - "byteIndex": 13203 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new MongoDB client instance.\n\nThe client provides typed collection access, aggregation pipelines,\ntransaction support, and comprehensive CRUD operations.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- MongoDB client configuration" - }, - { - "kind": "return", - "doc": "A promise resolving to a new MongoDB client instance\n" - }, - { - "kind": "example", - "doc": "Basic usage with connection string\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst users = mongo.collection<{ name: string; age: number }>(\"users\");\nconst result = await users.find({ age: { $gte: 18 } });\n\nif (result.ok) {\n console.log(result.docs[0]);\n} else {\n console.error(\"Error:\", result.error.message);\n}\n\nawait mongo.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using connection config object\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nconst mongo = await createMongoClient({\n url: {\n host: \"localhost\",\n port: 27017,\n username: \"admin\",\n password: \"secret\",\n authSource: \"admin\",\n },\n database: \"testdb\",\n});\n\nawait mongo.close();\n```\n" - }, - { - "kind": "example", - "doc": "Insert and query documents\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { name: string; age: number }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\nconst users = mongo.collection(\"users\");\n\n// Insert a document\nconst insertResult = await users.insertOne({ name: \"Alice\", age: 30 });\nif (insertResult.ok) {\n console.log(\"Inserted ID:\", insertResult.insertedId);\n}\n\n// Find documents with projection and sorting\nconst findResult = await users.find(\n { age: { $gte: 25 } },\n { sort: { name: 1 }, limit: 10 }\n);\nif (findResult.ok) {\n console.log(\"Found:\", findResult.docs.length);\n}\n\nawait mongo.close();\n```\n" - }, - { - "kind": "example", - "doc": "Transaction with auto-commit/rollback\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { _id?: unknown; name: string; age: number }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nawait mongo.transaction(async (session) => {\n const users = session.collection(\"users\");\n const insertResult = await users.insertOne({ name: \"Bob\", age: 25 });\n if (!insertResult.ok) throw insertResult.error;\n\n const updateResult = await users.updateOne(\n { name: \"Alice\" },\n { $inc: { age: 1 } }\n );\n if (!updateResult.ok) throw updateResult.error;\n});\n\nawait mongo.close();\n```\n" - }, - { - "kind": "example", - "doc": "Aggregation pipeline\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { name: string; age: number; department: string }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\nconst users = mongo.collection(\"users\");\n\nconst result = await users.aggregate<{ _id: string; avgAge: number }>([\n { $group: { _id: \"$department\", avgAge: { $avg: \"$age\" } } },\n { $sort: { avgAge: -1 } },\n]);\nif (result.ok) {\n console.log(result.docs);\n}\n\nawait mongo.close();\n```\n" - }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nawait using mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst result = await mongo.collection(\"users\").find({});\nif (result.ok) {\n console.log(result.docs);\n}\n// Client automatically closed when scope exits\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "MongoClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoClientConfig" + ], + "type": { + "type": "intrinsic", + "name": "this" } } - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "MongoClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoClient" + ] + }, + { + "id": 9210, + "name": "toHaveRowsSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9211, + "name": "toHaveRowsSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the rows satisfy the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 9212, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the rows and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 9213, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9214, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9215, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + } + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "typeName": "Promise" - } + } + ] }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "SqsDeleteBatchResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 8, - "col": 0, - "byteIndex": 293 - }, - "declarationKind": "export", - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 14, - "col": 2, - "byteIndex": 414 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessful", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 16, - "col": 2, - "byteIndex": 433 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + { + "id": 9207, + "name": "toHaveRowsStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9208, + "name": "toHaveRowsStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the rows strictly equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 9209, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected rows value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 17, - "col": 2, - "byteIndex": 478 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 9283, + "name": "toHaveWarnings", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9284, + "name": "toHaveWarnings", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 9285, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected warnings value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulStrictEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 18, - "col": 2, - "byteIndex": 528 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 9306, + "name": "toHaveWarningsContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9307, + "name": "toHaveWarningsContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings array contains the specified item." + } + ] + }, + "parameters": [ + { + "id": 9308, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulSatisfying", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 19, - "col": 2, - "byteIndex": 584 - }, - "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": "SqsDeleteBatchSuccessful", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchSuccessful" - } - } + } + ] + }, + { + "id": 9309, + "name": "toHaveWarningsContainingEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9310, + "name": "toHaveWarningsContainingEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings array contains an item equal to the specified value." + } + ] + }, + "parameters": [ + { + "id": 9311, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for using deep equality" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulContaining", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 22, - "col": 2, - "byteIndex": 681 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + } + ] + }, + { + "id": 9315, + "name": "toHaveWarningsEmpty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9316, + "name": "toHaveWarningsEmpty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings array is empty." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulContainingEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 23, - "col": 2, - "byteIndex": 732 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 9286, + "name": "toHaveWarningsEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9287, + "name": "toHaveWarningsEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings equal the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 9288, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected warnings value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulMatching", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 24, - "col": 2, - "byteIndex": 788 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 9312, + "name": "toHaveWarningsMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9313, + "name": "toHaveWarningsMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings array matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 9314, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "intrinsic", + "name": "unknown" } ], - "typeName": "Record" + "name": "Record", + "package": "typescript" } } - } - ] + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulEmpty", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 27, - "col": 2, - "byteIndex": 902 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulCount", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 28, - "col": 2, - "byteIndex": 935 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + } + ] + }, + { + "id": 9300, + "name": "toHaveWarningsNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9301, + "name": "toHaveWarningsNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings are null." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulCountEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 29, - "col": 2, - "byteIndex": 985 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + } + ] + }, + { + "id": 9304, + "name": "toHaveWarningsNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9305, + "name": "toHaveWarningsNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings are nullish (null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulCountStrictEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 30, - "col": 2, - "byteIndex": 1040 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + } + ] + }, + { + "id": 9298, + "name": "toHaveWarningsPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9299, + "name": "toHaveWarningsPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings are present (not null or undefined)." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulCountSatisfying", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 31, - "col": 2, - "byteIndex": 1101 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" + } + ] + }, + { + "id": 9292, + "name": "toHaveWarningsSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9293, + "name": "toHaveWarningsSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings satisfy the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 9294, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the warnings and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 9295, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9296, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9297, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 9289, + "name": "toHaveWarningsStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9290, + "name": "toHaveWarningsStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings strictly equal the expected value." + } + ] + }, + "parameters": [ + { + "id": 9291, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected warnings value" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + }, + { + "id": 9302, + "name": "toHaveWarningsUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9303, + "name": "toHaveWarningsUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the warnings are undefined." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 9473, + "name": "SqlQueryResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveSuccessfulCountNaN", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 32, - "col": 2, - "byteIndex": 1176 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." + } + ] + }, + "children": [ + { + "id": 9483, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveSuccessfulCountGreaterThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 33, - "col": 2, - "byteIndex": 1212 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Query execution duration in milliseconds." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSuccessfulCountGreaterThanOrEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 34, - "col": 2, - "byteIndex": 1272 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveSuccessfulCountLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 35, - "col": 2, - "byteIndex": 1339 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.duration" + } + }, + { + "id": 9477, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveSuccessfulCountLessThanOrEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 36, - "col": 2, - "byteIndex": 1396 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Error describing the failure." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSuccessfulCountCloseTo", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 37, - "col": 2, - "byteIndex": 1460 - }, - "params": [ + "type": { + "type": "reference", + "target": 9422, + "name": "SqlFailureError", + "package": "@probitas-test/client-sql" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9482, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`\"sql\"`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " for SQL query results." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveFailed", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 39, - "col": 2, - "byteIndex": 1537 - }, - "params": [ + "type": { + "type": "literal", + "value": "sql" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.kind" + } + }, + { + "id": 9480, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "No lastInsertId (query didn't reach server)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveFailedEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 40, - "col": 2, - "byteIndex": 1578 - }, - "params": [ + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9476, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Query failed." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveFailedStrictEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 41, - "col": 2, - "byteIndex": 1624 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9475, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Server did not process the query." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveFailedSatisfying", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 42, - "col": 2, - "byteIndex": 1676 - }, - "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": "SqsDeleteBatchFailed", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchFailed" - } - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9479, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "No row count (query didn't reach server)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveFailedContaining", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 43, - "col": 2, - "byteIndex": 1756 - }, - "params": [ + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9478, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "No rows (query didn't reach server)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveFailedContainingEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 44, - "col": 2, - "byteIndex": 1803 - }, - "params": [ + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9481, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "No warnings (query didn't reach server)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveFailedMatching", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 45, - "col": 2, - "byteIndex": 1855 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 9491, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 9492, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 9493, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 9494, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 9495, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 9496, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" + "id": 9497, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9474, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } ], - "typeName": "Record" + "type": { + "type": "reference", + "target": 9443, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } } - } + ] } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedEmpty", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 48, - "col": 2, - "byteIndex": 1965 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCount", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 49, - "col": 2, - "byteIndex": 1994 - }, - "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": "toHaveFailedCountEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 50, - "col": 2, - "byteIndex": 2040 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 9443, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountStrictEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 51, - "col": 2, - "byteIndex": 2091 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9484, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 9485, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ + { + "id": 9486, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountSatisfying", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 52, - "col": 2, - "byteIndex": 2148 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" + ], + "parameters": [ + { + "id": 9487, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 9488, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9489, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9490, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9474, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 9436, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } } - } - ], - "typeParams": [] + ] + } } } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountNaN", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 53, - "col": 2, - "byteIndex": 2219 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountGreaterThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 54, - "col": 2, - "byteIndex": 2251 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 9436, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" + } + } + ], + "typeParameters": [ + { + "id": 9474, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9474, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultFailure.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] + }, + { + "id": 9423, + "name": "SqlQueryResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveFailedCountGreaterThanOrEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 55, - "col": 2, - "byteIndex": 2307 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." + } + ] + }, + "children": [ + { + "id": 9433, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveFailedCountLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 56, - "col": 2, - "byteIndex": 2370 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Query execution duration in milliseconds." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveFailedCountLessThanOrEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 57, - "col": 2, - "byteIndex": 2423 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveFailedCountCloseTo", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 58, - "col": 2, - "byteIndex": 2483 - }, - "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": [] + "inheritedFrom": { + "type": "reference", + "target": 9458, + "name": "SqlQueryResultBase.duration", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9427, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDuration", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 60, - "col": 2, - "byteIndex": 2556 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "No error for successful queries." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 61, - "col": 2, - "byteIndex": 2599 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "toHaveDurationStrictEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 62, - "col": 2, - "byteIndex": 2647 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.error", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9432, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator. Always " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 63, - "col": 2, - "byteIndex": 2701 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 64, - "col": 2, - "byteIndex": 2769 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 65, - "col": 2, - "byteIndex": 2798 - }, - "params": [ + "kind": "code", + "text": "`\"sql\"`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " for SQL query results." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 66, - "col": 2, - "byteIndex": 2851 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sql" }, - { - "name": "toHaveDurationLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 67, - "col": 2, - "byteIndex": 2911 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 9457, + "name": "SqlQueryResultBase.kind", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9430, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationLessThanOrEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 68, - "col": 2, - "byteIndex": 2961 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Last inserted ID (for INSERT statements)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_batch.ts", - "line": 69, - "col": 2, - "byteIndex": 3018 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "bigint" + }, + { + "type": "literal", + "value": null } - ], - "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.5.0/sqs/delete_batch.ts", - "line": 12, - "col": 2, - "byteIndex": 391 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteQueueResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 10, - "col": 0, - "byteIndex": 304 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS delete queue result validation.\n\nProvides chainable assertions for queue deletion results.\nDelete queue results only have ok and duration properties." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 32, - "col": 2, - "byteIndex": 860 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + }, + { + "id": 9426, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 38, - "col": 2, - "byteIndex": 1000 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Query succeeded." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 44, - "col": 2, - "byteIndex": 1185 - }, - "params": [ + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.ok", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9425, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Server processed the query." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 50, - "col": 2, - "byteIndex": 1364 - }, - "params": [ + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.processed", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9429, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Number of affected rows." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 56, - "col": 2, - "byteIndex": 1587 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 9428, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Query result rows." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 61, - "col": 2, - "byteIndex": 1707 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 9424, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + } + }, + { + "id": 9431, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 67, - "col": 2, - "byteIndex": 1868 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Warning messages from the database." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 73, - "col": 2, - "byteIndex": 2065 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } + }, + { + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ + ] + } + }, + { + "id": 9441, + "name": "as", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 9442, + "name": "as", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create class instances from rows.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 79, - "col": 2, - "byteIndex": 2254 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 9443, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ + ], + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + "id": 9444, + "name": "ctor", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 9445, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 9446, + "name": "ctor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 9447, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9424, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 9443, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 85, - "col": 2, - "byteIndex": 2445 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 9443, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.as", + "package": "@probitas-test/client-sql" + } + }, + { + "id": 9434, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 9435, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Map rows to a new type.\nReturns empty array if query failed or was not processed." + } + ] + }, + "typeParameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, + "id": 9436, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" + "id": 9437, + "name": "mapper", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 9438, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 9439, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 9440, + "name": "row", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9424, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 9436, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + } + ] + } + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 92, - "col": 2, - "byteIndex": 2695 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 9436, + "name": "U", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqlQueryResultBase.map", + "package": "@probitas-test/client-sql" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { SqsDeleteQueueResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsDeleteQueueResult } from \"./delete_queue.ts\";\nconst result = {\n kind: \"sqs:delete-queue\",\n ok: false,\n duration: 0,\n} as unknown as SqsDeleteQueueResult;\n\nexpectSqsDeleteQueueResult(result).not.toBeOk();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete_queue.ts", - "line": 27, - "col": 2, - "byteIndex": 781 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } + ], + "typeParameters": [ + { + "id": 9424, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sql", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqlQueryResultBase" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9424, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccess.T", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultBase", + "package": "@probitas-test/client-sql" + } + ] }, { - "name": "SqsDeleteResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 10, - "col": 0, - "byteIndex": 289 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS delete result validation.\n\nProvides chainable assertions for message deletion results.\nDelete results only have ok and duration properties." + "id": 9500, + "name": "SqlQueryResultSuccessParams", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Parameters for creating a SqlQueryResultSuccess." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 32, - "col": 2, - "byteIndex": 808 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 9504, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 38, - "col": 2, - "byteIndex": 948 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Query execution duration in milliseconds" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 44, - "col": 2, - "byteIndex": 1133 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 9505, + "name": "lastInsertId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 50, - "col": 2, - "byteIndex": 1312 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Last inserted ID (for INSERT statements)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 56, - "col": 2, - "byteIndex": 1535 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "bigint" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 61, - "col": 2, - "byteIndex": 1655 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + } + }, + { + "id": 9503, + "name": "rowCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 67, - "col": 2, - "byteIndex": 1816 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Number of affected rows (for INSERT/UPDATE/DELETE)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 73, - "col": 2, - "byteIndex": 2013 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 9502, + "name": "rows", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "The result rows" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 79, - "col": 2, - "byteIndex": 2202 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 9501, + "name": "T", + "package": "@probitas-test/client-sql", + "qualifiedName": "SqlQueryResultSuccessParams.T", + "refersToTypeParameter": true } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } + } + }, + { + "id": 9506, + "name": "warnings", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 85, - "col": 2, - "byteIndex": 2393 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Warning messages from the database" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 92, - "col": 2, - "byteIndex": 2643 - }, - "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" - } + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { SqsDeleteResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsDeleteResult } from \"./delete.ts\";\nconst result = {\n kind: \"sqs:delete\",\n ok: false,\n duration: 0,\n} as unknown as SqsDeleteResult;\n\nexpectSqsDeleteResult(result).not.toBeOk();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/delete.ts", - "line": 27, - "col": 2, - "byteIndex": 729 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } + ], + "typeParameters": [ + { + "id": 9501, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "SqsEnsureQueueResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 11, - "col": 0, - "byteIndex": 323 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS ensure queue result validation.\n\nProvides chainable assertions for queue creation/retrieval results\nincluding queue URL." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 34, - "col": 2, - "byteIndex": 934 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "id": 9358, + "name": "SqlTransaction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveQueueUrl", - "jsDoc": { - "doc": "Asserts that the queue URL equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected queue URL" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 40, - "col": 2, - "byteIndex": 1070 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." + } + ] + }, + "children": [ + { + "id": 9371, + "name": "commit", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9372, + "name": "commit", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Commit the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveQueueUrlEqual", - "jsDoc": { - "doc": "Asserts that the queue URL equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected queue URL" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 46, - "col": 2, - "byteIndex": 1251 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 9359, + "name": "query", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9360, + "name": "query", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query within the transaction." + } + ] + }, + "typeParameters": [ + { + "id": 9361, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveQueueUrlStrictEqual", - "jsDoc": { - "doc": "Asserts that the queue URL strictly equals the expected value.", - "tags": [ + ], + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected queue URL" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 52, - "col": 2, - "byteIndex": 1426 - }, - "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": "toHaveQueueUrlSatisfying", - "jsDoc": { - "doc": "Asserts that the queue URL satisfies the provided matcher function.", - "tags": [ + "id": 9362, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the queue URL and performs assertions" + "id": 9363, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 9364, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" + } + ] + }, + "type": { + "type": "reference", + "target": 9350, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 58, - "col": 2, - "byteIndex": 1651 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9498, + "typeArguments": [ + { + "type": "reference", + "target": 9361, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 9365, + "name": "queryOne", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9366, + "name": "queryOne", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute a query and return the first row or undefined." + } + ] + }, + "typeParameters": [ + { + "id": 9367, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 9368, + "name": "sql", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 9369, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query parameters" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 9370, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional query options" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "reference", + "target": 9350, + "name": "SqlQueryOptions", + "package": "@probitas-test/client-sql" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9367, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveQueueUrlContaining", - "jsDoc": { - "doc": "Asserts that the queue URL contains the specified substring.", - "tags": [ - { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 64, - "col": 2, - "byteIndex": 1847 - }, - "params": [ - { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + } + ] + }, + { + "id": 9373, + "name": "rollback", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 9374, + "name": "rollback", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Rollback the transaction." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + } + ] + }, + { + "id": 9356, + "name": "SqlTransactionOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveQueueUrlMatching", - "jsDoc": { - "doc": "Asserts that the queue URL matches the specified regular expression.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 70, - "col": 2, - "byteIndex": 2047 - }, - "params": [ + "kind": "text", + "text": "Options for starting a transaction." + } + ] + }, + "children": [ + { + "id": 9357, + "name": "isolationLevel", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } + "kind": "text", + "text": "Isolation level for the transaction" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, + "type": { + "type": "reference", + "target": 9355, + "name": "SqlIsolationLevel", + "package": "@probitas-test/client-sql" + } + } + ] + }, + { + "id": 11569, + "name": "SqsBatchError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 76, - "col": 2, - "byteIndex": 2219 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Error thrown when a batch operation partially fails." + } + ] + }, + "children": [ + { + "id": 11573, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 11585, + "name": "SqsError.code" + } + }, + { + "id": 11572, + "name": "failedCount", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11571, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "batch" + }, + "overwrites": { + "type": "reference", + "target": 11586, + "name": "SqsError.kind" + } + }, + { + "id": 11570, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsBatchError" + }, + "defaultValue": "\"SqsBatchError\"", + "overwrites": { + "type": "reference", + "target": 11584, + "name": "SqsError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 8174, + "name": "SqsBatchFailedEntry", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Failed batch entry." + } + ] + }, + "children": [ + { + "id": 8176, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8175, + "name": "id", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8177, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 8156, + "name": "SqsBatchMessage", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 82, - "col": 2, - "byteIndex": 2404 - }, - "params": [ + "kind": "text", + "text": "Batch message for sendBatch." + } + ] + }, + "children": [ + { + "id": 8158, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8159, + "name": "delaySeconds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8157, + "name": "id", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8160, + "name": "messageAttributes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "reference", + "target": 8136, + "name": "SqsMessageAttribute", + "package": "@probitas-test/client-sqs" } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 8190, + "name": "SqsBatchOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 88, - "col": 2, - "byteIndex": 2583 - }, - "params": [ + "kind": "text", + "text": "Options for batch operations." + } + ] + }, + "children": [ + { + "id": 8194, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Retry configuration." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 94, - "col": 2, - "byteIndex": 2806 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8115, + "name": "SqsOptions.retry" + } + }, + { + "id": 8193, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 99, - "col": 2, - "byteIndex": 2926 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "AbortSignal", + "package": "typescript" }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 105, - "col": 2, - "byteIndex": 3087 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": 8114, + "name": "SqsOptions.signal" + } + }, + { + "id": 8191, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 111, - "col": 2, - "byteIndex": 3284 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 117, - "col": 2, - "byteIndex": 3473 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 123, - "col": 2, - "byteIndex": 3664 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "boolean" }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 130, - "col": 2, - "byteIndex": 3914 - }, - "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" - } + "inheritedFrom": { + "type": "reference", + "target": 8112, + "name": "SqsOptions.throwOnError" + } + }, + { + "id": 8192, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8113, + "name": "SqsOptions.timeout" } - ], - "properties": [ + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8111, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 8171, + "name": "SqsBatchSuccessEntry", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { SqsEnsureQueueResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsEnsureQueueResult } from \"./ensure_queue.ts\";\nconst result = {\n kind: \"sqs:ensure-queue\",\n ok: false,\n queueUrl: \"https://sqs.example.com/test-queue\",\n duration: 0,\n} as unknown as SqsEnsureQueueResult;\n\nexpectSqsEnsureQueueResult(result).not.toBeOk();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/ensure_queue.ts", - "line": 29, - "col": 2, - "byteIndex": 855 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Successful batch send entry." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + }, + "children": [ + { + "id": 8173, + "name": "id", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8172, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "SqsReceiveResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 13, - "col": 0, - "byteIndex": 400 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS receive result validation.\n\nProvides chainable assertions specifically designed for message receive results\nincluding messages array and message count." + "id": 8200, + "name": "SqsClient", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQS client interface." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 36, - "col": 2, - "byteIndex": 975 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 8201, + "name": "config", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": 8124, + "name": "SqsClientConfig", + "package": "@probitas-test/client-sqs" + } + }, + { + "id": 8202, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveMessages", - "jsDoc": { - "doc": "Asserts that the messages equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected messages" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 42, - "col": 2, - "byteIndex": 1109 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "The current queue URL. Can be set via config, ensureQueue(), or setQueueUrl()." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessagesEqual", - "jsDoc": { - "doc": "Asserts that the messages equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected messages" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 48, - "col": 2, - "byteIndex": 1288 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesStrictEqual", - "jsDoc": { - "doc": "Asserts that the messages strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected messages" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 54, - "col": 2, - "byteIndex": 1461 - }, - "params": [ + "type": "intrinsic", + "name": "string" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "intrinsic", + "name": "undefined" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesSatisfying", - "jsDoc": { - "doc": "Asserts that the messages satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the messages and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 60, - "col": 2, - "byteIndex": 1684 - }, - "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": "SqsMessages", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessages" - } - } - } - ], - "typeParams": [] + ] + } + }, + { + "id": 8236, + "name": "close", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8237, + "name": "close", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Close the client and release resources." } - } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesContaining", - "jsDoc": { - "doc": "Asserts that the messages contains the specified item.", - "tags": [ + } + ] + }, + { + "id": 8225, + "name": "delete", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8226, + "name": "delete", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete a message from the queue." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "item", - "doc": "- The item to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 66, - "col": 2, - "byteIndex": 1872 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 8227, + "name": "receiptHandle", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8228, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8185, + "name": "SqsDeleteOptions", + "package": "@probitas-test/client-sqs" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 11563, + "name": "SqsDeleteResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesContainingEqual", - "jsDoc": { - "doc": "Asserts that the messages contains an item equal to the specified value.", - "tags": [ + } + ] + }, + { + "id": 8229, + "name": "deleteBatch", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8230, + "name": "deleteBatch", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete multiple messages from the queue in a single request." + } + ] + }, + "parameters": [ + { + "id": 8231, + "name": "receiptHandles", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, { - "kind": "param", - "name": "item", - "doc": "- The item to search for using deep equality" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 72, - "col": 2, - "byteIndex": 2074 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 8232, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8190, + "name": "SqsBatchOptions", + "package": "@probitas-test/client-sqs" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 11561, + "name": "SqsDeleteBatchResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesMatching", - "jsDoc": { - "doc": "Asserts that the messages matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 8210, + "name": "deleteQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8211, + "name": "deleteQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete a queue by URL." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 78, - "col": 2, - "byteIndex": 2251 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] + "id": 8212, + "name": "queueUrl", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8213, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8195, + "name": "SqsDeleteQueueOptions", + "package": "@probitas-test/client-sqs" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 11562, + "name": "SqsDeleteQueueResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesEmpty", - "jsDoc": { - "doc": "Asserts that the messages is empty." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 85, - "col": 2, - "byteIndex": 2417 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesCount", - "jsDoc": { - "doc": "Asserts that the messages count equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 8206, + "name": "ensureQueue", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8207, + "name": "ensureQueue", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Ensure a queue exists. Creates the queue if it doesn't exist.\nIf the queue already exists with the same attributes, returns the existing queue URL.\nAlso sets the queue URL for subsequent operations." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected messages count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 91, - "col": 2, - "byteIndex": 2576 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 8208, + "name": "queueName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8209, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8178, + "name": "SqsEnsureQueueOptions", + "package": "@probitas-test/client-sqs" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 11564, + "name": "SqsEnsureQueueResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesCountEqual", - "jsDoc": { - "doc": "Asserts that the messages count equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 8233, + "name": "purge", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8234, + "name": "purge", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Purge all messages from the queue." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected messages count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 97, - "col": 2, - "byteIndex": 2772 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 8235, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8111, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 11563, + "name": "SqsDeleteResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the messages count strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 8222, + "name": "receive", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8223, + "name": "receive", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Receive messages from the queue." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The expected messages count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 103, - "col": 2, - "byteIndex": 2962 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 8224, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8161, + "name": "SqsReceiveOptions", + "package": "@probitas-test/client-sqs" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 11565, + "name": "SqsReceiveResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesCountSatisfying", - "jsDoc": { - "doc": "Asserts that the messages count satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 8214, + "name": "send", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8215, + "name": "send", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send a message to the queue." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the messages count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 109, - "col": 2, - "byteIndex": 3202 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] + "id": 8216, + "name": "body", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesCountNaN", - "jsDoc": { - "doc": "Asserts that the messages count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 114, - "col": 2, - "byteIndex": 3333 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the messages count is greater than the expected value.", - "tags": [ + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 120, - "col": 2, - "byteIndex": 3505 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8217, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8147, + "name": "SqsSendOptions", + "package": "@probitas-test/client-sqs" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 11568, + "name": "SqsSendResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the messages count is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 8218, + "name": "sendBatch", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8219, + "name": "sendBatch", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Send multiple messages to the queue in a single request." + } + ] + }, + "parameters": [ + { + "id": 8220, + "name": "messages", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 8156, + "name": "SqsBatchMessage", + "package": "@probitas-test/client-sqs" + } + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 126, - "col": 2, - "byteIndex": 3713 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8221, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 8190, + "name": "SqsBatchOptions", + "package": "@probitas-test/client-sqs" + } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 11567, + "name": "SqsSendBatchResult", + "package": "@probitas-test/client-sqs" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagesCountLessThan", - "jsDoc": { - "doc": "Asserts that the messages count is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 8203, + "name": "setQueueUrl", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 8204, + "name": "setQueueUrl", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the queue URL for subsequent operations." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 132, - "col": 2, - "byteIndex": 3913 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 8205, + "name": "queueUrl", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } } + ], + "type": { + "type": "intrinsic", + "name": "void" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "AsyncDisposable" + }, + "name": "AsyncDisposable", + "package": "typescript" + } + ] + }, + { + "id": 8124, + "name": "SqsClientConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveMessagesCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the messages count is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 138, - "col": 2, - "byteIndex": 4115 - }, - "params": [ + "kind": "text", + "text": "SQS client configuration." + } + ] + }, + "children": [ + { + "id": 8126, + "name": "credentials", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "AWS credentials" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessagesCountCloseTo", - "jsDoc": { - "doc": "Asserts that the messages count is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + "type": { + "type": "reflection", + "declaration": { + "id": 8127, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 8128, + "name": "accessKeyId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" + "id": 8129, + "name": "secretAccessKey", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } } ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 145, - "col": 2, - "byteIndex": 4376 - }, - "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": [] + } + } + }, + { + "id": 8130, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 151, - "col": 2, - "byteIndex": 4572 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "SQS queue URL (optional - can be set later or used with ensureQueue)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 157, - "col": 2, - "byteIndex": 4757 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8125, + "name": "region", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "AWS region" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 163, - "col": 2, - "byteIndex": 4936 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8135, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 169, - "col": 2, - "byteIndex": 5159 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8115, + "name": "SqsOptions.retry" + } + }, + { + "id": 8134, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 174, - "col": 2, - "byteIndex": 5279 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "AbortSignal", + "package": "typescript" }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 180, - "col": 2, - "byteIndex": 5440 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": 8114, + "name": "SqsOptions.signal" + } + }, + { + "id": 8132, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 186, - "col": 2, - "byteIndex": 5637 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 192, - "col": 2, - "byteIndex": 5826 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 8112, + "name": "SqsOptions.throwOnError" + } + }, + { + "id": 8133, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 198, - "col": 2, - "byteIndex": 6017 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8113, + "name": "SqsOptions.timeout" + } + }, + { + "id": 8131, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "SQS endpoint URL (e.g., \"http://localhost:9324\" for ElasticMQ).\nCan be a string URL or a connection config object.\nOptional for real AWS (uses default endpoint), required for an emulator." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 205, - "col": 2, - "byteIndex": 6267 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "reference", + "target": 8116, + "name": "SqsConnectionConfig", + "package": "@probitas-test/client-sqs" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] } - ], - "properties": [ + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8111, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 11574, + "name": "SqsCommandError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { SqsReceiveResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsReceiveResult } from \"./receive.ts\";\nconst result = {\n kind: \"sqs:receive\",\n ok: true,\n messages: [{ body: \"test\" }],\n duration: 0,\n} as unknown as SqsReceiveResult;\n\nexpectSqsReceiveResult(result).not.toHaveMessagesEmpty();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/receive.ts", - "line": 31, - "col": 2, - "byteIndex": 896 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Error thrown when an SQS command fails." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + }, + "children": [ + { + "id": 11578, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 11585, + "name": "SqsError.code" + } + }, + { + "id": 11576, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "command" + }, + "overwrites": { + "type": "reference", + "target": 11586, + "name": "SqsError.kind" + } + }, + { + "id": 11575, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsCommandError" + }, + "defaultValue": "\"SqsCommandError\"", + "overwrites": { + "type": "reference", + "target": 11584, + "name": "SqsError.name" + } + }, + { + "id": 11577, + "name": "operation", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendBatchResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 14, - "col": 0, - "byteIndex": 484 + "id": 8240, + "name": "SqsCommandErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for SQS command errors." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS send batch result validation.\n\nProvides chainable assertions specifically designed for batch message send results\nincluding successful and failed messages arrays." + "children": [ + { + "id": 8242, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 8239, + "name": "SqsErrorOptions.code" + } + }, + { + "id": 8241, + "name": "operation", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8238, + "name": "SqsErrorOptions", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 8116, + "name": "SqsConnectionConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQS connection configuration.\n\nExtends CommonConnectionConfig with SQS-specific options." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 38, - "col": 2, - "byteIndex": 1068 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 8120, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveSuccessful", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 40, - "col": 2, - "byteIndex": 1087 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Hostname or IP address." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"localhost\"\n```" + } + ] + } + ] }, - { - "name": "toHaveSuccessfulEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 41, - "col": 2, - "byteIndex": 1132 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.host" + } + }, + { + "id": 8123, + "name": "password", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Password for authentication." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.password" + } + }, + { + "id": 8118, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Custom path (for emulators or custom endpoints)." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"\"\n```" + } + ] + } + ] }, - { - "name": "toHaveSuccessfulStrictEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 42, - "col": 2, - "byteIndex": 1182 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8121, + "name": "port", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Port number. Each service has its own default." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.port" + } + }, + { + "id": 8117, + "name": "protocol", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Protocol to use." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulSatisfying", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 43, - "col": 2, - "byteIndex": 1238 - }, - "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": "SqsSendBatchSuccessful", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchSuccessful" - } - } - } - ], - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n\"https\"\n```" } - } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSuccessfulContaining", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 46, - "col": 2, - "byteIndex": 1333 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "literal", + "value": "http" + }, + { + "type": "literal", + "value": "https" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + } + }, + { + "id": 8119, + "name": "region", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveSuccessfulContainingEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 47, - "col": 2, - "byteIndex": 1384 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "AWS region (required for AWS, optional for emulators)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSuccessfulMatching", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 48, - "col": 2, - "byteIndex": 1440 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8122, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Username for authentication." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSuccessfulEmpty", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 51, - "col": 2, - "byteIndex": 1554 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonConnectionConfig.username" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonConnectionConfig" + }, + "name": "CommonConnectionConfig", + "package": "@probitas-test/client" + } + ] + }, + { + "id": 11579, + "name": "SqsConnectionError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveSuccessfulCount", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 52, - "col": 2, - "byteIndex": 1587 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "kind": "text", + "text": "Error thrown when an SQS connection cannot be established." + } + ] + }, + "children": [ + { + "id": 11582, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 11585, + "name": "SqsError.code" + } + }, + { + "id": 11581, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "connection" + }, + "overwrites": { + "type": "reference", + "target": 11586, + "name": "SqsError.kind" + } + }, + { + "id": 11580, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsConnectionError" + }, + "defaultValue": "\"SqsConnectionError\"", + "overwrites": { + "type": "reference", + "target": 11584, + "name": "SqsError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 8507, + "name": "SqsDeleteBatchResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveSuccessfulCountEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 53, - "col": 2, - "byteIndex": 1637 - }, - "params": [ + "kind": "text", + "text": "Batch delete result with SQS error." + } + ] + }, + "children": [ + { + "id": 8514, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSuccessfulCountStrictEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 54, - "col": 2, - "byteIndex": 1692 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.duration" + } + }, + { + "id": 8510, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSuccessfulCountSatisfying", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 55, - "col": 2, - "byteIndex": 1753 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.error" + } + }, + { + "id": 8512, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + } + }, + { + "id": 8513, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSuccessfulCountNaN", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 56, - "col": 2, - "byteIndex": 1828 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:delete-batch" }, - { - "name": "toHaveSuccessfulCountGreaterThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 57, - "col": 2, - "byteIndex": 1864 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.kind" + } + }, + { + "id": 8509, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulCountGreaterThanOrEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 58, - "col": 2, - "byteIndex": 1924 - }, - "params": [ + "kind": "code", + "text": "`false`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulCountLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 59, - "col": 2, - "byteIndex": 1991 - }, - "params": [ + "kind": "text", + "text": " when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveSuccessfulCountLessThanOrEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 60, - "col": 2, - "byteIndex": 2048 - }, - "params": [ + "kind": "code", + "text": "`processed`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSuccessfulCountCloseTo", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 61, - "col": 2, - "byteIndex": 2112 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.ok" + } + }, + { + "id": 8508, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveFailed", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 63, - "col": 2, - "byteIndex": 2189 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.processed" + } + }, + { + "id": 8511, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsDeleteBatchResultBase" + }, + "name": "SqsDeleteBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 10915, + "name": "SqsDeleteBatchResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 10916, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveFailedEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 64, - "col": 2, - "byteIndex": 2230 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": { + "type": "reference", + "target": 10915, + "name": "SqsDeleteBatchResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 10917, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10918, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11037, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11038, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11039, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedStrictEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 65, - "col": 2, - "byteIndex": 2276 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 11066, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11067, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11068, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11069, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedSatisfying", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 66, - "col": 2, - "byteIndex": 2328 - }, - "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": "SqsSendBatchFailed", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchFailed" - } - } - } - ], - "typeParams": [] + } + ] + }, + { + "id": 11040, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11041, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11042, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedContaining", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 67, - "col": 2, - "byteIndex": 2406 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 11054, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11055, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11056, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedContainingEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 68, - "col": 2, - "byteIndex": 2453 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 11057, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11058, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11059, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedMatching", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 69, - "col": 2, - "byteIndex": 2505 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + } + ] + }, + { + "id": 11060, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11061, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11062, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11063, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11064, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11065, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11052, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11053, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11046, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11047, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11048, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 11049, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11050, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" + "id": 11051, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } ], - "typeName": "Record" + "type": { + "type": "intrinsic", + "name": "void" + } } - } + ] } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedEmpty", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 72, - "col": 2, - "byteIndex": 2615 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCount", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 73, - "col": 2, - "byteIndex": 2644 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 74, - "col": 2, - "byteIndex": 2690 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 11043, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11044, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11045, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountStrictEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 75, - "col": 2, - "byteIndex": 2741 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 10978, + "name": "toHaveFailed", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10979, + "name": "toHaveFailed", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10980, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountSatisfying", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 76, - "col": 2, - "byteIndex": 2798 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] + } + ] + }, + { + "id": 10993, + "name": "toHaveFailedContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10994, + "name": "toHaveFailedContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10995, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountNaN", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 77, - "col": 2, - "byteIndex": 2869 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountGreaterThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 78, - "col": 2, - "byteIndex": 2901 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + } + ] + }, + { + "id": 10996, + "name": "toHaveFailedContainingEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10997, + "name": "toHaveFailedContainingEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10998, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountGreaterThanOrEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 79, - "col": 2, - "byteIndex": 2957 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + } + ] + }, + { + "id": 11004, + "name": "toHaveFailedCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11005, + "name": "toHaveFailedCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11006, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 80, - "col": 2, - "byteIndex": 3020 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + } + ] + }, + { + "id": 11033, + "name": "toHaveFailedCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11034, + "name": "toHaveFailedCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11035, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11036, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountLessThanOrEqual", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 81, - "col": 2, - "byteIndex": 3073 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + } + ] + }, + { + "id": 11007, + "name": "toHaveFailedCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11008, + "name": "toHaveFailedCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11009, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveFailedCountCloseTo", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 82, - "col": 2, - "byteIndex": 3133 - }, - "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" + } + ] + }, + { + "id": 11021, + "name": "toHaveFailedCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11022, + "name": "toHaveFailedCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11023, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11024, + "name": "toHaveFailedCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11025, + "name": "toHaveFailedCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11026, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 88, - "col": 2, - "byteIndex": 3327 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 11027, + "name": "toHaveFailedCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11028, + "name": "toHaveFailedCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11029, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 94, - "col": 2, - "byteIndex": 3512 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11030, + "name": "toHaveFailedCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11031, + "name": "toHaveFailedCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11032, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 100, - "col": 2, - "byteIndex": 3691 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", + } + ] + }, + { + "id": 11019, + "name": "toHaveFailedCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11020, + "name": "toHaveFailedCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11013, + "name": "toHaveFailedCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11014, + "name": "toHaveFailedCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11015, "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 106, - "col": 2, - "byteIndex": 3914 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 11016, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11017, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11018, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } - } - ], - "typeParams": [] + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 111, - "col": 2, - "byteIndex": 4034 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11010, + "name": "toHaveFailedCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11011, + "name": "toHaveFailedCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11012, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 117, - "col": 2, - "byteIndex": 4195 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11002, + "name": "toHaveFailedEmpty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11003, + "name": "toHaveFailedEmpty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10981, + "name": "toHaveFailedEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10982, + "name": "toHaveFailedEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 10983, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 123, - "col": 2, - "byteIndex": 4392 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + } + ] + }, + { + "id": 10999, + "name": "toHaveFailedMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11000, + "name": "toHaveFailedMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11001, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 129, - "col": 2, - "byteIndex": 4581 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10987, + "name": "toHaveFailedSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10988, + "name": "toHaveFailedSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10989, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 10990, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10991, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10992, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 8174, + "name": "SqsBatchFailedEntry", + "package": "@probitas-test/client-sqs" + } + } + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10984, + "name": "toHaveFailedStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10985, + "name": "toHaveFailedStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 10986, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 135, - "col": 2, - "byteIndex": 4772 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 10919, + "name": "toHaveSuccessful", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10920, + "name": "toHaveSuccessful", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 10921, "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 142, - "col": 2, - "byteIndex": 5022 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10934, + "name": "toHaveSuccessfulContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10935, + "name": "toHaveSuccessfulContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10936, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { SqsSendBatchResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsSendBatchResult } from \"./send_batch.ts\";\nconst result = {\n kind: \"sqs:send-batch\",\n ok: false,\n successful: [],\n failed: [],\n duration: 0,\n} as unknown as SqsSendBatchResult;\n\nexpectSqsSendBatchResult(result).not.toBeOk();\n```" + } + ] + }, + { + "id": 10937, + "name": "toHaveSuccessfulContainingEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10938, + "name": "toHaveSuccessfulContainingEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10939, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send_batch.ts", - "line": 33, - "col": 2, - "byteIndex": 989 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsSendResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 11, - "col": 0, - "byteIndex": 346 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS send result validation.\n\nProvides chainable assertions specifically designed for single message send results\nincluding message ID and sequence number." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 36, - "col": 2, - "byteIndex": 942 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessageId", - "jsDoc": { - "doc": "Asserts that the message ID equals the expected value.", - "tags": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10945, + "name": "toHaveSuccessfulCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10946, + "name": "toHaveSuccessfulCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 10947, "name": "expected", - "doc": "- The expected message ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 42, - "col": 2, - "byteIndex": 1080 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessageIdEqual", - "jsDoc": { - "doc": "Asserts that the message ID equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 10974, + "name": "toHaveSuccessfulCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10975, + "name": "toHaveSuccessfulCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10976, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "kind": "param", - "name": "expected", - "doc": "- The expected message ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 48, - "col": 2, - "byteIndex": 1264 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "id": 10977, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessageIdStrictEqual", - "jsDoc": { - "doc": "Asserts that the message ID strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10948, + "name": "toHaveSuccessfulCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10949, + "name": "toHaveSuccessfulCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 10950, "name": "expected", - "doc": "- The expected message ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 54, - "col": 2, - "byteIndex": 1442 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessageIdSatisfying", - "jsDoc": { - "doc": "Asserts that the message ID satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 10962, + "name": "toHaveSuccessfulCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10963, + "name": "toHaveSuccessfulCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the message ID and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 60, - "col": 2, - "byteIndex": 1670 - }, - "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": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] + "id": 10964, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessageIdContaining", - "jsDoc": { - "doc": "Asserts that the message ID contains the specified substring.", - "tags": [ + } + ] + }, + { + "id": 10965, + "name": "toHaveSuccessfulCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10966, + "name": "toHaveSuccessfulCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 66, - "col": 2, - "byteIndex": 1868 - }, - "params": [ - { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "id": 10967, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessageIdMatching", - "jsDoc": { - "doc": "Asserts that the message ID matches the specified regular expression.", - "tags": [ + } + ] + }, + { + "id": 10968, + "name": "toHaveSuccessfulCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10969, + "name": "toHaveSuccessfulCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 10970, "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 72, - "col": 2, - "byteIndex": 2070 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMd5OfBody", - "jsDoc": { - "doc": "Asserts that the MD5 of body equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10971, + "name": "toHaveSuccessfulCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10972, + "name": "toHaveSuccessfulCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 10973, "name": "expected", - "doc": "- The expected MD5 hash" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 78, - "col": 2, - "byteIndex": 2240 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10960, + "name": "toHaveSuccessfulCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10961, + "name": "toHaveSuccessfulCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10954, + "name": "toHaveSuccessfulCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10955, + "name": "toHaveSuccessfulCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10956, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 10957, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10958, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10959, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMd5OfBodyEqual", - "jsDoc": { - "doc": "Asserts that the MD5 of body equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 10951, + "name": "toHaveSuccessfulCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10952, + "name": "toHaveSuccessfulCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 10953, "name": "expected", - "doc": "- The expected MD5 hash" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 84, - "col": 2, - "byteIndex": 2423 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMd5OfBodyStrictEqual", - "jsDoc": { - "doc": "Asserts that the MD5 of body strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 10943, + "name": "toHaveSuccessfulEmpty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10944, + "name": "toHaveSuccessfulEmpty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 10922, + "name": "toHaveSuccessfulEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10923, + "name": "toHaveSuccessfulEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 10924, "name": "expected", - "doc": "- The expected MD5 hash" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 90, - "col": 2, - "byteIndex": 2600 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMd5OfBodySatisfying", - "jsDoc": { - "doc": "Asserts that the MD5 of body satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the MD5 hash and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 96, - "col": 2, - "byteIndex": 2827 - }, - "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": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 10940, + "name": "toHaveSuccessfulMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10941, + "name": "toHaveSuccessfulMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10942, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" } } - ], - "typeParams": [] + ] } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMd5OfBodyContaining", - "jsDoc": { - "doc": "Asserts that the MD5 of body contains the specified substring.", - "tags": [ - { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 102, - "col": 2, - "byteIndex": 3026 - }, - "params": [ - { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + } + ] + }, + { + "id": 10928, + "name": "toHaveSuccessfulSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10929, + "name": "toHaveSuccessfulSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10930, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 10931, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 10932, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 10933, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMd5OfBodyMatching", - "jsDoc": { - "doc": "Asserts that the MD5 of body matches the specified regular expression.", - "tags": [ + } + ] + }, + { + "id": 10925, + "name": "toHaveSuccessfulStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 10926, + "name": "toHaveSuccessfulStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 10927, "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 108, - "col": 2, - "byteIndex": 3229 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + } + ] + } + ] + }, + { + "id": 8515, + "name": "SqsDeleteBatchResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveSequenceNumber", - "jsDoc": { - "doc": "Asserts that the sequence number equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected sequence number" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 114, - "col": 2, - "byteIndex": 3410 - }, - "params": [ + "kind": "text", + "text": "Batch delete result with connection failure." + } + ] + }, + "children": [ + { + "id": 8522, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSequenceNumberEqual", - "jsDoc": { - "doc": "Asserts that the sequence number equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected sequence number" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 120, - "col": 2, - "byteIndex": 3609 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.duration" + } + }, + { + "id": 8518, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSequenceNumberStrictEqual", - "jsDoc": { - "doc": "Asserts that the sequence number strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected sequence number" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsFailureError" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 126, - "col": 2, - "byteIndex": 3802 - }, - "params": [ + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.error" + } + }, + { + "id": 8520, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 8521, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSequenceNumberSatisfying", - "jsDoc": { - "doc": "Asserts that the sequence number satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the sequence number and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 132, - "col": 2, - "byteIndex": 4045 - }, - "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": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:delete-batch" }, - { - "name": "toHaveSequenceNumberContaining", - "jsDoc": { - "doc": "Asserts that the sequence number contains the specified substring.", - "tags": [ - { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 138, - "col": 2, - "byteIndex": 4253 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.kind" + } + }, + { + "id": 8517, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveSequenceNumberMatching", - "jsDoc": { - "doc": "Asserts that the sequence number matches the specified regular expression.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 144, - "col": 2, - "byteIndex": 4465 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.ok" + } + }, + { + "id": 8516, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.processed" + } + }, + { + "id": 8519, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsDeleteBatchResultBase" + }, + "name": "SqsDeleteBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 8499, + "name": "SqsDeleteBatchResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveSequenceNumberPresent", - "jsDoc": { - "doc": "Asserts that the sequence number is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 149, - "col": 2, - "byteIndex": 4608 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Successful batch delete result.\n\nNote: " }, { - "name": "toHaveSequenceNumberNull", - "jsDoc": { - "doc": "Asserts that the sequence number is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 154, - "col": 2, - "byteIndex": 4707 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "code", + "text": "`ok: true`" }, { - "name": "toHaveSequenceNumberUndefined", - "jsDoc": { - "doc": "Asserts that the sequence number is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 159, - "col": 2, - "byteIndex": 4808 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": " even if some messages failed (partial failure).\nCheck " }, { - "name": "toHaveSequenceNumberNullish", - "jsDoc": { - "doc": "Asserts that the sequence number is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 164, - "col": 2, - "byteIndex": 4932 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "code", + "text": "`failed.length > 0`" }, { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 170, - "col": 2, - "byteIndex": 5093 - }, - "params": [ + "kind": "text", + "text": " to detect partial failures." + } + ] + }, + "children": [ + { + "id": 8506, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.duration" + } + }, + { + "id": 8502, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.error" + } + }, + { + "id": 8504, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Array of messages that failed to delete (may be non-empty even with ok: true)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 176, - "col": 2, - "byteIndex": 5278 - }, - "params": [ + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 8174, + "name": "SqsBatchFailedEntry", + "package": "@probitas-test/client-sqs" + } + } + } + }, + { + "id": 8505, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 182, - "col": 2, - "byteIndex": 5457 - }, - "params": [ + "type": { + "type": "literal", + "value": "sqs:delete-batch" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.kind" + } + }, + { + "id": 8501, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 188, - "col": 2, - "byteIndex": 5680 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.ok" + } + }, + { + "id": 8500, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 193, - "col": 2, - "byteIndex": 5800 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 199, - "col": 2, - "byteIndex": 5961 - }, - "params": [ + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteBatchResultBase.processed" + } + }, + { + "id": 8503, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Array of message IDs that were successfully deleted." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsDeleteBatchResultBase" + }, + "name": "SqsDeleteBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 8185, + "name": "SqsDeleteOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 205, - "col": 2, - "byteIndex": 6158 - }, - "params": [ + "kind": "text", + "text": "Options for deleting a message." + } + ] + }, + "children": [ + { + "id": 8189, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Retry configuration." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 211, - "col": 2, - "byteIndex": 6347 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8115, + "name": "SqsOptions.retry" + } + }, + { + "id": 8188, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 217, - "col": 2, - "byteIndex": 6538 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8114, + "name": "SqsOptions.signal" + } + }, + { + "id": 8186, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 224, - "col": 2, - "byteIndex": 6788 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, + "blockTags": [ { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 8112, + "name": "SqsOptions.throwOnError" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { SqsSendResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsSendResult } from \"./send.ts\";\nconst result = {\n kind: \"sqs:send\",\n ok: false,\n messageId: \"msg-123\",\n md5OfBody: \"abc123\",\n sequenceNumber: undefined,\n duration: 0,\n} as unknown as SqsSendResult;\n\nexpectSqsSendResult(result).not.toBeOk();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs/send.ts", - "line": 31, - "col": 2, - "byteIndex": 863 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + }, + { + "id": 8187, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8113, + "name": "SqsOptions.timeout" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8111, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs.ts", - "line": 57, - "col": 0, - "byteIndex": 1451 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation type returned by expectSqsResult based on the result type." + "id": 8195, + "name": "SqsDeleteQueueOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for deleting a queue." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" + "children": [ + { + "id": 8199, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "extendsType": { - "repr": "SqsSendResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResult" + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8115, + "name": "SqsOptions.retry" + } + }, + { + "id": 8198, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "trueType": { - "repr": "SqsSendResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultExpectation" + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8114, + "name": "SqsOptions.signal" + } + }, + { + "id": 8196, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } - }, - "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" - } - } - } - } - } - } - } - } - } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - } + ] } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 8112, + "name": "SqsOptions.throwOnError" } }, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "SqsResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsResult" + { + "id": 8197, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8113, + "name": "SqsOptions.timeout" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8111, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "expectSqsResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sqs.ts", - "line": 142, - "col": 0, - "byteIndex": 4241 - }, - "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": [ + "id": 8632, + "name": "SqsDeleteQueueResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "param", - "name": "result", - "doc": "- The SQS result to create expectations for" + "kind": "text", + "text": "Delete queue result with SQS error." + } + ] + }, + "children": [ + { + "id": 8637, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "kind": "return", - "doc": "A typed expectation object matching the result type\n" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] }, - { - "kind": "example", - "doc": "Send result validation\n```ts\nimport type { SqsSendResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsResult } from \"./sqs.ts\";\nconst sendResult = {\n kind: \"sqs:send\",\n ok: true,\n messageId: \"msg-123\",\n md5OfBody: \"abc123\",\n sequenceNumber: undefined,\n duration: 50,\n} as unknown as SqsSendResult;\nexpectSqsResult(sendResult)\n .toBeOk()\n .toHaveMessageIdContaining(\"msg\")\n .toHaveDurationLessThan(1000);\n```\n" + "type": { + "type": "intrinsic", + "name": "number" }, - { - "kind": "example", - "doc": "Receive result validation\n```ts\nimport type { SqsReceiveResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsResult } from \"./sqs.ts\";\nconst receiveResult = {\n kind: \"sqs:receive\",\n ok: true,\n messages: [{ body: \"test message\" }],\n duration: 0,\n} as unknown as SqsReceiveResult;\nexpectSqsResult(receiveResult)\n .toBeOk()\n .toHaveMessagesCountGreaterThanOrEqual(1);\n```\n" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.duration" + } + }, + { + "id": 8635, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] }, - { - "kind": "example", - "doc": "Batch operations\n```ts\nimport type { SqsSendBatchResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsResult } from \"./sqs.ts\";\nconst batchResult = {\n kind: \"sqs:send-batch\",\n ok: true,\n successful: [{ id: \"1\" }, { id: \"2\" }],\n failed: [],\n duration: 0,\n} as unknown as SqsSendBatchResult;\nexpectSqsResult(batchResult)\n .toBeOk()\n .toHaveSuccessfulCount(2)\n .toHaveFailedEmpty();\n```\n" + "type": { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" }, - { - "kind": "example", - "doc": "Queue management\n```ts\nimport type { SqsEnsureQueueResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsResult } from \"./sqs.ts\";\nconst ensureResult = {\n kind: \"sqs:ensure-queue\",\n ok: true,\n queueUrl: \"https://sqs.example.com/test-queue\",\n duration: 0,\n} as unknown as SqsEnsureQueueResult;\nexpectSqsResult(ensureResult)\n .toBeOk()\n .toHaveQueueUrlContaining(\"test-queue\");\n```" + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.error" } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" + }, + { + "id": 8636, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - } + ] + }, + "type": { + "type": "literal", + "value": "sqs:delete-queue" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.kind" } - ], - "returnType": { - "repr": "SqsExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 8634, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "typeName": "SqsExpectation" + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.ok" } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "SqsResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsResult" + { + "id": 8633, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.processed" } - ] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsDeleteQueueResultBase" + }, + "name": "SqsDeleteQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteBatchResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 547, - "col": 0, - "byteIndex": 13910 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of batch deleting messages." + "id": 11070, + "name": "SqsDeleteQueueResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Fluent API for SQS delete queue result validation.\n\nProvides chainable assertions for queue deletion results.\nDelete queue results only have ok and duration properties." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsDeleteBatchResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultSuccess" + "children": [ + { + "id": 11071, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } - }, - { - "repr": "SqsDeleteBatchResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultError" + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqsDeleteQueueResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsDeleteQueueResult } from \"./delete_queue.ts\";\nconst result = {\n kind: \"sqs:delete-queue\",\n ok: false,\n duration: 0,\n} as unknown as SqsDeleteQueueResult;\n\nexpectSqsDeleteQueueResult(result).not.toBeOk();\n```" + } + ] } - }, + ] + }, + "type": { + "type": "reference", + "target": 11070, + "name": "SqsDeleteQueueResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 11072, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsDeleteBatchResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultFailure" + "id": 11073, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsDeleteQueueResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 780, - "col": 0, - "byteIndex": 19723 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of deleting a queue." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsDeleteQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultSuccess" - } - }, + { + "id": 11074, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsDeleteQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultError" + "id": 11075, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11076, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 11103, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsDeleteQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultFailure" + "id": 11104, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11105, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11106, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsDeleteResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 432, - "col": 0, - "byteIndex": 10923 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of deleting a message." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsDeleteResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultSuccess" - } - }, + { + "id": 11077, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsDeleteResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultError" + "id": 11078, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 11079, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 11091, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsDeleteResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultFailure" + "id": 11092, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 11093, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsEnsureQueueResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 668, - "col": 0, - "byteIndex": 17003 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of ensuring a queue exists." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsEnsureQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultSuccess" - } - }, + { + "id": 11094, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsEnsureQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultError" + "id": 11095, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11096, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 11097, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsEnsureQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultFailure" + "id": 11098, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 11099, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsReceiveResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 323, - "col": 0, - "byteIndex": 8307 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of receiving messages." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsReceiveResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultSuccess" - } - }, - { - "repr": "SqsReceiveResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultError" - } - }, + { + "id": 11100, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsReceiveResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultFailure" + "id": 11101, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11102, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 853, - "col": 0, - "byteIndex": 21499 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union type of all SQS result types." - }, - "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" - } - }, + { + "id": 11089, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsDeleteQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResult" + "id": 11090, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsSendBatchResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 203, - "col": 0, - "byteIndex": 5263 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of batch sending messages." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsSendBatchResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultSuccess" - } - }, - { - "repr": "SqsSendBatchResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultError" - } - }, + { + "id": 11083, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsSendBatchResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultFailure" + "id": 11084, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11085, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11086, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11087, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11088, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsSendResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 73, - "col": 0, - "byteIndex": 1845 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result of sending a message." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsSendResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultSuccess" - } - }, - { - "repr": "SqsSendResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultError" - } - }, + { + "id": 11080, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsSendResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultFailure" + "id": 11081, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11082, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] - }, - "typeParams": [] - } + } + ] }, { - "name": "SqsBatchError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 102, - "col": 0, - "byteIndex": 2385 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a batch operation partially fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 8638, + "name": "SqsDeleteQueueResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "kind": "text", + "text": "Delete queue result with connection failure." + } + ] + }, + "children": [ + { + "id": 8643, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.duration" + } + }, + { + "id": 8641, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "failedCount", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" - } - } + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 107, - "col": 2, - "byteIndex": 2555 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsFailureError" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 103, - "col": 2, - "byteIndex": 2433 - } - }, - { - "tsType": { - "repr": "batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "batch" + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.error" + } + }, + { + "id": 8642, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 104, - "col": 2, - "byteIndex": 2477 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failedCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 105, - "col": 2, - "byteIndex": 2522 - } + ] + }, + "type": { + "type": "literal", + "value": "sqs:delete-queue" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsCommandError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 53, - "col": 0, - "byteIndex": 1088 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when an SQS command fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 8640, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "SqsCommandErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsCommandErrorOptions" - } - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 58, - "col": 2, - "byteIndex": 1262 - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.ok" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 54, - "col": 2, - "byteIndex": 1138 - } - }, - { - "tsType": { - "repr": "command", - "kind": "literal", - "literal": { - "kind": "string", - "string": "command" + }, + { + "id": 8639, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 55, - "col": 2, - "byteIndex": 1184 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "operation", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 56, - "col": 2, - "byteIndex": 1231 - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.processed" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsDeleteQueueResultBase" + }, + "name": "SqsDeleteQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 34, - "col": 0, - "byteIndex": 634 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when an SQS connection cannot be established." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 8626, + "name": "SqsDeleteQueueResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "kind": "text", + "text": "Successful delete queue result." + } + ] + }, + "children": [ + { + "id": 8631, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.duration" + } + }, + { + "id": 8629, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" - } - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 38, - "col": 2, - "byteIndex": 787 - } + ] + }, + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 35, - "col": 2, - "byteIndex": 687 - } - }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + }, + { + "id": 8630, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 36, - "col": 2, - "byteIndex": 736 - } + ] + }, + "type": { + "type": "literal", + "value": "sqs:delete-queue" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 17, - "col": 0, - "byteIndex": 274 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for SQS client errors." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 8628, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - "right": "sqs", - "tsType": null + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" - } - } + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 21, - "col": 2, - "byteIndex": 394 - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.ok" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 18, - "col": 2, - "byteIndex": 320 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 19, - "col": 2, - "byteIndex": 367 - } + }, + { + "id": 8627, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteQueueResultBase.processed" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsDeleteQueueResultBase" + }, + "name": "SqsDeleteQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsMessageNotFoundError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 116, - "col": 0, - "byteIndex": 2797 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a message is not found or receipt handle is invalid." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 8452, + "name": "SqsDeleteResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "kind": "text", + "text": "Delete result with SQS error." + } + ] + }, + "children": [ + { + "id": 8457, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.duration" + } + }, + { + "id": 8455, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" - } - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 120, - "col": 2, - "byteIndex": 2967 - } + ] + }, + "type": { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.error" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 117, - "col": 2, - "byteIndex": 2855 - } - }, - { - "tsType": { - "repr": "message_not_found", - "kind": "literal", - "literal": { - "kind": "string", - "string": "message_not_found" + }, + { + "id": 8456, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 118, - "col": 2, - "byteIndex": 2909 - } + ] + }, + "type": { + "type": "literal", + "value": "sqs:delete" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsMessageTooLargeError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 81, - "col": 0, - "byteIndex": 1881 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a message exceeds the size limit." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + }, + { + "id": 8454, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "size", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "maxSize", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`processed`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" - } - } + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 87, - "col": 2, - "byteIndex": 2104 - } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.ok" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 82, - "col": 2, - "byteIndex": 1939 - } - }, - { - "tsType": { - "repr": "message_too_large", - "kind": "literal", - "literal": { - "kind": "string", - "string": "message_too_large" + }, + { + "id": 8453, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 83, - "col": 2, - "byteIndex": 1993 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "size", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 84, - "col": 2, - "byteIndex": 2050 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "maxSize", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 85, - "col": 2, - "byteIndex": 2075 - } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.processed" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsDeleteResultBase" + }, + "name": "SqsDeleteResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsQueueNotFoundError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 67, - "col": 0, - "byteIndex": 1464 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a queue is not found." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 11107, + "name": "SqsDeleteResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "kind": "text", + "text": "Fluent API for SQS delete result validation.\n\nProvides chainable assertions for message deletion results.\nDelete results only have ok and duration properties." + } + ] + }, + "children": [ + { + "id": 11108, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "kind": "text", + "text": "Negates the next assertion." + } + ], + "blockTags": [ { - "kind": "identifier", - "name": "queueUrl", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqsDeleteResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsDeleteResult } from \"./delete.ts\";\nconst result = {\n kind: \"sqs:delete\",\n ok: false,\n duration: 0,\n} as unknown as SqsDeleteResult;\n\nexpectSqsDeleteResult(result).not.toBeOk();\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": 11107, + "name": "SqsDeleteResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 11109, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11110, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11111, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11112, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11113, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 72, - "col": 2, - "byteIndex": 1657 } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 68, - "col": 2, - "byteIndex": 1520 - } - }, - { - "tsType": { - "repr": "queue_not_found", - "kind": "literal", - "literal": { - "kind": "string", - "string": "queue_not_found" + ] + }, + { + "id": 11140, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11141, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11142, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11143, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 69, - "col": 2, - "byteIndex": 1572 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 70, - "col": 2, - "byteIndex": 1627 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqsError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 41, - "col": 0, - "byteIndex": 756 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Common options with throwOnError support." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" + ] + }, + { + "id": 11114, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11115, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 11116, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object.", - "tags": [ + ] + }, + { + "id": 11128, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11129, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default false" + "id": 11130, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 47, - "col": 2, - "byteIndex": 978 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 55, - "col": 0, - "byteIndex": 1119 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQS connection configuration.\n\nExtends CommonConnectionConfig with SQS-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "protocol", - "jsDoc": { - "doc": "Protocol to use.", - "tags": [ + ] + }, + { + "id": 11131, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11132, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"https\"" + "id": 11133, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 60, - "col": 2, - "byteIndex": 1247 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11134, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11135, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." } - }, + ] + }, + "parameters": [ { - "repr": "https", - "kind": "literal", - "literal": { - "kind": "string", - "string": "https" + "id": 11136, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } - ] - }, - "typeParams": [] - }, - { - "name": "path", - "jsDoc": { - "doc": "Custom path (for emulators or custom endpoints).", - "tags": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11137, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11138, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"\"" + "id": 11139, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 66, - "col": 2, - "byteIndex": 1371 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "region", - "jsDoc": { - "doc": "AWS region (required for AWS, optional for emulators)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 71, - "col": 2, - "byteIndex": 1470 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 77, - "col": 0, - "byteIndex": 1536 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQS client configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "region", - "jsDoc": { - "doc": "AWS region" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 79, - "col": 2, - "byteIndex": 1612 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "credentials", - "jsDoc": { - "doc": "AWS credentials" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 81, - "col": 2, - "byteIndex": 1664 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "accessKeyId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 82, - "col": 4, - "byteIndex": 1693 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, + ] + }, + { + "id": 11126, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11127, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "name": "secretAccessKey", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 83, - "col": 4, - "byteIndex": 1727 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "Asserts that the duration is NaN." } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "queueUrl", - "jsDoc": { - "doc": "SQS queue URL (optional - can be set later or used with ensureQueue)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 86, - "col": 2, - "byteIndex": 1846 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "url", - "jsDoc": { - "doc": "SQS endpoint URL (e.g., \"http://localhost:9324\" for ElasticMQ).\nCan be a string URL or a connection config object.\nOptional for real AWS (uses default endpoint), required for an emulator." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 92, - "col": 2, - "byteIndex": 2091 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + } + ] + }, + { + "id": 11120, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11121, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "repr": "SqsConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsConnectionConfig" + "id": 11122, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11123, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11124, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11125, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsMessageAttribute", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 98, - "col": 0, - "byteIndex": 2174 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQS message attributes." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "dataType", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 99, - "col": 2, - "byteIndex": 2215 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "String", - "kind": "literal", - "literal": { - "kind": "string", - "string": "String" - } - }, - { - "repr": "Number", - "kind": "literal", - "literal": { - "kind": "string", - "string": "Number" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11117, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11118, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." } - }, + ] + }, + "parameters": [ { - "repr": "Binary", - "kind": "literal", - "literal": { - "kind": "string", - "string": "Binary" + "id": 11119, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } - ] - }, - "typeParams": [] - }, - { - "name": "stringValue", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 100, - "col": 2, - "byteIndex": 2268 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "binaryValue", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 101, - "col": 2, - "byteIndex": 2301 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] + } + ] }, { - "name": "SqsMessage", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 107, - "col": 0, - "byteIndex": 2385 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQS message received from a queue." + "id": 8458, + "name": "SqsDeleteResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete result with connection failure." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 108, - "col": 2, - "byteIndex": 2417 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "children": [ + { + "id": 8463, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "body", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 109, - "col": 2, - "byteIndex": 2447 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] }, - { - "name": "receiptHandle", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 110, - "col": 2, - "byteIndex": 2472 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "attributes", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 111, - "col": 2, - "byteIndex": 2506 - }, - "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" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.duration" + } + }, + { + "id": 8461, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "messageAttributes", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 112, - "col": 2, - "byteIndex": 2553 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "SqsMessageAttribute", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageAttribute" - } - } - ], - "typeName": "Record" - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsFailureError" }, - "typeParams": [] + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" }, - { - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 113, - "col": 2, - "byteIndex": 2621 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsSendOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 119, - "col": 0, - "byteIndex": 2694 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for sending a message." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.error" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "delaySeconds", - "jsDoc": { - "doc": "Delay in seconds before the message becomes visible (0-900)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 121, - "col": 2, - "byteIndex": 2818 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "messageAttributes", - "jsDoc": { - "doc": "Message attributes" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 123, - "col": 2, - "byteIndex": 2880 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "SqsMessageAttribute", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageAttribute" - } - } - ], - "typeName": "Record" + }, + { + "id": 8462, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "messageGroupId", - "jsDoc": { - "doc": "Message group ID (required for FIFO queues)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 125, - "col": 2, - "byteIndex": 3001 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:delete" }, - { - "name": "messageDeduplicationId", - "jsDoc": { - "doc": "Message deduplication ID (required for FIFO queues without content-based deduplication)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 127, - "col": 2, - "byteIndex": 3134 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsBatchMessage", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 133, - "col": 0, - "byteIndex": 3219 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Batch message for sendBatch." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "id", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 134, - "col": 2, - "byteIndex": 3256 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "body", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 135, - "col": 2, - "byteIndex": 3279 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 8460, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "delaySeconds", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 136, - "col": 2, - "byteIndex": 3304 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "messageAttributes", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 137, - "col": 2, - "byteIndex": 3338 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "SqsMessageAttribute", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageAttribute" - } - } - ], - "typeName": "Record" + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.ok" + } + }, + { + "id": 8459, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsDeleteResultBase" + }, + "name": "SqsDeleteResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsReceiveOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 143, - "col": 0, - "byteIndex": 3450 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for receiving messages." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 8446, + "name": "SqsDeleteResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + "kind": "text", + "text": "Successful delete result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "maxMessages", - "jsDoc": { - "doc": "Maximum number of messages to receive (1-10, default: 1)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 145, - "col": 2, - "byteIndex": 3574 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 8451, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "waitTimeSeconds", - "jsDoc": { - "doc": "Wait time in seconds for long polling (0-20)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 147, - "col": 2, - "byteIndex": 3661 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] }, - { - "name": "visibilityTimeout", - "jsDoc": { - "doc": "Visibility timeout in seconds (0-43200)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 149, - "col": 2, - "byteIndex": 3747 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "attributeNames", - "jsDoc": { - "doc": "System attribute names to retrieve" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 151, - "col": 2, - "byteIndex": 3830 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.duration" + } + }, + { + "id": 8449, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "messageAttributeNames", - "jsDoc": { - "doc": "Message attribute names to retrieve" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 153, - "col": 2, - "byteIndex": 3922 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsBatchSuccessEntry", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 159, - "col": 0, - "byteIndex": 4017 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful batch send entry." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 160, - "col": 2, - "byteIndex": 4059 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null }, - { - "name": "id", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 161, - "col": 2, - "byteIndex": 4089 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.error" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsBatchFailedEntry", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 167, - "col": 0, - "byteIndex": 4144 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Failed batch entry." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "id", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 168, - "col": 2, - "byteIndex": 4185 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 8450, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] }, - { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 169, - "col": 2, - "byteIndex": 4208 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:delete" }, - { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 170, - "col": 2, - "byteIndex": 4233 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsEnsureQueueOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 176, - "col": 0, - "byteIndex": 4310 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for ensuring a queue exists." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "attributes", - "jsDoc": { - "doc": "Queue attributes (e.g., DelaySeconds, MessageRetentionPeriod)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 178, - "col": 2, - "byteIndex": 4443 - }, - "params": [], - "readonly": true, - "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" + }, + { + "id": 8448, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "tags", - "jsDoc": { - "doc": "Queue tags" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 180, - "col": 2, - "byteIndex": 4511 - }, - "params": [], - "readonly": true, - "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": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 186, - "col": 0, - "byteIndex": 4597 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for deleting a message." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.ok" } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsBatchOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 191, - "col": 0, - "byteIndex": 4695 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for batch operations." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + }, + { + "id": 8447, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsDeleteResultBase.processed" } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsDeleteResultBase" + }, + "name": "SqsDeleteResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteQueueOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 196, - "col": 0, - "byteIndex": 4792 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for deleting a queue." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 8178, + "name": "SqsEnsureQueueOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } + "kind": "text", + "text": "Options for ensuring a queue exists." } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 201, - "col": 0, - "byteIndex": 4887 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQS client interface." + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } - } - ], - "constructors": [], - "methods": [ - { - "name": "setQueueUrl", - "jsDoc": { - "doc": "Set the queue URL for subsequent operations." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 212, - "col": 2, - "byteIndex": 5179 - }, - "params": [ + "children": [ + { + "id": 8179, + "name": "attributes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "queueUrl", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Queue attributes (e.g., DelaySeconds, MessageRetentionPeriod)" } - ], - "optional": false, - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "typeParams": [] + ] }, - { - "name": "ensureQueue", - "jsDoc": { - "doc": "Ensure a queue exists. Creates the queue if it doesn't exist.\nIf the queue already exists with the same attributes, returns the existing queue URL.\nAlso sets the queue URL for subsequent operations." + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 219, - "col": 2, - "byteIndex": 5445 - }, - "params": [ + "typeArguments": [ { - "kind": "identifier", - "name": "queueName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsEnsureQueueOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueOptions" - } - } + "type": "intrinsic", + "name": "string" } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsEnsureQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResult" - } - } - ], - "typeName": "Promise" + "name": "Record", + "package": "typescript" + } + }, + { + "id": 8184, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "deleteQueue", - "jsDoc": { - "doc": "Delete a queue by URL." + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 227, - "col": 2, - "byteIndex": 5597 + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8115, + "name": "SqsOptions.retry" + } + }, + { + "id": 8183, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [ - { - "kind": "identifier", - "name": "queueUrl", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8114, + "name": "SqsOptions.signal" + } + }, + { + "id": 8180, + "name": "tags", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsDeleteQueueOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsDeleteQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": "Queue tags" } - }, - "typeParams": [] + ] }, - { - "name": "send", - "jsDoc": { - "doc": "Send a message to the queue." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 235, - "col": 2, - "byteIndex": 5754 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "params": [ + "typeArguments": [ { - "kind": "identifier", - "name": "body", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsSendOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendOptions" - } - } + "type": "intrinsic", + "name": "string" } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsSendResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResult" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "name": "Record", + "package": "typescript" + } + }, + { + "id": 8181, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "sendBatch", - "jsDoc": { - "doc": "Send multiple messages to the queue in a single request." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 240, - "col": 2, - "byteIndex": 5901 - }, - "params": [ - { - "kind": "identifier", - "name": "messages", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchMessage" - } - } - } - }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsBatchOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchOptions" - } - } + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsSendBatchResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResult" - } + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - ], - "typeName": "Promise" + ] } - }, - "typeParams": [] + ] }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 8112, + "name": "SqsOptions.throwOnError" + } + }, + { + "id": 8182, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8113, + "name": "SqsOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8111, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 8573, + "name": "SqsEnsureQueueResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "receive", - "jsDoc": { - "doc": "Receive messages from the queue." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 248, - "col": 2, - "byteIndex": 6063 - }, - "params": [ + "kind": "text", + "text": "Ensure queue result with SQS error." + } + ] + }, + "children": [ + { + "id": 8579, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsReceiveOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsReceiveResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "delete", - "jsDoc": { - "doc": "Delete a message from the queue." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 253, - "col": 2, - "byteIndex": 6181 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.duration" + } + }, + { + "id": 8576, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "receiptHandle", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsDeleteOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "deleteBatch", - "jsDoc": { - "doc": "Delete multiple messages from the queue in a single request." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 261, - "col": 2, - "byteIndex": 6360 - }, - "params": [ + "type": { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.error" + } + }, + { + "id": 8578, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "receiptHandles", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "kind": "code", + "text": "`kind`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsBatchOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsDeleteBatchResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "purge", - "jsDoc": { - "doc": "Purge all messages from the queue." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 269, - "col": 2, - "byteIndex": 6525 - }, - "params": [ + "type": { + "type": "literal", + "value": "sqs:ensure-queue" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.kind" + } + }, + { + "id": 8575, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqsOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "close", - "jsDoc": { - "doc": "Close the client and release resources." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 274, - "col": 2, - "byteIndex": 6640 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.ok" } - ], - "properties": [ - { - "name": "config", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 202, - "col": 2, - "byteIndex": 4942 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsClientConfig" + }, + { + "id": 8574, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "queueUrl", - "jsDoc": { - "doc": "The current queue URL. Can be set via config, ensureQueue(), or setQueueUrl()." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/types.ts", - "line": 207, - "col": 2, - "byteIndex": 5075 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 138 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SQS errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.processed" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 11, - "col": 2, - "byteIndex": 196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + { + "id": 8577, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsEnsureQueueResultBase" + }, + "name": "SqsEnsureQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsCommandErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 46, - "col": 0, - "byteIndex": 938 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SQS command errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 11144, + "name": "SqsEnsureQueueResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsErrorOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "operation", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1006 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "Fluent API for SQS ensure queue result validation.\n\nProvides chainable assertions for queue creation/retrieval results\nincluding queue URL." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 129, - "col": 0, - "byteIndex": 3228 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate an operation was processed by the server.\nThese errors occur after the operation reaches the SQS service." + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsCommandError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsCommandError" - } - }, - { - "repr": "SqsQueueNotFoundError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsQueueNotFoundError" - } - }, - { - "repr": "SqsMessageTooLargeError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageTooLargeError" + "children": [ + { + "id": 11145, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } - }, - { - "repr": "SqsBatchError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchError" + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqsEnsureQueueResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsEnsureQueueResult } from \"./ensure_queue.ts\";\nconst result = {\n kind: \"sqs:ensure-queue\",\n ok: false,\n queueUrl: \"https://sqs.example.com/test-queue\",\n duration: 0,\n} as unknown as SqsEnsureQueueResult;\n\nexpectSqsEnsureQueueResult(result).not.toBeOk();\n```" + } + ] } - }, + ] + }, + "type": { + "type": "reference", + "target": 11144, + "name": "SqsEnsureQueueResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 11146, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsMessageNotFoundError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageNotFoundError" + "id": 11147, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 11169, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + "id": 11170, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11171, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/errors.ts", - "line": 141, - "col": 0, - "byteIndex": 3542 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the SQS service." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqsConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsConnectionError" - } - }, + { + "id": 11198, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + "id": 11199, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11200, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11201, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, + } + ] + }, + { + "id": 11172, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + "id": 11173, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 11174, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "SqsSendResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 34, - "col": 0, - "byteIndex": 806 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful send result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsSendResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 35, - "col": 2, - "byteIndex": 874 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 36, - "col": 2, - "byteIndex": 902 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 37, - "col": 2, - "byteIndex": 923 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "messageId", - "jsDoc": { - "doc": "Unique identifier for the sent message." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 39, - "col": 2, - "byteIndex": 996 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "md5OfBody", - "jsDoc": { - "doc": "MD5 hash of the message body (for integrity verification)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 41, - "col": 2, - "byteIndex": 1094 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "sequenceNumber", - "jsDoc": { - "doc": "Sequence number for FIFO queues (present only for FIFO queues)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 43, - "col": 2, - "byteIndex": 1197 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + { + "id": 11186, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11187, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 11188, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsSendResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 49, - "col": 0, - "byteIndex": 1279 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Send result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsSendResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 50, - "col": 2, - "byteIndex": 1345 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 51, - "col": 2, - "byteIndex": 1373 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 52, - "col": 2, - "byteIndex": 1395 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 53, - "col": 2, - "byteIndex": 1423 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 54, - "col": 2, - "byteIndex": 1451 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 55, - "col": 2, - "byteIndex": 1479 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsSendResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 61, - "col": 0, - "byteIndex": 1561 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Send result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsSendResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 62, - "col": 2, - "byteIndex": 1629 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 63, - "col": 2, - "byteIndex": 1658 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 64, - "col": 2, - "byteIndex": 1680 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 65, - "col": 2, - "byteIndex": 1715 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 66, - "col": 2, - "byteIndex": 1743 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 67, - "col": 2, - "byteIndex": 1771 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsSendResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 82, - "col": 0, - "byteIndex": 2019 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendResultSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 93, - "col": 4, - "byteIndex": 2384 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 94, - "col": 4, - "byteIndex": 2407 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, + ] + }, + { + "id": 11189, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11190, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11191, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 95, - "col": 4, - "byteIndex": 2430 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11192, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11193, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 11194, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 96, - "col": 4, - "byteIndex": 2465 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The value to compare against" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 92, - "col": 2, - "byteIndex": 2358 } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 83, - "col": 2, - "byteIndex": 2093 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 84, - "col": 2, - "byteIndex": 2132 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 85, - "col": 2, - "byteIndex": 2170 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 86, - "col": 2, - "byteIndex": 2201 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 87, - "col": 2, - "byteIndex": 2226 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 88, - "col": 2, - "byteIndex": 2256 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ] + }, + { + "id": 11195, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11196, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 11197, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 89, - "col": 2, - "byteIndex": 2286 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 90, - "col": 2, - "byteIndex": 2328 + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultSuccess" + ] + }, + { + "id": 11184, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11185, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsSendResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 109, - "col": 0, - "byteIndex": 2730 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendResultError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 120, - "col": 4, - "byteIndex": 3085 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 11178, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11179, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11180, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 121, - "col": 4, - "byteIndex": 3106 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "A function that receives the duration and performs assertions" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11181, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11182, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11183, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 119, - "col": 2, - "byteIndex": 3059 } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 110, - "col": 2, - "byteIndex": 2800 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 111, - "col": 2, - "byteIndex": 2839 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 112, - "col": 2, - "byteIndex": 2877 - } - }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + ] + }, + { + "id": 11175, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11176, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11177, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 113, - "col": 2, - "byteIndex": 2909 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 114, - "col": 2, - "byteIndex": 2937 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 115, - "col": 2, - "byteIndex": 2966 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 116, - "col": 2, - "byteIndex": 2995 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 117, - "col": 2, - "byteIndex": 3029 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultError" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsSendResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 132, - "col": 0, - "byteIndex": 3277 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 143, - "col": 4, - "byteIndex": 3644 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 11148, + "name": "toHaveQueueUrl", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11149, + "name": "toHaveQueueUrl", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue URL equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11150, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 144, - "col": 4, - "byteIndex": 3672 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The expected queue URL" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 142, - "col": 2, - "byteIndex": 3618 } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send" + ] + }, + { + "id": 11163, + "name": "toHaveQueueUrlContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11164, + "name": "toHaveQueueUrlContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue URL contains the specified substring." + } + ] + }, + "parameters": [ + { + "id": 11165, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 133, - "col": 2, - "byteIndex": 3351 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ] + }, + { + "id": 11151, + "name": "toHaveQueueUrlEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11152, + "name": "toHaveQueueUrlEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue URL equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 11153, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected queue URL" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 134, - "col": 2, - "byteIndex": 3390 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ] + }, + { + "id": 11166, + "name": "toHaveQueueUrlMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11167, + "name": "toHaveQueueUrlMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue URL matches the specified regular expression." + } + ] + }, + "parameters": [ + { + "id": 11168, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 135, - "col": 2, - "byteIndex": 3429 - } - }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + } + ] + }, + { + "id": 11157, + "name": "toHaveQueueUrlSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11158, + "name": "toHaveQueueUrlSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue URL satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11159, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the queue URL and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11160, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11161, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11162, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 136, - "col": 2, - "byteIndex": 3461 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 137, - "col": 2, - "byteIndex": 3496 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "md5OfBody", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 138, - "col": 2, - "byteIndex": 3525 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sequenceNumber", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 139, - "col": 2, - "byteIndex": 3554 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 140, - "col": 2, - "byteIndex": 3588 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultFailure" + ] + }, + { + "id": 11154, + "name": "toHaveQueueUrlStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11155, + "name": "toHaveQueueUrlStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the queue URL strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11156, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected queue URL" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "typeParams": [], - "superTypeParams": [] - } + ] + } + ] }, { - "name": "SqsSendBatchResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 168, - "col": 0, - "byteIndex": 4286 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful batch send result.\n\nNote: `ok: true` even if some messages failed (partial failure).\nCheck `failed.length > 0` to detect partial failures." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 8580, + "name": "SqsEnsureQueueResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsSendBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultBase" - } + "kind": "text", + "text": "Ensure queue result with connection failure." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 169, - "col": 2, - "byteIndex": 4364 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 8586, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 170, - "col": 2, - "byteIndex": 4392 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.duration" + } + }, + { + "id": 8583, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 171, - "col": 2, - "byteIndex": 4413 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsFailureError" }, - "typeParams": [] + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" }, - { - "name": "successful", - "jsDoc": { - "doc": "Array of successfully sent messages." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 173, - "col": 2, - "byteIndex": 4483 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchSuccessEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchSuccessEntry" - } - } - } + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.error" + } + }, + { + "id": 8585, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "failed", - "jsDoc": { - "doc": "Array of messages that failed to send (may be non-empty even with ok: true)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 175, - "col": 2, - "byteIndex": 4625 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } - } - } + "type": { + "type": "literal", + "value": "sqs:ensure-queue" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.kind" + } + }, + { + "id": 8582, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.ok" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 8581, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.processed" + } + }, + { + "id": 8584, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsEnsureQueueResultBase" + }, + "name": "SqsEnsureQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsSendBatchResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 181, - "col": 0, - "byteIndex": 4722 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Batch send result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 8566, + "name": "SqsEnsureQueueResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsSendBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultBase" - } + "kind": "text", + "text": "Successful ensure queue result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 182, - "col": 2, - "byteIndex": 4798 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 8572, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 183, - "col": 2, - "byteIndex": 4826 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 184, - "col": 2, - "byteIndex": 4848 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 185, - "col": 2, - "byteIndex": 4876 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [] - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.duration" + } + }, + { + "id": 8569, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 186, - "col": 2, - "byteIndex": 4912 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [] - } - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.error" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsSendBatchResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 192, - "col": 0, - "byteIndex": 4999 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Batch send result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsSendBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultBase" - } + }, + { + "id": 8571, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "literal", + "value": "sqs:ensure-queue" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.kind" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 193, - "col": 2, - "byteIndex": 5077 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 8568, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 194, - "col": 2, - "byteIndex": 5106 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.ok" + } + }, + { + "id": 8567, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 195, - "col": 2, - "byteIndex": 5128 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsEnsureQueueResultBase.processed" + } + }, + { + "id": 8570, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "URL of the queue (existing or newly created)." } - }, - "typeParams": [] + ] }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsEnsureQueueResultBase" + }, + "name": "SqsEnsureQueueResultBase", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 11583, + "name": "SqsError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 196, - "col": 2, - "byteIndex": 5163 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "kind": "text", + "text": "Base error class for SQS client errors." + } + ] + }, + "children": [ + { + "id": 11585, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 11586, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "ClientError.kind" + } + }, + { + "id": 11584, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "ClientError.name" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "ClientError" + }, + "name": "ClientError", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 11569, + "name": "SqsBatchError" + }, + { + "type": "reference", + "target": 11574, + "name": "SqsCommandError" + }, + { + "type": "reference", + "target": 11579, + "name": "SqsConnectionError" + }, + { + "type": "reference", + "target": 11587, + "name": "SqsMessageNotFoundError" + }, + { + "type": "reference", + "target": 11591, + "name": "SqsMessageTooLargeError" + }, + { + "type": "reference", + "target": 11597, + "name": "SqsQueueNotFoundError" + } + ] + }, + { + "id": 8238, + "name": "SqsErrorOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 197, - "col": 2, - "byteIndex": 5192 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "kind": "text", + "text": "Options for SQS errors." } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + ] + }, + "children": [ + { + "id": 8239, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 8240, + "name": "SqsCommandErrorOptions" + } + ] }, { - "name": "SqsSendBatchResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 212, - "col": 0, - "byteIndex": 5462 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendBatchResultSuccess.", - "tags": [ + "id": 8140, + "name": "SqsMessage", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "SQS message received from a queue." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 223, - "col": 4, - "byteIndex": 5850 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchSuccessEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchSuccessEntry" - } - } - } - } - }, - "typeParams": [] - }, - { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 224, - "col": 4, - "byteIndex": 5899 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } - } - } - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 225, - "col": 4, - "byteIndex": 5943 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 8144, + "name": "attributes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" } ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 222, - "col": 2, - "byteIndex": 5824 - } + "name": "Record", + "package": "typescript" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send-batch" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 214, - "col": 2, - "byteIndex": 5548 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 215, - "col": 2, - "byteIndex": 5593 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 216, - "col": 2, - "byteIndex": 5631 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 217, - "col": 2, - "byteIndex": 5662 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchSuccessEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchSuccessEntry" - } - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 218, - "col": 2, - "byteIndex": 5687 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } - } - } + }, + { + "id": 8142, + "name": "body", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8146, + "name": "md5OfBody", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8145, + "name": "messageAttributes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 8136, + "name": "SqsMessageAttribute", + "package": "@probitas-test/client-sqs" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 219, - "col": 2, - "byteIndex": 5743 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 220, - "col": 2, - "byteIndex": 5794 - } + ], + "name": "Record", + "package": "typescript" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendBatchResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultSuccess" - } + }, + { + "id": 8141, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 8143, + "name": "receiptHandle", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] }, { - "name": "SqsSendBatchResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 237, - "col": 0, - "byteIndex": 6160 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendBatchResultError.", - "tags": [ + "id": 8136, + "name": "SqsMessageAttribute", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "SQS message attributes." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 247, - "col": 4, - "byteIndex": 6509 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 248, - "col": 4, - "byteIndex": 6530 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 8139, + "name": "binaryValue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" } ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 246, - "col": 2, - "byteIndex": 6483 - } + "name": "Uint8Array", + "package": "typescript" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send-batch" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 238, - "col": 2, - "byteIndex": 6240 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 239, - "col": 2, - "byteIndex": 6285 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 240, - "col": 2, - "byteIndex": 6323 - } - }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + }, + { + "id": 8137, + "name": "dataType", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "String" + }, + { + "type": "literal", + "value": "Number" + }, + { + "type": "literal", + "value": "Binary" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 241, - "col": 2, - "byteIndex": 6355 - } - }, - { - "tsType": null, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 242, - "col": 2, - "byteIndex": 6383 - } - }, - { - "tsType": null, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 243, - "col": 2, - "byteIndex": 6420 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 244, - "col": 2, - "byteIndex": 6453 - } + ] } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendBatchResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultError" - } + }, + { + "id": 8138, + "name": "stringValue", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeParams": [], - "superTypeParams": [] - } + } + ] }, { - "name": "SqsSendBatchResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 259, - "col": 0, - "byteIndex": 6706 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsSendBatchResultFailure.", - "tags": [ + "id": 11587, + "name": "SqsMessageNotFoundError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Error thrown when a message is not found or receipt handle is invalid." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 270, - "col": 4, - "byteIndex": 7055 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 271, - "col": 4, - "byteIndex": 7083 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 269, - "col": 2, - "byteIndex": 7029 - } + "children": [ + { + "id": 11590, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 11585, + "name": "SqsError.code" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:send-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:send-batch" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 261, - "col": 2, - "byteIndex": 6792 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 262, - "col": 2, - "byteIndex": 6837 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 263, - "col": 2, - "byteIndex": 6876 - } - }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 264, - "col": 2, - "byteIndex": 6908 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 265, - "col": 2, - "byteIndex": 6943 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 266, - "col": 2, - "byteIndex": 6973 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 267, - "col": 2, - "byteIndex": 6999 - } + }, + { + "id": 11589, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "message_not_found" + }, + "overwrites": { + "type": "reference", + "target": 11586, + "name": "SqsError.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsSendBatchResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultFailure" - } + }, + { + "id": 11588, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsMessageNotFoundError" + }, + "defaultValue": "\"SqsMessageNotFoundError\"", + "overwrites": { + "type": "reference", + "target": 11584, + "name": "SqsError.name" } - ], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsReceiveResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 292, - "col": 0, - "byteIndex": 7556 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful receive result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 11591, + "name": "SqsMessageTooLargeError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsReceiveResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultBase" - } + "kind": "text", + "text": "Error thrown when a message exceeds the size limit." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 293, - "col": 2, - "byteIndex": 7630 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 294, - "col": 2, - "byteIndex": 7658 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 295, - "col": 2, - "byteIndex": 7679 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "messages", - "jsDoc": { - "doc": "Array of received messages (may be empty)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 297, - "col": 2, - "byteIndex": 7755 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessage" - } - } - } - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 11596, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 11585, + "name": "SqsError.code" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 11593, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "message_too_large" + }, + "overwrites": { + "type": "reference", + "target": 11586, + "name": "SqsError.kind" + } + }, + { + "id": 11595, + "name": "maxSize", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11592, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsMessageTooLargeError" + }, + "defaultValue": "\"SqsMessageTooLargeError\"", + "overwrites": { + "type": "reference", + "target": 11584, + "name": "SqsError.name" + } + }, + { + "id": 11594, + "name": "size", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsReceiveResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 303, - "col": 0, - "byteIndex": 7842 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Receive result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 8111, + "name": "SqsOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsReceiveResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultBase" - } + "kind": "text", + "text": "Common options with throwOnError support." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 304, - "col": 2, - "byteIndex": 7914 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "children": [ + { + "id": 8115, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 305, - "col": 2, - "byteIndex": 7942 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 306, - "col": 2, - "byteIndex": 7964 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "typeParams": [] + "name": "RetryOptions", + "package": "@probitas-test/client" }, - { - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 307, - "col": 2, - "byteIndex": 7992 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [] - } - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsReceiveResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 313, - "col": 0, - "byteIndex": 8078 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Receive result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsReceiveResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultBase" - } + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.retry" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 314, - "col": 2, - "byteIndex": 8152 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 8114, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 315, - "col": 2, - "byteIndex": 8181 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.signal" + } + }, + { + "id": 8112, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } - }, - "typeParams": [] + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] + } + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 316, - "col": 2, - "byteIndex": 8203 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 8113, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - }, - "typeParams": [] + ] }, - { - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 317, - "col": 2, - "byteIndex": 8238 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "CommonOptions.timeout" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "CommonOptions" + }, + "name": "CommonOptions", + "package": "@probitas-test/client" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 8124, + "name": "SqsClientConfig" + }, + { + "type": "reference", + "target": 8147, + "name": "SqsSendOptions" + }, + { + "type": "reference", + "target": 8161, + "name": "SqsReceiveOptions" + }, + { + "type": "reference", + "target": 8178, + "name": "SqsEnsureQueueOptions" + }, + { + "type": "reference", + "target": 8185, + "name": "SqsDeleteOptions" + }, + { + "type": "reference", + "target": 8190, + "name": "SqsBatchOptions" + }, + { + "type": "reference", + "target": 8195, + "name": "SqsDeleteQueueOptions" + } + ] }, { - "name": "SqsReceiveResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 332, - "col": 0, - "byteIndex": 8496 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsReceiveResultSuccess.", - "tags": [ + "id": 11597, + "name": "SqsQueueNotFoundError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Error thrown when a queue is not found." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 341, - "col": 4, - "byteIndex": 8812 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessage" - } - } - } - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 342, - "col": 4, - "byteIndex": 8849 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 340, - "col": 2, - "byteIndex": 8786 - } + "children": [ + { + "id": 11601, + "name": "code", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": 11585, + "name": "SqsError.code" } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:receive", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:receive" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 333, - "col": 2, - "byteIndex": 8576 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 334, - "col": 2, - "byteIndex": 8618 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 335, - "col": 2, - "byteIndex": 8656 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 336, - "col": 2, - "byteIndex": 8687 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessage" - } - } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 337, - "col": 2, - "byteIndex": 8712 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 338, - "col": 2, - "byteIndex": 8756 - } + }, + { + "id": 11599, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "queue_not_found" + }, + "overwrites": { + "type": "reference", + "target": 11586, + "name": "SqsError.kind" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsReceiveResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultSuccess" - } + }, + { + "id": 11598, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "SqsQueueNotFoundError" + }, + "defaultValue": "\"SqsQueueNotFoundError\"", + "overwrites": { + "type": "reference", + "target": 11584, + "name": "SqsError.name" } - ], - "typeParams": [], - "superTypeParams": [] - } + }, + { + "id": 11600, + "name": "queueUrl", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsReceiveResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 353, - "col": 0, - "byteIndex": 9027 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsReceiveResultError.", - "tags": [ + "id": 8161, + "name": "SqsReceiveOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Options for receiving messages." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 362, - "col": 4, - "byteIndex": 9334 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 363, - "col": 4, - "byteIndex": 9355 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 361, - "col": 2, - "byteIndex": 9308 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:receive", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:receive" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 354, - "col": 2, - "byteIndex": 9103 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 355, - "col": 2, - "byteIndex": 9145 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "children": [ + { + "id": 8165, + "name": "attributeNames", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "System attribute names to retrieve" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 356, - "col": 2, - "byteIndex": 9183 - } - }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 357, - "col": 2, - "byteIndex": 9215 - } - }, - { - "tsType": null, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 358, - "col": 2, - "byteIndex": 9243 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 359, - "col": 2, - "byteIndex": 9278 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsReceiveResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultError" } } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsReceiveResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 374, - "col": 0, - "byteIndex": 9529 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsReceiveResultFailure.", - "tags": [ - { - "kind": "internal" + }, + { + "id": 8162, + "name": "maxMessages", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum number of messages to receive (1-10, default: 1)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 383, - "col": 4, - "byteIndex": 9841 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 384, - "col": 4, - "byteIndex": 9869 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + }, + { + "id": 8166, + "name": "messageAttributeNames", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Message attribute names to retrieve" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 382, - "col": 2, - "byteIndex": 9815 } } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:receive", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:receive" + }, + { + "id": 8170, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 375, - "col": 2, - "byteIndex": 9609 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8115, + "name": "SqsOptions.retry" + } + }, + { + "id": 8169, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 376, - "col": 2, - "byteIndex": 9651 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8114, + "name": "SqsOptions.signal" + } + }, + { + "id": 8167, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 377, - "col": 2, - "byteIndex": 9690 - } - }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" + } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 378, - "col": 2, - "byteIndex": 9722 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messages", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 379, - "col": 2, - "byteIndex": 9757 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 380, - "col": 2, - "byteIndex": 9785 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsReceiveResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultFailure" - } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 8112, + "name": "SqsOptions.throwOnError" } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 405, - "col": 0, - "byteIndex": 10337 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful delete result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultBase" - } + }, + { + "id": 8168, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": 8113, + "name": "SqsOptions.timeout" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 406, - "col": 2, - "byteIndex": 10409 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 8164, + "name": "visibilityTimeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Visibility timeout in seconds (0-43200)" } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 407, - "col": 2, - "byteIndex": 10437 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8163, + "name": "waitTimeSeconds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Wait time in seconds for long polling (0-20)" } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 408, - "col": 2, - "byteIndex": 10458 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8111, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 414, - "col": 0, - "byteIndex": 10524 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 8393, + "name": "SqsReceiveResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "repr": "SqsDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultBase" - } + "kind": "text", + "text": "Receive result with SQS error." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 415, - "col": 2, - "byteIndex": 10594 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "children": [ + { + "id": 8399, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 416, - "col": 2, - "byteIndex": 10622 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.duration" + } + }, + { + "id": 8396, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 417, - "col": 2, - "byteIndex": 10644 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + "type": { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.error" + } + }, + { + "id": 8398, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": "sqs:receive" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.kind" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 423, - "col": 0, - "byteIndex": 10723 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultBase" + }, + { + "id": 8397, + "name": "messages", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" } } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 424, - "col": 2, - "byteIndex": 10795 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 8395, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 425, - "col": 2, - "byteIndex": 10824 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 426, - "col": 2, - "byteIndex": 10846 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.ok" + } + }, + { + "id": 8394, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsReceiveResultBase" + }, + "name": "SqsReceiveResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "SqsDeleteResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 441, - "col": 0, - "byteIndex": 11107 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteResultSuccess.", - "tags": [ + "id": 11202, + "name": "SqsReceiveResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Fluent API for SQS receive result validation.\n\nProvides chainable assertions specifically designed for message receive results\nincluding messages array and message count." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 449, - "col": 4, - "byteIndex": 11376 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } + "children": [ + { + "id": 11203, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Negates the next assertion." } ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 448, - "col": 2, - "byteIndex": 11350 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 442, - "col": 2, - "byteIndex": 11185 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 443, - "col": 2, - "byteIndex": 11226 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqsReceiveResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsReceiveResult } from \"./receive.ts\";\nconst result = {\n kind: \"sqs:receive\",\n ok: true,\n messages: [{ body: \"test\" }],\n duration: 0,\n} as unknown as SqsReceiveResult;\n\nexpectSqsReceiveResult(result).not.toHaveMessagesEmpty();\n```" + } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 444, - "col": 2, - "byteIndex": 11264 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 445, - "col": 2, - "byteIndex": 11295 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 446, - "col": 2, - "byteIndex": 11320 - } + ] + }, + "type": { + "type": "reference", + "target": 11202, + "name": "SqsReceiveResultExpectation", + "package": "@probitas-test/expect" } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultSuccess" + }, + { + "id": 11204, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11205, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 459, - "col": 0, - "byteIndex": 11516 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteResultError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 467, - "col": 4, - "byteIndex": 11785 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 11265, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11266, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11267, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 468, - "col": 4, - "byteIndex": 11806 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The expected duration value" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 466, - "col": 2, - "byteIndex": 11759 } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 460, - "col": 2, - "byteIndex": 11590 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 461, - "col": 2, - "byteIndex": 11631 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 462, - "col": 2, - "byteIndex": 11669 - } - }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + ] + }, + { + "id": 11294, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11295, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11296, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11297, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 463, - "col": 2, - "byteIndex": 11701 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 464, - "col": 2, - "byteIndex": 11729 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultError" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 479, - "col": 0, - "byteIndex": 11979 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 487, - "col": 4, - "byteIndex": 12260 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 11268, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11269, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 11270, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 488, - "col": 4, - "byteIndex": 12288 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The expected duration value" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 486, - "col": 2, - "byteIndex": 12234 } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 480, - "col": 2, - "byteIndex": 12057 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 481, - "col": 2, - "byteIndex": 12098 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 482, - "col": 2, - "byteIndex": 12137 - } - }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + ] + }, + { + "id": 11282, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11283, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 11284, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 483, - "col": 2, - "byteIndex": 12169 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 484, - "col": 2, - "byteIndex": 12204 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultFailure" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteBatchResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 512, - "col": 0, - "byteIndex": 12912 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful batch delete result.\n\nNote: `ok: true` even if some messages failed (partial failure).\nCheck `failed.length > 0` to detect partial failures." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 513, - "col": 2, - "byteIndex": 12994 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 514, - "col": 2, - "byteIndex": 13022 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 515, - "col": 2, - "byteIndex": 13043 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "successful", - "jsDoc": { - "doc": "Array of message IDs that were successfully deleted." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 517, - "col": 2, - "byteIndex": 13129 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ] + }, + { + "id": 11285, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11286, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11287, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "failed", - "jsDoc": { - "doc": "Array of messages that failed to delete (may be non-empty even with ok: true)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 519, - "col": 2, - "byteIndex": 13259 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } + } + ] + }, + { + "id": 11288, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11289, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 11290, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteBatchResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 525, - "col": 0, - "byteIndex": 13358 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Batch delete result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 526, - "col": 2, - "byteIndex": 13438 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 11291, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11292, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11293, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 527, - "col": 2, - "byteIndex": 13466 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ] + }, + { + "id": 11280, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11281, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 528, - "col": 2, - "byteIndex": 13488 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + } + ] + }, + { + "id": 11274, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11275, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11276, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11277, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11278, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11279, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 529, - "col": 2, - "byteIndex": 13516 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [] + } + ] + }, + { + "id": 11271, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11272, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11273, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 530, - "col": 2, - "byteIndex": 13552 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [] + } + ] + }, + { + "id": 11206, + "name": "toHaveMessages", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11207, + "name": "toHaveMessages", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11208, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected messages" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteBatchResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 536, - "col": 0, - "byteIndex": 13641 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Batch delete result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteBatchResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 537, - "col": 2, - "byteIndex": 13723 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + { + "id": 11221, + "name": "toHaveMessagesContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11222, + "name": "toHaveMessagesContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages contains the specified item." + } + ] + }, + "parameters": [ + { + "id": 11223, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 538, - "col": 2, - "byteIndex": 13752 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ] + }, + { + "id": 11224, + "name": "toHaveMessagesContainingEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11225, + "name": "toHaveMessagesContainingEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages contains an item equal to the specified value." + } + ] + }, + "parameters": [ + { + "id": 11226, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The item to search for using deep equality" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 539, - "col": 2, - "byteIndex": 13774 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + } + ] + }, + { + "id": 11232, + "name": "toHaveMessagesCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11233, + "name": "toHaveMessagesCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages count equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11234, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected messages count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 540, - "col": 2, - "byteIndex": 13809 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 541, - "col": 2, - "byteIndex": 13838 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteBatchResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 556, - "col": 0, - "byteIndex": 14119 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteBatchResultSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 567, - "col": 4, - "byteIndex": 14499 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - }, - "typeParams": [] - }, + } + ] + }, + { + "id": 11261, + "name": "toHaveMessagesCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11262, + "name": "toHaveMessagesCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages count is close to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11263, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 568, - "col": 4, - "byteIndex": 14534 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } - } - } - } - }, - "typeParams": [] - }, + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11264, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 569, - "col": 4, - "byteIndex": 14578 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 566, - "col": 2, - "byteIndex": 14473 } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-batch" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 558, - "col": 2, - "byteIndex": 14209 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 559, - "col": 2, - "byteIndex": 14256 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 560, - "col": 2, - "byteIndex": 14294 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 561, - "col": 2, - "byteIndex": 14325 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ] + }, + { + "id": 11235, + "name": "toHaveMessagesCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11236, + "name": "toHaveMessagesCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages count equals the expected value using deep equality." } - } - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 562, - "col": 2, - "byteIndex": 14350 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SqsBatchFailedEntry", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsBatchFailedEntry" - } + ] + }, + "parameters": [ + { + "id": 11237, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected messages count" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 563, - "col": 2, - "byteIndex": 14392 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 564, - "col": 2, - "byteIndex": 14443 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteBatchResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultSuccess" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteBatchResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 581, - "col": 0, - "byteIndex": 14797 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteBatchResultError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 592, - "col": 4, - "byteIndex": 15154 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 11249, + "name": "toHaveMessagesCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11250, + "name": "toHaveMessagesCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages count is greater than the expected value." + } + ] + }, + "parameters": [ + { + "id": 11251, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 593, - "col": 4, - "byteIndex": 15175 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The value to compare against" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 591, - "col": 2, - "byteIndex": 15128 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-batch" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 583, - "col": 2, - "byteIndex": 14883 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 584, - "col": 2, - "byteIndex": 14930 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 585, - "col": 2, - "byteIndex": 14968 - } - }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 586, - "col": 2, - "byteIndex": 15000 - } - }, - { - "tsType": null, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 587, - "col": 2, - "byteIndex": 15028 - } - }, - { - "tsType": null, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 588, - "col": 2, - "byteIndex": 15065 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 589, - "col": 2, - "byteIndex": 15098 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteBatchResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultError" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteBatchResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 604, - "col": 0, - "byteIndex": 15353 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteBatchResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 615, - "col": 4, - "byteIndex": 15708 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 11252, + "name": "toHaveMessagesCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11253, + "name": "toHaveMessagesCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages count is greater than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11254, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 616, - "col": 4, - "byteIndex": 15736 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The value to compare against" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 614, - "col": 2, - "byteIndex": 15682 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete-batch", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-batch" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 606, - "col": 2, - "byteIndex": 15443 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 607, - "col": 2, - "byteIndex": 15490 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 608, - "col": 2, - "byteIndex": 15529 - } - }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 609, - "col": 2, - "byteIndex": 15561 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "successful", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 610, - "col": 2, - "byteIndex": 15596 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "failed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 611, - "col": 2, - "byteIndex": 15626 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 612, - "col": 2, - "byteIndex": 15652 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteBatchResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResultFailure" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsEnsureQueueResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 637, - "col": 0, - "byteIndex": 16232 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful ensure queue result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsEnsureQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 638, - "col": 2, - "byteIndex": 16314 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 639, - "col": 2, - "byteIndex": 16342 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 640, - "col": 2, - "byteIndex": 16363 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "queueUrl", - "jsDoc": { - "doc": "URL of the queue (existing or newly created)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 642, - "col": 2, - "byteIndex": 16442 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsEnsureQueueResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 648, - "col": 0, - "byteIndex": 16519 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Ensure queue result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsEnsureQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 649, - "col": 2, - "byteIndex": 16599 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 650, - "col": 2, - "byteIndex": 16627 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 651, - "col": 2, - "byteIndex": 16649 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, - { - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 652, - "col": 2, - "byteIndex": 16677 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsEnsureQueueResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 658, - "col": 0, - "byteIndex": 16761 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Ensure queue result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsEnsureQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 659, - "col": 2, - "byteIndex": 16843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 660, - "col": 2, - "byteIndex": 16872 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 661, - "col": 2, - "byteIndex": 16894 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, - { - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 662, - "col": 2, - "byteIndex": 16929 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsEnsureQueueResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 677, - "col": 0, - "byteIndex": 17212 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsEnsureQueueResultSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 687, - "col": 4, - "byteIndex": 17528 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, + ] + }, + { + "id": 11255, + "name": "toHaveMessagesCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11256, + "name": "toHaveMessagesCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages count is less than the expected value." + } + ] + }, + "parameters": [ + { + "id": 11257, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 688, - "col": 4, - "byteIndex": 17550 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The value to compare against" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 686, - "col": 2, - "byteIndex": 17502 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:ensure-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:ensure-queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 679, - "col": 2, - "byteIndex": 17302 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 680, - "col": 2, - "byteIndex": 17349 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 681, - "col": 2, - "byteIndex": 17387 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 682, - "col": 2, - "byteIndex": 17418 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 683, - "col": 2, - "byteIndex": 17443 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 684, - "col": 2, - "byteIndex": 17472 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsEnsureQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultSuccess" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsEnsureQueueResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 699, - "col": 0, - "byteIndex": 17732 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsEnsureQueueResultError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 709, - "col": 4, - "byteIndex": 18047 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 11258, + "name": "toHaveMessagesCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11259, + "name": "toHaveMessagesCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages count is less than or equal to the expected value." + } + ] + }, + "parameters": [ + { + "id": 11260, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 710, - "col": 4, - "byteIndex": 18068 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The value to compare against" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 708, - "col": 2, - "byteIndex": 18021 } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:ensure-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:ensure-queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 701, - "col": 2, - "byteIndex": 17818 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 702, - "col": 2, - "byteIndex": 17865 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 703, - "col": 2, - "byteIndex": 17903 - } - }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" + ] + }, + { + "id": 11247, + "name": "toHaveMessagesCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11248, + "name": "toHaveMessagesCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages count is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 704, - "col": 2, - "byteIndex": 17935 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 705, - "col": 2, - "byteIndex": 17963 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 706, - "col": 2, - "byteIndex": 17991 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsEnsureQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultError" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsEnsureQueueResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 721, - "col": 0, - "byteIndex": 18246 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsEnsureQueueResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 731, - "col": 4, - "byteIndex": 18573 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - }, + ] + }, + { + "id": 11241, + "name": "toHaveMessagesCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11242, + "name": "toHaveMessagesCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages count satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11243, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 732, - "col": 4, - "byteIndex": 18601 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "A function that receives the messages count and performs assertions" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11244, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11245, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11246, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 730, - "col": 2, - "byteIndex": 18547 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:ensure-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:ensure-queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 723, - "col": 2, - "byteIndex": 18336 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 724, - "col": 2, - "byteIndex": 18383 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 725, - "col": 2, - "byteIndex": 18422 - } - }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 726, - "col": 2, - "byteIndex": 18454 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queueUrl", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 727, - "col": 2, - "byteIndex": 18489 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 728, - "col": 2, - "byteIndex": 18517 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsEnsureQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultFailure" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteQueueResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 753, - "col": 0, - "byteIndex": 19097 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful delete queue result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 754, - "col": 2, - "byteIndex": 19179 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 755, - "col": 2, - "byteIndex": 19207 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 756, - "col": 2, - "byteIndex": 19228 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteQueueResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 762, - "col": 0, - "byteIndex": 19300 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete queue result with SQS error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultBase" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 763, - "col": 2, - "byteIndex": 19380 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 764, - "col": 2, - "byteIndex": 19408 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 765, - "col": 2, - "byteIndex": 19430 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteQueueResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 771, - "col": 0, - "byteIndex": 19515 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Delete queue result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqsDeleteQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultBase" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 772, - "col": 2, - "byteIndex": 19597 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 773, - "col": 2, - "byteIndex": 19626 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 774, - "col": 2, - "byteIndex": 19648 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteQueueResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 789, - "col": 0, - "byteIndex": 19932 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteQueueResultSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 798, - "col": 4, - "byteIndex": 20219 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ] + }, + { + "id": 11238, + "name": "toHaveMessagesCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11239, + "name": "toHaveMessagesCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages count strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11240, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected messages count" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 797, - "col": 2, - "byteIndex": 20193 } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 791, - "col": 2, - "byteIndex": 20022 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 792, - "col": 2, - "byteIndex": 20069 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + { + "id": 11230, + "name": "toHaveMessagesEmpty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11231, + "name": "toHaveMessagesEmpty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages is empty." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 793, - "col": 2, - "byteIndex": 20107 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 794, - "col": 2, - "byteIndex": 20138 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 795, - "col": 2, - "byteIndex": 20163 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultSuccess" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteQueueResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 808, - "col": 0, - "byteIndex": 20364 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteQueueResultError.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 817, - "col": 4, - "byteIndex": 20651 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "typeParams": [] - }, + } + ] + }, + { + "id": 11209, + "name": "toHaveMessagesEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11210, + "name": "toHaveMessagesEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 11211, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 818, - "col": 4, - "byteIndex": 20672 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "The expected messages" } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 816, - "col": 2, - "byteIndex": 20625 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 810, - "col": 2, - "byteIndex": 20450 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 811, - "col": 2, - "byteIndex": 20497 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 812, - "col": 2, - "byteIndex": 20535 - } - }, - { - "tsType": { - "repr": "SqsError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 813, - "col": 2, - "byteIndex": 20567 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 814, - "col": 2, - "byteIndex": 20595 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultError" } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqsDeleteQueueResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 829, - "col": 0, - "byteIndex": 20850 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for SqsDeleteQueueResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 838, - "col": 4, - "byteIndex": 21149 + ] + }, + { + "id": 11227, + "name": "toHaveMessagesMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11228, + "name": "toHaveMessagesMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages matches the specified subset." + } + ] + }, + "parameters": [ + { + "id": 11229, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The subset to match against" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" } - }, - "typeParams": [] + ], + "name": "Record", + "package": "typescript" }, { - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 839, - "col": 4, - "byteIndex": 21177 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } } - ], - "callSignatures": [], - "indexSignatures": [] + ] } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 837, - "col": 2, - "byteIndex": 21123 } - } - ], - "properties": [ - { - "tsType": { - "repr": "sqs:delete-queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sqs:delete-queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 831, - "col": 2, - "byteIndex": 20940 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 832, - "col": 2, - "byteIndex": 20987 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 833, - "col": 2, - "byteIndex": 21026 - } - }, - { - "tsType": { - "repr": "SqsFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsFailureError" + ] + }, + { + "id": 11215, + "name": "toHaveMessagesSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11216, + "name": "toHaveMessagesSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11217, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the messages and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11218, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11219, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11220, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 8140, + "name": "SqsMessage", + "package": "@probitas-test/client-sqs" + } + } + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 834, - "col": 2, - "byteIndex": 21058 - } - }, - { - "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-sqs/0.6.0/result.ts", - "line": 835, - "col": 2, - "byteIndex": 21093 } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "SqsDeleteQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultFailure" + ] + }, + { + "id": 11212, + "name": "toHaveMessagesStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11213, + "name": "toHaveMessagesStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the messages strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11214, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected messages" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "typeParams": [], - "superTypeParams": [] - } + ] + } + ] }, { - "name": "createSqsClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/client.ts", - "line": 495, - "col": 0, - "byteIndex": 13915 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new Amazon SQS client instance.\n\nThe client provides queue management, message publishing and consumption,\nbatch operations, and supports both standard and FIFO queues via AWS SDK.\n", - "tags": [ - { - "kind": "param", - "name": "config", - "doc": "- SQS client configuration" - }, + "id": 8400, + "name": "SqsReceiveResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "return", - "doc": "A promise resolving to a new SQS client instance\n" + "kind": "text", + "text": "Receive result with connection failure." + } + ] + }, + "children": [ + { + "id": 8406, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "kind": "example", - "doc": "Basic usage with existing queue\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"ap-northeast-1\",\n queueUrl: \"https://sqs.ap-northeast-1.amazonaws.com/123456789/my-queue\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n\n // Send a message\n const sendResult = await sqs.send(JSON.stringify({\n type: \"ORDER\",\n orderId: \"123\",\n }));\n\n if (sendResult.ok) {\n console.log(\"Message ID:\", sendResult.messageId);\n } else {\n console.error(\"Error:\", sendResult.error.message);\n }\n\n await sqs.close();\n}\n```\n" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] }, - { - "kind": "example", - "doc": "Using ElasticMQ for local development\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: {\n accessKeyId: \"test\",\n secretAccessKey: \"test\",\n },\n });\n\n // Create queue dynamically (also sets queueUrl)\n const result = await sqs.ensureQueue(\"test-queue\");\n if (result.ok) {\n console.log(result.queueUrl); // http://localhost:9324/000000000000/test-queue\n }\n\n await sqs.close();\n}\n```\n" + "type": { + "type": "intrinsic", + "name": "number" }, - { - "kind": "example", - "doc": "Receiving messages with long polling\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n await sqs.ensureQueue(\"test-queue\");\n\n // Long polling waits up to 20 seconds for messages\n const receiveResult = await sqs.receive({\n maxMessages: 10,\n waitTimeSeconds: 20,\n visibilityTimeout: 30,\n });\n\n if (receiveResult.ok) {\n console.log(\"Received:\", receiveResult.messages.length);\n\n // Process and acknowledge messages\n for (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\n await sqs.close();\n}\n```\n" + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.duration" + } + }, + { + "id": 8403, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." + } + ] }, - { - "kind": "example", - "doc": "Batch operations for high throughput\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n await sqs.ensureQueue(\"test-queue\");\n\n // Send multiple messages in a single API call\n const batchResult = await sqs.sendBatch([\n { id: \"1\", body: JSON.stringify({ event: \"user.created\", userId: \"a1\" }) },\n { id: \"2\", body: JSON.stringify({ event: \"user.created\", userId: \"a2\" }) },\n { id: \"3\", body: JSON.stringify({ event: \"user.updated\", userId: \"a3\" }) },\n ]);\n\n if (batchResult.ok) {\n console.log(`Sent: ${batchResult.successful.length}`);\n console.log(`Failed: ${batchResult.failed.length}`);\n }\n\n // Batch delete processed messages\n const receiveResult = await sqs.receive({ maxMessages: 10 });\n if (receiveResult.ok) {\n const handles = receiveResult.messages.map((m) => m.receiptHandle);\n await sqs.deleteBatch(handles);\n }\n\n await sqs.close();\n}\n```\n" + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsFailureError" + }, + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" }, - { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n await using sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n\n await sqs.ensureQueue(\"test-queue\");\n await sqs.send(\"Hello, SQS!\");\n // Client automatically closed when scope exits\n}\n```" + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.error" } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "SqsClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsClientConfig" + }, + { + "id": 8405, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - } + ] + }, + "type": { + "type": "literal", + "value": "sqs:receive" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.kind" } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 8404, + "name": "messages", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 8402, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "repr": "SqsClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsClient" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "typeName": "Promise" + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.ok" } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + { + "id": 8401, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.processed" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsReceiveResultBase" + }, + "name": "SqsReceiveResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "RabbitMqAckResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 10, - "col": 0, - "byteIndex": 301 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for RabbitMQ ack result validation.\n\nProvides chainable assertions for message acknowledgment results.\nAck results only have ok and duration properties." + "id": 8386, + "name": "SqsReceiveResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful receive result." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 32, - "col": 2, - "byteIndex": 834 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 8392, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 38, - "col": 2, - "byteIndex": 974 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 44, - "col": 2, - "byteIndex": 1159 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.duration" + } + }, + { + "id": 8389, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 50, - "col": 2, - "byteIndex": 1338 - }, - "params": [ + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.error" + } + }, + { + "id": 8391, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 56, - "col": 2, - "byteIndex": 1561 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:receive" }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 61, - "col": 2, - "byteIndex": 1681 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.kind" + } + }, + { + "id": 8390, + "name": "messages", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 67, - "col": 2, - "byteIndex": 1842 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Array of received messages (may be empty)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 73, - "col": 2, - "byteIndex": 2039 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 8140, + "name": "SqsMessage", + "package": "@probitas-test/client-sqs" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 79, - "col": 2, - "byteIndex": 2228 - }, - "params": [ + } + } + }, + { + "id": 8388, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 85, - "col": 2, - "byteIndex": 2419 - }, - "params": [ + "kind": "code", + "text": "`false`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 92, - "col": 2, - "byteIndex": 2669 - }, - "params": [ + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.ok" + } + }, + { + "id": 8387, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { RabbitMqAckResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqAckResult } from \"./ack.ts\";\nconst result = {\n kind: \"rabbitmq:ack\",\n ok: false,\n duration: 0,\n} as unknown as RabbitMqAckResult;\n\nexpectRabbitMqAckResult(result).not.toBeOk();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/ack.ts", - "line": 27, - "col": 2, - "byteIndex": 755 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsReceiveResultBase.processed" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsReceiveResultBase" + }, + "name": "SqsReceiveResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "RabbitMqConsumeResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 11, - "col": 0, - "byteIndex": 387 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for RabbitMQ consume result validation.\n\nProvides chainable assertions specifically designed for message consumption results\nincluding message content, properties, headers, and metadata." + "id": 8327, + "name": "SqsSendBatchResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Batch send result with SQS error." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 34, - "col": 2, - "byteIndex": 970 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 8334, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true }, - { - "name": "toHaveMessage", - "jsDoc": { - "doc": "Asserts that the message equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected message" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 40, - "col": 2, - "byteIndex": 1102 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessageEqual", - "jsDoc": { - "doc": "Asserts that the message equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected message" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 46, - "col": 2, - "byteIndex": 1278 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.duration" + } + }, + { + "id": 8330, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessageStrictEqual", - "jsDoc": { - "doc": "Asserts that the message strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected message" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 52, - "col": 2, - "byteIndex": 1448 - }, - "params": [ + "type": { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.error" + } + }, + { + "id": 8332, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + } + }, + { + "id": 8333, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessageSatisfying", - "jsDoc": { - "doc": "Asserts that the message satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the message and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 59, - "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": "value", - "optional": false, - "tsType": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] - } - } + "type": { + "type": "literal", + "value": "sqs:send-batch" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.kind" + } + }, + { + "id": 8329, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessagePresent", - "jsDoc": { - "doc": "Asserts that the message is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 64, - "col": 2, - "byteIndex": 1930 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": false }, - { - "name": "toHaveMessageNull", - "jsDoc": { - "doc": "Asserts that the message is null (no message received)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 69, - "col": 2, - "byteIndex": 2036 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.ok" + } + }, + { + "id": 8328, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." + } + ] }, - { - "name": "toHaveMessageUndefined", - "jsDoc": { - "doc": "Asserts that the message is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 74, - "col": 2, - "byteIndex": 2122 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, - { - "name": "toHaveMessageNullish", - "jsDoc": { - "doc": "Asserts that the message is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 79, - "col": 2, - "byteIndex": 2231 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.processed" + } + }, + { + "id": 8331, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsSendBatchResultBase" + }, + "name": "SqsSendBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 11298, + "name": "SqsSendBatchResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveMessageMatching", - "jsDoc": { - "doc": "Asserts that the message matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 85, - "col": 2, - "byteIndex": 2385 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Fluent API for SQS send batch result validation.\n\nProvides chainable assertions specifically designed for batch message send results\nincluding successful and failed messages arrays." + } + ] + }, + "children": [ + { + "id": 11299, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveMessageProperty", - "jsDoc": { - "doc": "Asserts that the message has the specified property.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, - { - "kind": "param", - "name": "value", - "doc": "- Optional expected value at the key path" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 94, - "col": 2, - "byteIndex": 2783 - }, - "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" - } - } - ] - } - }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "value", - "optional": true, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Negates the next assertion." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqsSendBatchResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsSendBatchResult } from \"./send_batch.ts\";\nconst result = {\n kind: \"sqs:send-batch\",\n ok: false,\n successful: [],\n failed: [],\n duration: 0,\n} as unknown as SqsSendBatchResult;\n\nexpectSqsSendBatchResult(result).not.toBeOk();\n```" + } + ] + } + ] }, - { - "name": "toHaveMessagePropertyContaining", - "jsDoc": { - "doc": "Asserts that the message property contains the expected value.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, + "type": { + "type": "reference", + "target": 11298, + "name": "SqsSendBatchResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 11300, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11301, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11420, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11421, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11422, "name": "expected", - "doc": "- The expected contained value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 101, - "col": 2, - "byteIndex": 3148 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" } - } - ] - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagePropertyMatching", - "jsDoc": { - "doc": "Asserts that the message property matches the specified subset.", - "tags": [ + } + ] + }, + { + "id": 11449, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11450, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." + "id": 11451, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 111, - "col": 2, - "byteIndex": 3536 - }, - "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": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } + "id": 11452, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessagePropertySatisfying", - "jsDoc": { - "doc": "Asserts that the message property satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "keyPath", - "doc": "- Property path as dot-separated string (`\"user.name\"`) or array (`[\"user\", \"name\"]`). Use array format for properties containing dots." - }, + } + ] + }, + { + "id": 11423, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11424, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the property value and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 121, - "col": 2, - "byteIndex": 4026 - }, - "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" + "id": 11425, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" } - } - ] + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11437, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11438, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] }, - { - "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": "any", - "kind": "keyword", - "keyword": "any" - } + "parameters": [ + { + "id": 11439, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContent", - "jsDoc": { - "doc": "Asserts that the content equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11440, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11441, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11442, "name": "expected", - "doc": "- The expected content" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 131, - "col": 2, - "byteIndex": 4374 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentEqual", - "jsDoc": { - "doc": "Asserts that the content equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 11443, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11444, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11445, "name": "expected", - "doc": "- The expected content" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 137, - "col": 2, - "byteIndex": 4550 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentStrictEqual", - "jsDoc": { - "doc": "Asserts that the content strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11446, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11447, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11448, "name": "expected", - "doc": "- The expected content" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 143, - "col": 2, - "byteIndex": 4720 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentSatisfying", - "jsDoc": { - "doc": "Asserts that the content satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 11435, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11436, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11429, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11430, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11431, "name": "matcher", - "doc": "- A function that receives the content and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 150, - "col": 2, - "byteIndex": 5059 - }, - "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": "any", - "kind": "keyword", - "keyword": "any" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11432, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11433, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11434, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentPresent", - "jsDoc": { - "doc": "Asserts that the content is present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 155, - "col": 2, - "byteIndex": 5202 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentNull", - "jsDoc": { - "doc": "Asserts that the content is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 160, - "col": 2, - "byteIndex": 5286 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentUndefined", - "jsDoc": { - "doc": "Asserts that the content is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 165, - "col": 2, - "byteIndex": 5372 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentNullish", - "jsDoc": { - "doc": "Asserts that the content is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 170, - "col": 2, - "byteIndex": 5481 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentLength", - "jsDoc": { - "doc": "Asserts that the content length equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11426, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11427, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11428, "name": "expected", - "doc": "- The expected content length" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 176, - "col": 2, - "byteIndex": 5641 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentLengthEqual", - "jsDoc": { - "doc": "Asserts that the content length equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 11361, + "name": "toHaveFailed", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11362, + "name": "toHaveFailed", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11363, "name": "expected", - "doc": "- The expected content length" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 182, - "col": 2, - "byteIndex": 5837 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentLengthStrictEqual", - "jsDoc": { - "doc": "Asserts that the content length strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected content length" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 188, - "col": 2, - "byteIndex": 6027 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + } + ] + }, + { + "id": 11376, + "name": "toHaveFailedContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11377, + "name": "toHaveFailedContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11378, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentLengthSatisfying", - "jsDoc": { - "doc": "Asserts that the content length satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the content length and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 194, - "col": 2, - "byteIndex": 6267 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] + } + ] + }, + { + "id": 11379, + "name": "toHaveFailedContainingEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11380, + "name": "toHaveFailedContainingEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11381, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentLengthNaN", - "jsDoc": { - "doc": "Asserts that the content length is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 199, - "col": 2, - "byteIndex": 6398 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentLengthGreaterThan", - "jsDoc": { - "doc": "Asserts that the content length is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11387, + "name": "toHaveFailedCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11388, + "name": "toHaveFailedCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11389, "name": "expected", - "doc": "- The value to compare against" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 205, - "col": 2, - "byteIndex": 6570 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11416, + "name": "toHaveFailedCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11417, + "name": "toHaveFailedCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11418, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11419, + "name": "numDigits", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentLengthGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the content length is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11390, + "name": "toHaveFailedCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11391, + "name": "toHaveFailedCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11392, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 211, - "col": 2, - "byteIndex": 6778 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentLengthLessThan", - "jsDoc": { - "doc": "Asserts that the content length is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11404, + "name": "toHaveFailedCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11405, + "name": "toHaveFailedCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11406, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 217, - "col": 2, - "byteIndex": 6978 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentLengthLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the content length is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11407, + "name": "toHaveFailedCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11408, + "name": "toHaveFailedCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11409, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 223, - "col": 2, - "byteIndex": 7180 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveContentLengthCloseTo", - "jsDoc": { - "doc": "Asserts that the content length is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11410, + "name": "toHaveFailedCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11411, + "name": "toHaveFailedCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11412, "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 230, - "col": 2, - "byteIndex": 7441 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11413, + "name": "toHaveFailedCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11414, + "name": "toHaveFailedCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11415, "name": "expected", - "doc": "- The expected duration value" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 236, - "col": 2, - "byteIndex": 7637 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11402, + "name": "toHaveFailedCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11403, + "name": "toHaveFailedCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11396, + "name": "toHaveFailedCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11397, + "name": "toHaveFailedCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11398, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 11399, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11400, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11401, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 11393, + "name": "toHaveFailedCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11394, + "name": "toHaveFailedCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11395, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 242, - "col": 2, - "byteIndex": 7822 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11385, + "name": "toHaveFailedEmpty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11386, + "name": "toHaveFailedEmpty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11364, + "name": "toHaveFailedEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11365, + "name": "toHaveFailedEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11366, "name": "expected", - "doc": "- The expected duration value" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 248, - "col": 2, - "byteIndex": 8001 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11382, + "name": "toHaveFailedMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11383, + "name": "toHaveFailedMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11384, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", + } + ] + }, + { + "id": 11370, + "name": "toHaveFailedSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11371, + "name": "toHaveFailedSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11372, "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 254, - "col": 2, - "byteIndex": 8224 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 11373, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11374, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11375, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 8174, + "name": "SqsBatchFailedEntry", + "package": "@probitas-test/client-sqs" + } + } + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } - } - ], - "typeParams": [] + ] + } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 259, - "col": 2, - "byteIndex": 8344 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11367, + "name": "toHaveFailedStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11368, + "name": "toHaveFailedStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11369, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 265, - "col": 2, - "byteIndex": 8505 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11302, + "name": "toHaveSuccessful", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11303, + "name": "toHaveSuccessful", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11304, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 271, - "col": 2, - "byteIndex": 8702 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" + } + ] + }, + { + "id": 11317, + "name": "toHaveSuccessfulContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11318, + "name": "toHaveSuccessfulContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11319, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 277, - "col": 2, - "byteIndex": 8891 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11320, + "name": "toHaveSuccessfulContainingEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11321, + "name": "toHaveSuccessfulContainingEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11322, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11328, + "name": "toHaveSuccessfulCount", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11329, + "name": "toHaveSuccessfulCount", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11330, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 283, - "col": 2, - "byteIndex": 9082 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" + } + ] + }, + { + "id": 11357, + "name": "toHaveSuccessfulCountCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11358, + "name": "toHaveSuccessfulCountCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11359, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", + "id": 11360, "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 290, - "col": 2, - "byteIndex": 9332 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } } - }, - { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11331, + "name": "toHaveSuccessfulCountEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11332, + "name": "toHaveSuccessfulCountEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11333, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ + } + ] + }, + { + "id": 11345, + "name": "toHaveSuccessfulCountGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11346, + "name": "toHaveSuccessfulCountGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "example", - "doc": "```ts\nimport type { RabbitMqConsumeResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqConsumeResult } from \"./consume.ts\";\nconst result = {\n kind: \"rabbitmq:consume\",\n ok: false,\n message: null,\n duration: 0,\n} as unknown as RabbitMqConsumeResult;\n\nexpectRabbitMqConsumeResult(result).not.toBeOk();\n```" + "id": 11347, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/consume.ts", - "line": 29, - "col": 2, - "byteIndex": 891 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqExchangeResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 10, - "col": 0, - "byteIndex": 323 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for RabbitMQ exchange result validation.\n\nProvides chainable assertions for exchange declaration/deletion results.\nExchange results only have ok and duration properties." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 32, - "col": 2, - "byteIndex": 891 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11348, + "name": "toHaveSuccessfulCountGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11349, + "name": "toHaveSuccessfulCountGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11350, "name": "expected", - "doc": "- The expected duration value" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 38, - "col": 2, - "byteIndex": 1031 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11351, + "name": "toHaveSuccessfulCountLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11352, + "name": "toHaveSuccessfulCountLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11353, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 11354, + "name": "toHaveSuccessfulCountLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11355, + "name": "toHaveSuccessfulCountLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11356, "name": "expected", - "doc": "- The expected duration value" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 44, - "col": 2, - "byteIndex": 1216 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11343, + "name": "toHaveSuccessfulCountNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11344, + "name": "toHaveSuccessfulCountNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11337, + "name": "toHaveSuccessfulCountSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11338, + "name": "toHaveSuccessfulCountSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11339, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 11340, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11341, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11342, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11334, + "name": "toHaveSuccessfulCountStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11335, + "name": "toHaveSuccessfulCountStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11336, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 50, - "col": 2, - "byteIndex": 1395 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ + } + ] + }, + { + "id": 11326, + "name": "toHaveSuccessfulEmpty", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11327, + "name": "toHaveSuccessfulEmpty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11305, + "name": "toHaveSuccessfulEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11306, + "name": "toHaveSuccessfulEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" + "id": 11307, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 56, - "col": 2, - "byteIndex": 1618 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11323, + "name": "toHaveSuccessfulMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11324, + "name": "toHaveSuccessfulMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11325, + "name": "subset", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "PropertyKey" + }, + "name": "PropertyKey", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" } } - ], - "typeParams": [] + ] } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 61, - "col": 2, - "byteIndex": 1738 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11311, + "name": "toHaveSuccessfulSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11312, + "name": "toHaveSuccessfulSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11313, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 11314, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11315, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11316, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 8171, + "name": "SqsBatchSuccessEntry", + "package": "@probitas-test/client-sqs" + } + } + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "tuple" + } + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11308, + "name": "toHaveSuccessfulStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11309, + "name": "toHaveSuccessfulStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 11310, "name": "expected", - "doc": "- The value to compare against" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 67, - "col": 2, - "byteIndex": 1899 - }, - "params": [ + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + } + ] + }, + { + "id": 8335, + "name": "SqsSendBatchResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Batch send result with connection failure." + } + ] + }, + "children": [ + { + "id": 8342, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 73, - "col": 2, - "byteIndex": 2096 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.duration" + } + }, + { + "id": 8338, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsFailureError" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 79, - "col": 2, - "byteIndex": 2285 - }, - "params": [ + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.error" + } + }, + { + "id": 8340, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 8341, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 85, - "col": 2, - "byteIndex": 2476 - }, - "params": [ + "type": { + "type": "literal", + "value": "sqs:send-batch" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.kind" + } + }, + { + "id": 8337, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 92, - "col": 2, - "byteIndex": 2726 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.ok" + } + }, + { + "id": 8336, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.processed" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { RabbitMqExchangeResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqExchangeResult } from \"./exchange.ts\";\nconst result = {\n kind: \"rabbitmq:exchange\",\n ok: false,\n duration: 0,\n} as unknown as RabbitMqExchangeResult;\n\nexpectRabbitMqExchangeResult(result).not.toBeOk();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/exchange.ts", - "line": 27, - "col": 2, - "byteIndex": 812 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + }, + { + "id": 8339, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsSendBatchResultBase" + }, + "name": "SqsSendBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "RabbitMqPublishResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 8, - "col": 0, - "byteIndex": 241 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for RabbitMQ publish result validation.\nPublish results only have ok and duration properties." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 30, - "col": 2, - "byteIndex": 802 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "id": 8319, + "name": "SqsSendBatchResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Successful batch send result.\n\nNote: " }, { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 36, - "col": 2, - "byteIndex": 942 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "code", + "text": "`ok: true`" }, { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 42, - "col": 2, - "byteIndex": 1127 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": " even if some messages failed (partial failure).\nCheck " }, { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 48, - "col": 2, - "byteIndex": 1306 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "code", + "text": "`failed.length > 0`" }, { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 54, - "col": 2, - "byteIndex": 1529 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } + "kind": "text", + "text": " to detect partial failures." + } + ] + }, + "children": [ + { + "id": 8326, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 59, - "col": 2, - "byteIndex": 1649 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 65, - "col": 2, - "byteIndex": 1810 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.duration" + } + }, + { + "id": 8322, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 71, - "col": 2, - "byteIndex": 2007 - }, - "params": [ + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.error" + } + }, + { + "id": 8324, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Array of messages that failed to send (may be non-empty even with ok: true)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 77, - "col": 2, - "byteIndex": 2196 - }, - "params": [ + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 8174, + "name": "SqsBatchFailedEntry", + "package": "@probitas-test/client-sqs" + } + } + } + }, + { + "id": 8325, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 83, - "col": 2, - "byteIndex": 2387 - }, - "params": [ + "type": { + "type": "literal", + "value": "sqs:send-batch" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.kind" + } + }, + { + "id": 8321, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 90, - "col": 2, - "byteIndex": 2637 - }, - "params": [ + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.ok" + } + }, + { + "id": 8320, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendBatchResultBase.processed" } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { RabbitMqPublishResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqPublishResult } from \"./publish.ts\";\nconst result = {\n kind: \"rabbitmq:publish\",\n ok: false,\n duration: 0,\n} as unknown as RabbitMqPublishResult;\n\nexpectRabbitMqPublishResult(result).not.toBeOk();\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/publish.ts", - "line": 25, - "col": 2, - "byteIndex": 723 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + }, + { + "id": 8323, + "name": "successful", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of successfully sent messages." + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 8171, + "name": "SqsBatchSuccessEntry", + "package": "@probitas-test/client-sqs" + } + } } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsSendBatchResultBase" + }, + "name": "SqsSendBatchResultBase", + "package": "@probitas-test/client-sqs" + } + ] }, { - "name": "RabbitMqQueueResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 11, - "col": 0, - "byteIndex": 363 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for RabbitMQ queue result validation.\n\nProvides chainable assertions specifically designed for queue declaration results\n(e.g., assertQueue, checkQueue operations)." + "id": 8147, + "name": "SqsSendOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Options for sending a message." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 36, - "col": 2, - "byteIndex": 987 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "children": [ + { + "id": 8148, + "name": "delaySeconds", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveQueue", - "jsDoc": { - "doc": "Asserts that the queue name equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected queue name" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 42, - "col": 2, - "byteIndex": 1125 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Delay in seconds before the message becomes visible (0-900)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveQueueEqual", - "jsDoc": { - "doc": "Asserts that the queue name equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected queue name" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 48, - "col": 2, - "byteIndex": 1305 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 8149, + "name": "messageAttributes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveQueueStrictEqual", - "jsDoc": { - "doc": "Asserts that the queue name strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected queue name" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 54, - "col": 2, - "byteIndex": 1479 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Message attributes" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveQueueSatisfying", - "jsDoc": { - "doc": "Asserts that the queue name satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the queue name and performs assertions" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 60, - "col": 2, - "byteIndex": 1703 - }, - "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": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] - } - } + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 8136, + "name": "SqsMessageAttribute", + "package": "@probitas-test/client-sqs" } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "Record", + "package": "typescript" + } + }, + { + "id": 8151, + "name": "messageDeduplicationId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "toHaveQueueContaining", - "jsDoc": { - "doc": "Asserts that the queue name contains the specified substring.", - "tags": [ - { - "kind": "param", - "name": "substr", - "doc": "- The substring to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 66, - "col": 2, - "byteIndex": 1897 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "substr", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Message deduplication ID (required for FIFO queues without content-based deduplication)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveQueueMatching", - "jsDoc": { - "doc": "Asserts that the queue name matches the specified regular expression.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The regular expression to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 72, - "col": 2, - "byteIndex": 2095 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8150, + "name": "messageGroupId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } + "kind": "text", + "text": "Message group ID (required for FIFO queues)" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessageCount", - "jsDoc": { - "doc": "Asserts that the message count equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected message count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 78, - "col": 2, - "byteIndex": 2268 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8155, + "name": "retry", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Retry configuration." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessageCountEqual", - "jsDoc": { - "doc": "Asserts that the message count equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected message count" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/types.d.ts", + "qualifiedName": "RetryOptions" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 84, - "col": 2, - "byteIndex": 2461 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "name": "RetryOptions", + "package": "@probitas-test/client" + }, + "inheritedFrom": { + "type": "reference", + "target": 8115, + "name": "SqsOptions.retry" + } + }, + { + "id": 8154, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "AbortSignal for cancellation." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessageCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the message count strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected message count" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 90, - "col": 2, - "byteIndex": 2648 - }, - "params": [ + "name": "AbortSignal", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": 8114, + "name": "SqsOptions.signal" + } + }, + { + "id": 8152, + "name": "throwOnError", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "If true, throws errors instead of returning them in the result.\nIf false (default), errors are returned in the result object." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveMessageCountSatisfying", - "jsDoc": { - "doc": "Asserts that the message count satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the message count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 96, - "col": 2, - "byteIndex": 2885 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nfalse\n```" } - } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessageCountNaN", - "jsDoc": { - "doc": "Asserts that the message count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 101, - "col": 2, - "byteIndex": 3014 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "boolean" }, - { - "name": "toHaveMessageCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the message count is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 107, - "col": 2, - "byteIndex": 3184 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "inheritedFrom": { + "type": "reference", + "target": 8112, + "name": "SqsOptions.throwOnError" + } + }, + { + "id": 8153, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout in milliseconds." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessageCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the message count is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 113, - "col": 2, - "byteIndex": 3390 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" }, + "inheritedFrom": { + "type": "reference", + "target": 8113, + "name": "SqsOptions.timeout" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 8111, + "name": "SqsOptions", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 8254, + "name": "SqsSendResultError", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveMessageCountLessThan", - "jsDoc": { - "doc": "Asserts that the message count is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 119, - "col": 2, - "byteIndex": 3588 - }, - "params": [ + "kind": "text", + "text": "Send result with SQS error." + } + ] + }, + "children": [ + { + "id": 8262, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessageCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the message count is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 125, - "col": 2, - "byteIndex": 3788 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.duration" + } + }, + { + "id": 8257, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveMessageCountCloseTo", - "jsDoc": { - "doc": "Asserts that the message count is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 132, - "col": 2, - "byteIndex": 4047 - }, - "params": [ + "type": { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.error" + } + }, + { + "id": 8261, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, + { + "kind": "code", + "text": "`kind`" + }, + { + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "code", + "text": "`as const`" }, { - "kind": "identifier", - "name": "numDigits", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveConsumerCount", - "jsDoc": { - "doc": "Asserts that the consumer count equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected consumer count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 138, - "col": 2, - "byteIndex": 4248 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": "sqs:send" }, - { - "name": "toHaveConsumerCountEqual", - "jsDoc": { - "doc": "Asserts that the consumer count equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected consumer count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 144, - "col": 2, - "byteIndex": 4444 - }, - "params": [ + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.kind" + } + }, + { + "id": 8259, + "name": "md5OfBody", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 8258, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 8256, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveConsumerCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the consumer count strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected consumer count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 150, - "col": 2, - "byteIndex": 4634 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.ok" + } + }, + { + "id": 8255, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveConsumerCountSatisfying", - "jsDoc": { - "doc": "Asserts that the consumer count satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the consumer count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 156, - "col": 2, - "byteIndex": 4874 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": { + "type": "literal", + "value": true }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.processed" + } + }, + { + "id": 8260, + "name": "sequenceNumber", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsSendResultBase" + }, + "name": "SqsSendResultBase", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 11453, + "name": "SqsSendResultExpectation", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveConsumerCountNaN", - "jsDoc": { - "doc": "Asserts that the consumer count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 161, - "col": 2, - "byteIndex": 5005 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "kind": "text", + "text": "Fluent API for SQS send result validation.\n\nProvides chainable assertions specifically designed for single message send results\nincluding message ID and sequence number." + } + ] + }, + "children": [ + { + "id": 11454, + "name": "not", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "toHaveConsumerCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the consumer count is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 167, - "col": 2, - "byteIndex": 5177 - }, - "params": [ + "comment": { + "summary": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "kind": "text", + "text": "Negates the next assertion." } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveConsumerCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the consumer count is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 173, - "col": 2, - "byteIndex": 5385 - }, - "params": [ + "blockTags": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqsSendResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsSendResult } from \"./send.ts\";\nconst result = {\n kind: \"sqs:send\",\n ok: false,\n messageId: \"msg-123\",\n md5OfBody: \"abc123\",\n sequenceNumber: undefined,\n duration: 0,\n} as unknown as SqsSendResult;\n\nexpectSqsSendResult(result).not.toBeOk();\n```" + } + ] } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, - { - "name": "toHaveConsumerCountLessThan", - "jsDoc": { - "doc": "Asserts that the consumer count is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 179, - "col": 2, - "byteIndex": 5585 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": { + "type": "reference", + "target": 11453, + "name": "SqsSendResultExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 11455, + "name": "toBeOk", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11456, + "name": "toBeOk", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the result is successful." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveConsumerCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the consumer count is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11528, + "name": "toHaveDuration", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11529, + "name": "toHaveDuration", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11530, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 185, - "col": 2, - "byteIndex": 5787 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveConsumerCountCloseTo", - "jsDoc": { - "doc": "Asserts that the consumer count is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11557, + "name": "toHaveDurationCloseTo", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11558, + "name": "toHaveDurationCloseTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is close to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11559, "name": "expected", - "doc": "- The expected value" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "param", + "id": 11560, "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 192, - "col": 2, - "byteIndex": 6048 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of decimal digits to check (default: 2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11531, + "name": "toHaveDurationEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11532, + "name": "toHaveDurationEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration equals the expected value using deep equality." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11533, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 198, - "col": 2, - "byteIndex": 6244 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ + } + ] + }, + { + "id": 11545, + "name": "toHaveDurationGreaterThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11546, + "name": "toHaveDurationGreaterThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11547, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 204, - "col": 2, - "byteIndex": 6429 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ + } + ] + }, + { + "id": 11548, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11549, + "name": "toHaveDurationGreaterThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is greater than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11550, "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 210, - "col": 2, - "byteIndex": 6608 - }, - "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": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 216, - "col": 2, - "byteIndex": 6831 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" } - ], - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 221, - "col": 2, - "byteIndex": 6951 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11551, + "name": "toHaveDurationLessThan", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11552, + "name": "toHaveDurationLessThan", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11553, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 227, - "col": 2, - "byteIndex": 7112 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11554, + "name": "toHaveDurationLessThanOrEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11555, + "name": "toHaveDurationLessThanOrEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is less than or equal to the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11556, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 233, - "col": 2, - "byteIndex": 7309 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to compare against" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ + } + ] + }, + { + "id": 11543, + "name": "toHaveDurationNaN", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11544, + "name": "toHaveDurationNaN", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration is NaN." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11537, + "name": "toHaveDurationSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11538, + "name": "toHaveDurationSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration satisfies the provided matcher function." + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 239, - "col": 2, - "byteIndex": 7498 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 11539, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the duration and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11540, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11541, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11542, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11534, + "name": "toHaveDurationStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11535, + "name": "toHaveDurationStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the duration strictly equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11536, "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 245, - "col": 2, - "byteIndex": 7689 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected duration value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ + } + ] + }, + { + "id": 11478, + "name": "toHaveMd5OfBody", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11479, + "name": "toHaveMd5OfBody", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the MD5 of body equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 11480, "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 252, - "col": 2, - "byteIndex": 7939 - }, - "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" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected MD5 hash" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ + } + ] + }, + { + "id": 11493, + "name": "toHaveMd5OfBodyContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11494, + "name": "toHaveMd5OfBodyContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the MD5 of body contains the specified substring." + } + ] + }, + "parameters": [ { - "kind": "example", - "doc": "```ts\nimport type { RabbitMqQueueResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqQueueResult } from \"./queue.ts\";\nconst result = {\n kind: \"rabbitmq:queue\",\n ok: false,\n queue: \"test-queue\",\n messageCount: 0,\n consumerCount: 0,\n duration: 0,\n} as unknown as RabbitMqQueueResult;\n\nexpectRabbitMqQueueResult(result).not.toBeOk();\n```" + "id": 11495, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq/queue.ts", - "line": 31, - "col": 2, - "byteIndex": 908 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq.ts", - "line": 42, - "col": 0, - "byteIndex": 1054 - }, - "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" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" + } + ] + }, + { + "id": 11481, + "name": "toHaveMd5OfBodyEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11482, + "name": "toHaveMd5OfBodyEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the MD5 of body equals the expected value using deep equality." } - }, - "extendsType": { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" + ] + }, + "parameters": [ + { + "id": 11483, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected MD5 hash" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } - }, - "trueType": { - "repr": "RabbitMqQueueResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultExpectation" + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11496, + "name": "toHaveMd5OfBodyMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11497, + "name": "toHaveMd5OfBodyMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the MD5 of body matches the specified regular expression." } - }, - "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" + ] + }, + "parameters": [ + { + "id": 11498, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" }, - "trueType": { - "repr": "RabbitMqPublishResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultExpectation" + "name": "RegExp", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11487, + "name": "toHaveMd5OfBodySatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11488, + "name": "toHaveMd5OfBodySatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the MD5 of body satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11489, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the MD5 hash and performs assertions" } - }, - "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" + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11490, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11491, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11492, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" } - }, - "falseType": { - "repr": "never", - "kind": "keyword", - "keyword": "never" } + ], + "type": { + "type": "intrinsic", + "name": "void" } } - } + ] } } } + ], + "type": { + "type": "intrinsic", + "name": "this" } } - } - }, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "RabbitMqResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqResult" - } - } - } - ] - } - }, - { - "name": "expectRabbitMqResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/rabbitmq.ts", - "line": 106, - "col": 0, - "byteIndex": 3355 - }, - "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\nimport type { RabbitMqPublishResult, RabbitMqConsumeResult, RabbitMqQueueResult, RabbitMqExchangeResult, RabbitMqAckResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqResult } from \"./rabbitmq.ts\";\n\n// For publish result - returns RabbitMqPublishResultExpectation\nconst publishResult = {\n kind: \"rabbitmq:publish\",\n ok: true,\n duration: 0,\n} as unknown as RabbitMqPublishResult;\nexpectRabbitMqResult(publishResult).toBeOk();\n\n// For consume result - returns RabbitMqConsumeResultExpectation\nconst consumeResult = {\n kind: \"rabbitmq:consume\",\n ok: true,\n message: { content: new Uint8Array() },\n duration: 0,\n} as unknown as RabbitMqConsumeResult;\nexpectRabbitMqResult(consumeResult).toBeOk().toHaveMessagePresent();\n\n// For queue result - returns RabbitMqQueueResultExpectation\nconst queueResult = {\n kind: \"rabbitmq:queue\",\n ok: true,\n queue: \"my-queue\",\n messageCount: 0,\n consumerCount: 0,\n duration: 0,\n} as unknown as RabbitMqQueueResult;\nexpectRabbitMqResult(queueResult).toBeOk().toHaveMessageCount(0);\n\n// For exchange result - returns RabbitMqExchangeResultExpectation\nconst exchangeResult = {\n kind: \"rabbitmq:exchange\",\n ok: true,\n duration: 0,\n} as unknown as RabbitMqExchangeResult;\nexpectRabbitMqResult(exchangeResult).toBeOk();\n\n// For ack result - returns RabbitMqAckResultExpectation\nconst ackResult = {\n kind: \"rabbitmq:ack\",\n ok: true,\n duration: 0,\n} as unknown as RabbitMqAckResult;\nexpectRabbitMqResult(ackResult).toBeOk();\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": "RabbitMqMessageProperties", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 16, - "col": 0, - "byteIndex": 292 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ message properties." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "contentType", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 17, - "col": 2, - "byteIndex": 339 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "contentEncoding", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 18, - "col": 2, - "byteIndex": 372 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 19, - "col": 2, - "byteIndex": 409 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + { + "id": 11484, + "name": "toHaveMd5OfBodyStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11485, + "name": "toHaveMd5OfBodyStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - "typeParams": [] - }, - { - "name": "deliveryMode", - "jsDoc": { - "doc": "1: non-persistent, 2: persistent" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 21, - "col": 2, - "byteIndex": 497 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "1", - "kind": "literal", - "literal": { - "kind": "number", - "number": 1 + "kind": "text", + "text": "Asserts that the MD5 of body strictly equals the expected value." } - }, + ] + }, + "parameters": [ { - "repr": "2", - "kind": "literal", - "literal": { - "kind": "number", - "number": 2 + "id": 11486, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected MD5 hash" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } - ] - }, - "typeParams": [] - }, - { - "name": "priority", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 22, - "col": 2, - "byteIndex": 530 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "correlationId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 23, - "col": 2, - "byteIndex": 560 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "replyTo", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 24, - "col": 2, - "byteIndex": 595 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "expiration", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 25, - "col": 2, - "byteIndex": 624 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 26, - "col": 2, - "byteIndex": 656 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "timestamp", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 27, - "col": 2, - "byteIndex": 687 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "type", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 28, - "col": 2, - "byteIndex": 718 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "userId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 29, - "col": 2, - "byteIndex": 744 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "appId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 30, - "col": 2, - "byteIndex": 772 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqMessageFields", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 36, - "col": 0, - "byteIndex": 836 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ message fields." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "deliveryTag", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 37, - "col": 2, - "byteIndex": 879 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - "typeParams": [] - }, - { - "name": "redelivered", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 38, - "col": 2, - "byteIndex": 911 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "exchange", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 39, - "col": 2, - "byteIndex": 944 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "routingKey", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 40, - "col": 2, - "byteIndex": 973 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqMessage", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 46, - "col": 0, - "byteIndex": 1034 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ message." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "content", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 47, - "col": 2, - "byteIndex": 1071 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - "typeParams": [] - }, - { - "name": "properties", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 48, - "col": 2, - "byteIndex": 1103 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqMessageProperties", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessageProperties" - } - }, - "typeParams": [] - }, - { - "name": "fields", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 49, - "col": 2, - "byteIndex": 1153 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqMessageFields", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessageFields" + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqConnectionConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 57, - "col": 0, - "byteIndex": 1311 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ connection configuration.\n\nExtends CommonConnectionConfig with RabbitMQ-specific options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonConnectionConfig" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "vhost", - "jsDoc": { - "doc": "Virtual host.", - "tags": [ + ] + }, + { + "id": 11457, + "name": "toHaveMessageId", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11458, + "name": "toHaveMessageId", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message ID equals the expected value." + } + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default \"/\"" + "id": 11459, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message ID" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 62, - "col": 2, - "byteIndex": 1437 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqClientConfig", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 68, - "col": 0, - "byteIndex": 1507 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ client configuration." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "url", - "jsDoc": { - "doc": "RabbitMQ connection URL or configuration object.\n", - "tags": [ - { - "kind": "example", - "doc": "String URL\n```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = { url: \"amqp://localhost:5672\" };\n```\n" - }, - { - "kind": "example", - "doc": "With credentials\n```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = {\n url: \"amqp://guest:guest@localhost:5672/%2F\",\n};\n```\n" - }, - { - "kind": "example", - "doc": "Config object\n```ts\nimport type { RabbitMqClientConfig } from \"@probitas-test/client-rabbitmq\";\nconst config: RabbitMqClientConfig = {\n url: { port: 5672, username: \"guest\", password: \"guest\", vhost: \"/\" },\n};\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 94, - "col": 2, - "byteIndex": 2350 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RabbitMqConnectionConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConnectionConfig" + ] + }, + { + "id": 11472, + "name": "toHaveMessageIdContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11473, + "name": "toHaveMessageIdContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message ID contains the specified substring." } - } - ] - }, - "typeParams": [] - }, - { - "name": "heartbeat", - "jsDoc": { - "doc": "Heartbeat interval in seconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 96, - "col": 2, - "byteIndex": 2440 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "prefetch", - "jsDoc": { - "doc": "Default prefetch count for channels" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 98, - "col": 2, - "byteIndex": 2516 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw errors instead of returning them in results.", - "tags": [ + ] + }, + "parameters": [ { - "kind": "unsupported", - "value": "@default false" + "id": 11474, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 103, - "col": 2, - "byteIndex": 2645 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 109, - "col": 0, - "byteIndex": 2730 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base options for RabbitMQ operations." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw errors instead of returning them in results.\nOverrides the client-level `throwOnError` setting." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 114, - "col": 2, - "byteIndex": 2924 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqExchangeOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 120, - "col": 0, - "byteIndex": 2989 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exchange options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" + ], + "type": { + "type": "intrinsic", + "name": "this" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "durable", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 121, - "col": 2, - "byteIndex": 3058 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "autoDelete", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 122, - "col": 2, - "byteIndex": 3088 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "internal", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 123, - "col": 2, - "byteIndex": 3121 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "arguments", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 124, - "col": 2, - "byteIndex": 3152 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 11460, + "name": "toHaveMessageIdEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11461, + "name": "toHaveMessageIdEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Asserts that the message ID equals the expected value using deep equality." + } + ] + }, + "parameters": [ + { + "id": 11462, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message ID" + } + ] }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": { + "type": "intrinsic", + "name": "unknown" } - ], - "typeName": "Record" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqQueueOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 130, - "col": 0, - "byteIndex": 3227 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Queue options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "durable", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 131, - "col": 2, - "byteIndex": 3293 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "exclusive", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 132, - "col": 2, - "byteIndex": 3323 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "autoDelete", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 133, - "col": 2, - "byteIndex": 3355 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "arguments", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 134, - "col": 2, - "byteIndex": 3388 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 11475, + "name": "toHaveMessageIdMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11476, + "name": "toHaveMessageIdMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Asserts that the message ID matches the specified regular expression." + } + ] + }, + "parameters": [ + { + "id": 11477, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" } - ], - "typeName": "Record" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "messageTtl", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 135, - "col": 2, - "byteIndex": 3436 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "maxLength", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 136, - "col": 2, - "byteIndex": 3468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "deadLetterExchange", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 137, - "col": 2, - "byteIndex": 3499 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "deadLetterRoutingKey", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 138, - "col": 2, - "byteIndex": 3539 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqPublishOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 144, - "col": 0, - "byteIndex": 3610 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Publish options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "persistent", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 145, - "col": 2, - "byteIndex": 3678 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "contentType", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 146, - "col": 2, - "byteIndex": 3711 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "contentEncoding", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 147, - "col": 2, - "byteIndex": 3744 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "headers", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 148, - "col": 2, - "byteIndex": 3781 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + { + "id": 11466, + "name": "toHaveMessageIdSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11467, + "name": "toHaveMessageIdSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "kind": "text", + "text": "Asserts that the message ID satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11468, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the message ID and performs assertions" + } + ] }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": { + "type": "reflection", + "declaration": { + "id": 11469, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11470, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11471, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } } - ], - "typeName": "Record" + } + ], + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "correlationId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 149, - "col": 2, - "byteIndex": 3827 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "replyTo", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 150, - "col": 2, - "byteIndex": 3862 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "expiration", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 151, - "col": 2, - "byteIndex": 3891 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "messageId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 152, - "col": 2, - "byteIndex": 3923 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "priority", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 153, - "col": 2, - "byteIndex": 3954 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqConsumeOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 159, - "col": 0, - "byteIndex": 4013 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Consume options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "noAck", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 160, - "col": 2, - "byteIndex": 4081 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "exclusive", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 161, - "col": 2, - "byteIndex": 4109 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "priority", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 162, - "col": 2, - "byteIndex": 4141 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqNackOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 168, - "col": 0, - "byteIndex": 4197 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Nack options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "requeue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 169, - "col": 2, - "byteIndex": 4262 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "allUpTo", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 170, - "col": 2, - "byteIndex": 4292 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqRejectOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 176, - "col": 0, - "byteIndex": 4350 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Reject options." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "requeue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 177, - "col": 2, - "byteIndex": 4417 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqExchangeType", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 183, - "col": 0, - "byteIndex": 4474 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exchange type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "direct", - "kind": "literal", - "literal": { - "kind": "string", - "string": "direct" - } - }, - { - "repr": "topic", - "kind": "literal", - "literal": { - "kind": "string", - "string": "topic" - } - }, - { - "repr": "fanout", - "kind": "literal", - "literal": { - "kind": "string", - "string": "fanout" - } - }, + ] + }, + { + "id": 11463, + "name": "toHaveMessageIdStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "headers", - "kind": "literal", - "literal": { - "kind": "string", - "string": "headers" + "id": 11464, + "name": "toHaveMessageIdStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the message ID strictly equals the expected value." + } + ] + }, + "parameters": [ + { + "id": 11465, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected message ID" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" } } ] }, - "typeParams": [] - } - }, - { - "name": "RabbitMqChannel", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 188, - "col": 0, - "byteIndex": 4592 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ channel interface." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } - } - ], - "constructors": [], - "methods": [ - { - "name": "assertExchange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 190, - "col": 2, - "byteIndex": 4667 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + { + "id": 11499, + "name": "toHaveSequenceNumber", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11500, + "name": "toHaveSequenceNumber", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the sequence number equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "type", - "optional": false, - "tsType": { - "repr": "RabbitMqExchangeType", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeType" + "parameters": [ + { + "id": 11501, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected sequence number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11514, + "name": "toHaveSequenceNumberContaining", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11515, + "name": "toHaveSequenceNumberContaining", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the sequence number contains the specified substring." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqExchangeOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeOptions" + "parameters": [ + { + "id": 11516, + "name": "substr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The substring to search for" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" - } + } + ] + }, + { + "id": 11502, + "name": "toHaveSequenceNumberEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11503, + "name": "toHaveSequenceNumberEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the sequence number equals the expected value using deep equality." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "deleteExchange", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 195, - "col": 2, - "byteIndex": 4812 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" + "parameters": [ + { + "id": 11504, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected sequence number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" - } + } + ] + }, + { + "id": 11517, + "name": "toHaveSequenceNumberMatching", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11518, + "name": "toHaveSequenceNumberMatching", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the sequence number matches the specified regular expression." } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "assertQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 201, - "col": 2, - "byteIndex": 4929 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqQueueOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueOptions" + "parameters": [ + { + "id": 11519, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The regular expression to match against" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" - } + } + ] + }, + { + "id": 11522, + "name": "toHaveSequenceNumberNull", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11523, + "name": "toHaveSequenceNumberNull", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the sequence number is null." } - ], - "typeName": "Promise" + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, - { - "name": "deleteQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 205, - "col": 2, - "byteIndex": 5033 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + } + ] + }, + { + "id": 11526, + "name": "toHaveSequenceNumberNullish", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11527, + "name": "toHaveSequenceNumberNullish", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the sequence number is nullish (null or undefined)." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11520, + "name": "toHaveSequenceNumberPresent", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11521, + "name": "toHaveSequenceNumberPresent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the sequence number is present (not null or undefined)." } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" + } + ] + }, + { + "id": 11508, + "name": "toHaveSequenceNumberSatisfying", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11509, + "name": "toHaveSequenceNumberSatisfying", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the sequence number satisfies the provided matcher function." + } + ] + }, + "parameters": [ + { + "id": 11510, + "name": "matcher", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that receives the sequence number and performs assertions" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11511, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11512, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11513, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] } } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "purgeQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 209, - "col": 2, - "byteIndex": 5132 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" } + ], + "type": { + "type": "intrinsic", + "name": "this" + } + } + ] + }, + { + "id": 11505, + "name": "toHaveSequenceNumberStrictEqual", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11506, + "name": "toHaveSequenceNumberStrictEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the sequence number strictly equals the expected value." + } + ] }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" + "parameters": [ + { + "id": 11507, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected sequence number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } } + ], + "type": { + "type": "intrinsic", + "name": "this" } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" - } + } + ] + }, + { + "id": 11524, + "name": "toHaveSequenceNumberUndefined", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 11525, + "name": "toHaveSequenceNumberUndefined", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that the sequence number is undefined." } - ], - "typeName": "Promise" + ] + }, + "type": { + "type": "intrinsic", + "name": "this" } - }, - "typeParams": [] - }, + } + ] + } + ] + }, + { + "id": 8263, + "name": "SqsSendResultFailure", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "bindQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 213, - "col": 2, - "byteIndex": 5230 - }, - "params": [ + "kind": "text", + "text": "Send result with connection failure." + } + ] + }, + "children": [ + { + "id": 8271, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.duration" + } + }, + { + "id": 8266, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "exchange", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`ok`" }, { - "kind": "identifier", - "name": "routingKey", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " is " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "unbindQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 219, - "col": 2, - "byteIndex": 5377 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsFailureError" }, - "params": [ + "name": "SqsFailureError", + "package": "@probitas-test/client-sqs" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.error" + } + }, + { + "id": 8270, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`kind`" }, { - "kind": "identifier", - "name": "exchange", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " property is typed as " }, { - "kind": "identifier", - "name": "routingKey", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`string`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "publish", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 227, - "col": 2, - "byteIndex": 5540 - }, - "params": [ + "type": { + "type": "literal", + "value": "sqs:send" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.kind" + } + }, + { + "id": 8268, + "name": "md5OfBody", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 8267, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 8265, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " + }, { - "kind": "identifier", - "name": "exchange", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`false`" }, { - "kind": "identifier", - "name": "routingKey", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": " when " }, { - "kind": "identifier", - "name": "content", - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - } + "kind": "code", + "text": "`processed`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqPublishOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqPublishResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResult" - } - } - ], - "typeName": "Promise" + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "sendToQueue", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 233, - "col": 2, - "byteIndex": 5697 - }, - "params": [ + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.ok" + } + }, + { + "id": 8264, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "content", - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqPublishOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqPublishResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - }, - "typeParams": [] + ] }, + "type": { + "type": "literal", + "value": false + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.processed" + } + }, + { + "id": 8269, + "name": "sequenceNumber", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": null + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsSendResultBase" + }, + "name": "SqsSendResultBase", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 8245, + "name": "SqsSendResultSuccess", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "get", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 240, - "col": 2, - "byteIndex": 5845 - }, - "params": [ + "kind": "text", + "text": "Successful send result." + } + ] + }, + "children": [ + { + "id": 8253, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "text", + "text": "Operation duration in milliseconds.\n\nMeasured from operation start to completion, useful for performance analysis\nand timeout monitoring." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.duration" + } + }, + { + "id": 8248, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that occurred during the operation (null if successful).\n\nContains the error when " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqConsumeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ". The specific error type depends\non the client kind (e.g., HttpError, GraphqlError, SqlError)." } - }, - "typeParams": [] + ] }, - { - "name": "consume", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 241, - "col": 2, - "byteIndex": 5926 - }, - "params": [ + "type": { + "type": "literal", + "value": null + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.error" + } + }, + { + "id": 8252, + "name": "kind", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result kind discriminator.\n\nThe " + }, { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "kind": "code", + "text": "`kind`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqConsumeOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeOptions" - } - } + "kind": "text", + "text": " property is typed as " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " to allow client-specific packages\nto define their own result kinds without modifying this core package.\nSubinterfaces can narrow the type using literal types with " + }, + { + "kind": "code", + "text": "`as const`" + }, + { + "kind": "text", + "text": "." } - ], - "optional": false, - "returnType": { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - } - ], - "typeName": "AsyncIterable" + ] + }, + "type": { + "type": "literal", + "value": "sqs:send" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.kind" + } + }, + { + "id": 8250, + "name": "md5OfBody", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MD5 hash of the message body (for integrity verification)." } - }, - "typeParams": [] + ] }, - { - "name": "ack", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 247, - "col": 2, - "byteIndex": 6041 - }, - "params": [ + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8249, + "name": "messageId", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - } + "kind": "text", + "text": "Unique identifier for the sent message." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8247, + "name": "ok", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation succeeded.\n\nFor HTTP responses, this corresponds to status 200-299.\nFor database operations, this indicates successful execution.\nAlways " }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOptions" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqAckResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResult" - } - } - ], - "typeName": "Promise" + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " is " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": "." } - }, - "typeParams": [] + ] }, - { - "name": "nack", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 251, - "col": 2, - "byteIndex": 6142 - }, - "params": [ + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.ok" + } + }, + { + "id": 8246, + "name": "processed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the operation was processed by the server.\n\n- " + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - } + "kind": "code", + "text": "`true`" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqNackOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqNackOptions" - } - } + "kind": "text", + "text": ": Server received and processed the request (success or error response)\n- " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": ": Request failed before reaching the server (network error, timeout, etc.)\n\nUse this to distinguish between \"server returned an error\" and \"couldn't reach server\"." } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqAckResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResult" - } - } - ], - "typeName": "Promise" + ] + }, + "type": { + "type": "literal", + "value": true + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "SqsSendResultBase.processed" + } + }, + { + "id": 8251, + "name": "sequenceNumber", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sequence number for FIFO queues (present only for FIFO queues)." } - }, - "typeParams": [] + ] }, - { - "name": "reject", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 255, - "col": 2, - "byteIndex": 6248 - }, - "params": [ + "type": { + "type": "union", + "types": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - } + "type": "intrinsic", + "name": "string" }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqRejectOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqRejectOptions" - } - } + "type": "literal", + "value": null } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqAckResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResult" - } - } - ], - "typeName": "Promise" + ] + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client-sqs", + "packagePath": "dist/result.d.ts", + "qualifiedName": "SqsSendResultBase" + }, + "name": "SqsSendResultBase", + "package": "@probitas-test/client-sqs" + } + ] + }, + { + "id": 6343, + "name": "TlsConfig", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "TLS configuration for ConnectRPC connections." + } + ] + }, + "children": [ + { + "id": 6345, + "name": "clientCert", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client certificate (PEM format)." } - }, - "typeParams": [] + ] }, - { - "name": "prefetch", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 261, - "col": 2, - "byteIndex": 6373 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" }, - "params": [ + "typeArguments": [ { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" } ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + "name": "Uint8Array", + "package": "typescript" + } + }, + { + "id": 6346, + "name": "clientKey", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client private key (PEM format)." } - }, - "typeParams": [] + ] }, - { - "name": "close", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 263, - "col": 2, - "byteIndex": 6416 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" } - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 269, - "col": 0, - "byteIndex": 6481 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "RabbitMQ client interface." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "AsyncDisposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AsyncDisposable" - } + ], + "name": "Uint8Array", + "package": "typescript" } - ], - "constructors": [], - "methods": [ - { - "name": "channel", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 272, - "col": 2, - "byteIndex": 6583 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqChannel", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqChannel" - } - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] + }, + { + "id": 6347, + "name": "insecure", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "close", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 274, - "col": 2, - "byteIndex": 6623 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Skip server certificate verification (use only for testing)." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "properties": [ - { - "name": "config", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/types.ts", - "line": 270, - "col": 2, - "byteIndex": 6541 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqClientConfig" + }, + { + "id": 6344, + "name": "rootCerts", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Root CA certificate (PEM format)." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" }, - "typeParams": [] + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "ArrayBufferLike" + }, + "name": "ArrayBufferLike", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "RabbitMqErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 143 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for RabbitMQ errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5532, + "name": "BodyInit", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } + "kind": "text", + "text": "Request body type." } - ], - "constructors": [], - "methods": [], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "name": "Uint8Array", + "package": "typescript" + }, { - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 11, - "col": 2, - "byteIndex": 206 + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "FormData" }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "name": "FormData", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "URLSearchParams" }, - "typeParams": [] + "name": "URLSearchParams", + "package": "typescript" + }, + { + "type": "intrinsic", + "name": "unknown" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 17, - "col": 0, - "byteIndex": 289 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for RabbitMQ client errors." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 6341, + "name": "ConnectProtocol", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - "right": "rabbitmq", - "tsType": null - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 21, - "col": 2, - "byteIndex": 419 - } + "kind": "text", + "text": "Protocol to use for ConnectRPC transport." } - ], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 18, - "col": 2, - "byteIndex": 340 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "code", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 19, - "col": 2, - "byteIndex": 392 - } + "type": "literal", + "value": "connect" + }, + { + "type": "literal", + "value": "grpc" + }, + { + "type": "literal", + "value": "grpc-web" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 34, - "col": 0, - "byteIndex": 673 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a RabbitMQ connection cannot be established." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 6446, + "name": "ConnectRpcErrorType", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 38, - "col": 2, - "byteIndex": 841 - } + "kind": "text", + "text": "ConnectRPC error type union.\n\nContains either:\n- ConnectRpcError: gRPC error returned by the server\n- ConnectRpcNetworkError: Network-level failure before reaching the server" } - ], - "properties": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 35, - "col": 2, - "byteIndex": 736 - } - }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 36, - "col": 2, - "byteIndex": 790 - } + "type": "reference", + "target": 6432, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" + }, + { + "type": "reference", + "target": 6419, + "name": "ConnectRpcNetworkError", + "package": "@probitas-test/client-connectrpc" } - ], - "indexSignatures": [], - "methods": [], - "extends": "RabbitMqError", - "implements": [], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqChannelErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 46, - "col": 0, - "byteIndex": 1002 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for RabbitMQ channel errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 6445, + "name": "ConnectRpcFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqErrorOptions" - } + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the server." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "channelId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 47, - "col": 2, - "byteIndex": 1080 + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 6419, + "name": "ConnectRpcNetworkError", + "package": "@probitas-test/client-connectrpc" + }, + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "name": "AbortError", + "package": "@probitas-test/client" + }, + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "typeParams": [] + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqChannelError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 53, - "col": 0, - "byteIndex": 1177 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a RabbitMQ channel operation fails." + "id": 9825, + "name": "ConnectRpcResponse", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC response union type.\n\nUse " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " to distinguish between server responses and failures:\n- " + }, + { + "kind": "code", + "text": "`processed === true`" + }, + { + "kind": "text", + "text": ": Server responded (Success or Error)\n- " + }, + { + "kind": "code", + "text": "`processed === false`" + }, + { + "kind": "text", + "text": ": Request failed (Failure)\n\nUse " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " to check for success:\n- " + }, + { + "kind": "code", + "text": "`ok === true`" + }, + { + "kind": "text", + "text": ": Success (statusCode === 0)\n- " + }, + { + "kind": "code", + "text": "`ok === false`" + }, + { + "kind": "text", + "text": ": Error or Failure" + } + ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "typeParameters": [ + { + "id": 9826, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "type": "reference", + "target": 9853, + "typeArguments": [ { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, + "type": "reference", + "target": 9826, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseSuccess", + "package": "@probitas-test/client-connectrpc" + }, + { + "type": "reference", + "target": 9827, + "typeArguments": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "RabbitMqChannelErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqChannelErrorOptions" - } - } + "type": "reference", + "target": 9826, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 58, - "col": 2, - "byteIndex": 1367 - } - } - ], - "properties": [ + "name": "ConnectRpcResponseError", + "package": "@probitas-test/client-connectrpc" + }, { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 54, - "col": 2, - "byteIndex": 1237 - } - }, - { - "tsType": { - "repr": "channel", - "kind": "literal", - "literal": { - "kind": "string", - "string": "channel" + "type": "reference", + "target": 9840, + "typeArguments": [ + { + "type": "reference", + "target": 9826, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 55, - "col": 2, - "byteIndex": 1288 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "channelId", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 56, - "col": 2, - "byteIndex": 1335 - } + ], + "name": "ConnectRpcResponseFailure", + "package": "@probitas-test/client-connectrpc" } - ], - "indexSignatures": [], - "methods": [], - "extends": "RabbitMqError", - "implements": [], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqNotFoundErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 67, - "col": 0, - "byteIndex": 1575 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for RabbitMQ not found errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 6414, + "name": "ConnectRpcStatusCode", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqErrorOptions" + "kind": "text", + "text": "ConnectRPC/gRPC status code type.\nDerived from ConnectRpcStatus values." + } + ] + }, + "type": { + "type": "indexedAccess", + "indexType": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "query", + "queryType": { + "type": "reference", + "target": 6395, + "name": "ConnectRpcStatus", + "package": "@probitas-test/client-connectrpc" } } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "resource", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 68, - "col": 2, - "byteIndex": 1654 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + }, + "objectType": { + "type": "query", + "queryType": { + "type": "reference", + "target": 6395, + "name": "ConnectRpcStatus", + "package": "@probitas-test/client-connectrpc" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + } } }, { - "name": "RabbitMqNotFoundError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 74, - "col": 0, - "byteIndex": 1767 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a RabbitMQ resource (queue or exchange) is not found." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 7471, + "name": "Document", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "RabbitMqNotFoundErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqNotFoundErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 79, - "col": 2, - "byteIndex": 1959 - } + "kind": "text", + "text": "MongoDB document type" } - ], - "properties": [ + ] + }, + "typeParameters": [ + { + "id": 7472, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 75, - "col": 2, - "byteIndex": 1828 - } - }, - { - "tsType": { - "repr": "not_found", - "kind": "literal", - "literal": { - "kind": "string", - "string": "not_found" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1880 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "resource", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 77, - "col": 2, - "byteIndex": 1929 - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": 7472, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } ], - "indexSignatures": [], - "methods": [], - "extends": "RabbitMqError", - "implements": [], - "typeParams": [], - "superTypeParams": [] + "name": "Record", + "package": "typescript" } }, { - "name": "RabbitMqPreconditionFailedErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 88, - "col": 0, - "byteIndex": 2176 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for RabbitMQ precondition failed errors." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 6340, + "name": "FileDescriptorSet", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqErrorOptions" - } + "kind": "text", + "text": "FileDescriptorSet message type from @bufbuild/protobuf.\nThis is the decoded protobuf message containing file descriptors." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "reason", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 90, - "col": 2, - "byteIndex": 2267 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/types.d.ts", + "qualifiedName": "MessageShape" + }, + "typeArguments": [ + { + "type": "query", + "queryType": { + "type": "reference", + "target": { + "packageName": "@bufbuild/protobuf", + "packagePath": "dist/esm/wkt/google/protobuf/descriptor_pb.d.ts", + "qualifiedName": "FileDescriptorSetSchema" + }, + "name": "FileDescriptorSetSchema", + "package": "@bufbuild/protobuf", + "preferValues": true + } } ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + "name": "MessageShape", + "package": "@bufbuild/protobuf" } }, { - "name": "RabbitMqPreconditionFailedError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 96, - "col": 0, - "byteIndex": 2361 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a RabbitMQ precondition check fails." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "id": 7473, + "name": "Filter", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "RabbitMqPreconditionFailedErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPreconditionFailedErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 101, - "col": 2, - "byteIndex": 2581 - } + "kind": "text", + "text": "MongoDB filter type (simplified for compatibility with mongodb driver)\nAllows query operators like $gte, $lt, $in, etc." } - ], - "properties": [ + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 97, - "col": 2, - "byteIndex": 2432 - } - }, - { - "tsType": { - "repr": "precondition_failed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "precondition_failed" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 98, - "col": 2, - "byteIndex": 2494 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "reason", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 99, - "col": 2, - "byteIndex": 2553 - } + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" } ], - "indexSignatures": [], - "methods": [], - "extends": "RabbitMqError", - "implements": [], - "typeParams": [], - "superTypeParams": [] + "name": "Record", + "package": "typescript" } }, { - "name": "RabbitMqOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 114, - "col": 0, - "byteIndex": 2903 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate a RabbitMQ operation error.\nThese are errors where the operation reached the server but failed." + "id": 6040, + "name": "GraphqlFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the GraphQL server." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqChannelError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqChannelError" - } - }, - { - "repr": "RabbitMqNotFoundError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqNotFoundError" - } + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 6033, + "name": "GraphqlNetworkError", + "package": "@probitas-test/client-graphql" + }, + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - { - "repr": "RabbitMqPreconditionFailedError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPreconditionFailedError" - } + "name": "AbortError", + "package": "@probitas-test/client" + }, + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - { - "repr": "RabbitMqError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqError" - } - } - ] - }, - "typeParams": [] + "name": "TimeoutError", + "package": "@probitas-test/client" + } + ] } }, { - "name": "RabbitMqFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/errors.ts", - "line": 124, - "col": 0, - "byteIndex": 3198 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the RabbitMQ server." + "id": 9784, + "name": "GraphqlResponse", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "GraphQL response union type.\n\nUse " + }, + { + "kind": "code", + "text": "`processed`" + }, + { + "kind": "text", + "text": " to distinguish between server responses and failures:\n- " + }, + { + "kind": "code", + "text": "`processed === true`" + }, + { + "kind": "text", + "text": ": Server responded (Success or Error)\n- " + }, + { + "kind": "code", + "text": "`processed === false`" + }, + { + "kind": "text", + "text": ": Request failed (Failure)\n\nUse " + }, + { + "kind": "code", + "text": "`ok`" + }, + { + "kind": "text", + "text": " to check for success:\n- " + }, + { + "kind": "code", + "text": "`ok === true`" + }, + { + "kind": "text", + "text": ": Success (no errors)\n- " + }, + { + "kind": "code", + "text": "`ok === false`" + }, + { + "kind": "text", + "text": ": Error or Failure" + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConnectionError" + "typeParameters": [ + { + "id": 9785, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9812, + "typeArguments": [ + { + "type": "reference", + "target": 9785, + "name": "T", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + ], + "name": "GraphqlResponseSuccess", + "package": "@probitas-test/client-graphql" + }, + { + "type": "reference", + "target": 9786, + "typeArguments": [ + { + "type": "reference", + "target": 9785, + "name": "T", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true } - }, - { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" + ], + "name": "GraphqlResponseError", + "package": "@probitas-test/client-graphql" + }, + { + "type": "reference", + "target": 9799, + "typeArguments": [ + { + "type": "reference", + "target": 9785, + "name": "T", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true } - } - ] - }, - "typeParams": [] + ], + "name": "GraphqlResponseFailure", + "package": "@probitas-test/client-graphql" + } + ] } }, { - "name": "RabbitMqPublishResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 19, - "col": 0, - "byteIndex": 586 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful publish result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5649, + "name": "HttpFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqPublishResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultBase" - } + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the request reaches the server." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 21, - "col": 2, - "byteIndex": 672 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 5642, + "name": "HttpNetworkError", + "package": "@probitas-test/client-http" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 22, - "col": 2, - "byteIndex": 700 + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + "name": "AbortError", + "package": "@probitas-test/client" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 23, - "col": 2, - "byteIndex": 721 + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqPublishResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 29, - "col": 0, - "byteIndex": 793 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Publish result with RabbitMQ error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 9731, + "name": "HttpResponse", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqPublishResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultBase" - } + "kind": "text", + "text": "HTTP response union type representing all possible response states.\n\n- **Success (2xx)**: " + }, + { + "kind": "code", + "text": "`processed: true, ok: true, error: null`" + }, + { + "kind": "text", + "text": "\n- **Error (4xx/5xx)**: " + }, + { + "kind": "code", + "text": "`processed: true, ok: false, error: HttpError`" + }, + { + "kind": "text", + "text": "\n- **Failure (network error)**: " + }, + { + "kind": "code", + "text": "`processed: false, ok: false, error: Error`" } ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 30, - "col": 2, - "byteIndex": 875 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, + "blockTags": [ { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 31, - "col": 2, - "byteIndex": 903 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "tag": "@example", + "name": "Type narrowing by ok", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.ok) {\n // TypeScript knows: HttpResponseSuccess\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseError | HttpResponseFailure\n console.log(response.error); // Error\n}\n```" } - }, - "typeParams": [] + ] }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 32, - "col": 2, - "byteIndex": 925 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" + "tag": "@example", + "name": "Type narrowing by processed", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.processed) {\n // TypeScript knows: HttpResponseSuccess | HttpResponseError\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseFailure\n console.log(response.error); // Error (network error)\n}\n```" } - }, - "typeParams": [] + ] } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqPublishResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 38, - "col": 0, - "byteIndex": 1019 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Publish result with connection failure." + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RabbitMqPublishResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultBase" - } + "typeParameters": [ + { + "id": 9732, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 40, - "col": 2, - "byteIndex": 1105 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9767, + "typeArguments": [ + { + "type": "reference", + "target": 9732, + "name": "T", + "package": "@probitas-test/client-http", + "refersToTypeParameter": true } - }, - "typeParams": [] + ], + "name": "HttpResponseSuccess", + "package": "@probitas-test/client-http" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 41, - "col": 2, - "byteIndex": 1134 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": "reference", + "target": 9733, + "typeArguments": [ + { + "type": "reference", + "target": 9732, + "name": "T", + "package": "@probitas-test/client-http", + "refersToTypeParameter": true } - }, - "typeParams": [] + ], + "name": "HttpResponseError", + "package": "@probitas-test/client-http" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 42, - "col": 2, - "byteIndex": 1156 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" + "type": "reference", + "target": 9750, + "typeArguments": [ + { + "type": "reference", + "target": 9732, + "name": "T", + "package": "@probitas-test/client-http", + "refersToTypeParameter": true } - }, - "typeParams": [] + ], + "name": "HttpResponseFailure", + "package": "@probitas-test/client-http" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqPublishResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 48, - "col": 0, - "byteIndex": 1224 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Publish result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqPublishResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultSuccess" - } - }, - { - "repr": "RabbitMqPublishResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultError" - } - }, - { - "repr": "RabbitMqPublishResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultFailure" - } - } - ] - }, - "typeParams": [] + ] } }, { - "name": "RabbitMqConsumeResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 68, - "col": 0, - "byteIndex": 1791 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful consume result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 6342, + "name": "HttpVersion", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqConsumeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultBase" - } + "kind": "text", + "text": "HTTP version for transport." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 70, - "col": 2, - "byteIndex": 1877 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 71, - "col": 2, - "byteIndex": 1905 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 72, - "col": 2, - "byteIndex": 1926 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "literal", + "value": "1.1" }, { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 73, - "col": 2, - "byteIndex": 1950 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + "type": "literal", + "value": "2" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqConsumeResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 79, - "col": 0, - "byteIndex": 2042 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Consume result with RabbitMQ error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 10903, + "name": "MongoCountResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqConsumeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultBase" - } + "kind": "text", + "text": "Count result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 80, - "col": 2, - "byteIndex": 2124 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 81, - "col": 2, - "byteIndex": 2152 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": "reference", + "target": 7784, + "name": "MongoCountResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 82, - "col": 2, - "byteIndex": 2174 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - }, - "typeParams": [] + "type": "reference", + "target": 7791, + "name": "MongoCountResultError", + "package": "@probitas-test/client-mongodb" }, { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 83, - "col": 2, - "byteIndex": 2216 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "reference", + "target": 7798, + "name": "MongoCountResultFailure", + "package": "@probitas-test/client-mongodb" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqConsumeResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 89, - "col": 0, - "byteIndex": 2294 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Consume result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 10904, + "name": "MongoDeleteResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqConsumeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultBase" - } + "kind": "text", + "text": "Delete result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 91, - "col": 2, - "byteIndex": 2380 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 92, - "col": 2, - "byteIndex": 2409 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": "reference", + "target": 7763, + "name": "MongoDeleteResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 93, - "col": 2, - "byteIndex": 2431 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "typeParams": [] + "type": "reference", + "target": 7770, + "name": "MongoDeleteResultError", + "package": "@probitas-test/client-mongodb" }, { - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 94, - "col": 2, - "byteIndex": 2471 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "reference", + "target": 7777, + "name": "MongoDeleteResultFailure", + "package": "@probitas-test/client-mongodb" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqConsumeResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 100, - "col": 0, - "byteIndex": 2552 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Consume result (single message retrieval)." + "id": 7456, + "name": "MongoExpectation", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Expectation type returned by expectMongoResult based on the result type." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqConsumeResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultSuccess" - } - }, + "typeParameters": [ + { + "id": 7457, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 10912, + "name": "MongoResult", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 7457, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 10908, + "typeArguments": [ { - "repr": "RabbitMqConsumeResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultError" - } - }, + "type": "inferred", + "name": "T" + } + ], + "name": "MongoFindResult", + "package": "@probitas-test/client-mongodb" + }, + "trueType": { + "type": "reference", + "target": 10520, + "typeArguments": [ { - "repr": "RabbitMqConsumeResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultFailure" - } + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "mongodb.ts", + "qualifiedName": "T" + }, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - ] + ], + "name": "MongoFindResultExpectation", + "package": "@probitas-test/expect" }, - "typeParams": [] + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 7457, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 10911, + "name": "MongoInsertOneResult", + "package": "@probitas-test/client-mongodb" + }, + "trueType": { + "type": "reference", + "target": 10713, + "name": "MongoInsertOneResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 7457, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 10910, + "name": "MongoInsertManyResult", + "package": "@probitas-test/client-mongodb" + }, + "trueType": { + "type": "reference", + "target": 10617, + "name": "MongoInsertManyResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 7457, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 10914, + "name": "MongoUpdateResult", + "package": "@probitas-test/client-mongodb" + }, + "trueType": { + "type": "reference", + "target": 10771, + "name": "MongoUpdateResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 7457, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 10904, + "name": "MongoDeleteResult", + "package": "@probitas-test/client-mongodb" + }, + "trueType": { + "type": "reference", + "target": 10367, + "name": "MongoDeleteResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 7457, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 10906, + "typeArguments": [ + { + "type": "inferred", + "name": "T" + } + ], + "name": "MongoFindOneResult", + "package": "@probitas-test/client-mongodb" + }, + "trueType": { + "type": "reference", + "target": 10437, + "typeArguments": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "mongodb.ts", + "qualifiedName": "T" + }, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "MongoFindOneResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 7457, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 10903, + "name": "MongoCountResult", + "package": "@probitas-test/client-mongodb" + }, + "trueType": { + "type": "reference", + "target": 10297, + "name": "MongoCountResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "intrinsic", + "name": "never" + } + } + } + } + } + } + } } }, { - "name": "RabbitMqAckResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 119, - "col": 0, - "byteIndex": 3055 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful ack result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 10905, + "name": "MongoFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqAckResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultBase" - } + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the MongoDB server." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 120, - "col": 2, - "byteIndex": 3131 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 7576, + "name": "MongoConnectionError", + "package": "@probitas-test/client-mongodb" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 121, - "col": 2, - "byteIndex": 3159 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "typeParams": [] + "name": "AbortError", + "package": "@probitas-test/client" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 122, - "col": 2, - "byteIndex": 3180 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "typeParams": [] + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqAckResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 128, - "col": 0, - "byteIndex": 3248 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Ack result with RabbitMQ error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 10906, + "name": "MongoFindOneResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqAckResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultBase" - } + "kind": "text", + "text": "FindOne result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 129, - "col": 2, - "byteIndex": 3322 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + ] + }, + "typeParameters": [ + { + "id": 10907, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 7471, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 7667, + "typeArguments": [ + { + "type": "reference", + "target": 10907, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "typeParams": [] + ], + "name": "MongoFindOneResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 130, - "col": 2, - "byteIndex": 3350 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": "reference", + "target": 7675, + "typeArguments": [ + { + "type": "reference", + "target": 10907, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "typeParams": [] + ], + "name": "MongoFindOneResultError", + "package": "@probitas-test/client-mongodb" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 131, - "col": 2, - "byteIndex": 3372 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" + "type": "reference", + "target": 7683, + "typeArguments": [ + { + "type": "reference", + "target": 10907, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "typeParams": [] + ], + "name": "MongoFindOneResultFailure", + "package": "@probitas-test/client-mongodb" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqAckResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 137, - "col": 0, - "byteIndex": 3462 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Ack result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 10908, + "name": "MongoFindResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqAckResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultBase" - } + "kind": "text", + "text": "Query result (find, aggregate)." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 138, - "col": 2, - "byteIndex": 3538 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "typeParameters": [ + { + "id": 10909, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": 7471, + "name": "Document", + "package": "@probitas-test/client-mongodb" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 7643, + "typeArguments": [ + { + "type": "reference", + "target": 10909, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "typeParams": [] + ], + "name": "MongoFindResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 139, - "col": 2, - "byteIndex": 3567 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "type": "reference", + "target": 7651, + "typeArguments": [ + { + "type": "reference", + "target": 10909, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "typeParams": [] + ], + "name": "MongoFindResultError", + "package": "@probitas-test/client-mongodb" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 140, - "col": 2, - "byteIndex": 3589 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" + "type": "reference", + "target": 7659, + "typeArguments": [ + { + "type": "reference", + "target": 10909, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "typeParams": [] + ], + "name": "MongoFindResultFailure", + "package": "@probitas-test/client-mongodb" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqAckResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 146, - "col": 0, - "byteIndex": 3658 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Ack/Nack result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqAckResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultSuccess" - } - }, - { - "repr": "RabbitMqAckResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultError" - } - }, - { - "repr": "RabbitMqAckResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultFailure" - } - } - ] - }, - "typeParams": [] + ] } }, { - "name": "RabbitMqQueueResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 168, - "col": 0, - "byteIndex": 4269 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful queue result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 10910, + "name": "MongoInsertManyResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultBase" - } + "kind": "text", + "text": "Insert many result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 169, - "col": 2, - "byteIndex": 4349 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 170, - "col": 2, - "byteIndex": 4377 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + "type": "reference", + "target": 7712, + "name": "MongoInsertManyResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 171, - "col": 2, - "byteIndex": 4398 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "reference", + "target": 7720, + "name": "MongoInsertManyResultError", + "package": "@probitas-test/client-mongodb" }, { - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 172, - "col": 2, - "byteIndex": 4422 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": "reference", + "target": 7728, + "name": "MongoInsertManyResultFailure", + "package": "@probitas-test/client-mongodb" + } + ] + } + }, + { + "id": 10911, + "name": "MongoInsertOneResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Insert one result." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 7691, + "name": "MongoInsertOneResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 173, - "col": 2, - "byteIndex": 4448 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": "reference", + "target": 7698, + "name": "MongoInsertOneResultError", + "package": "@probitas-test/client-mongodb" }, { - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 174, - "col": 2, - "byteIndex": 4481 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": "reference", + "target": 7705, + "name": "MongoInsertOneResultFailure", + "package": "@probitas-test/client-mongodb" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqQueueResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 180, - "col": 0, - "byteIndex": 4561 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Queue result with RabbitMQ error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 7642, + "name": "MongoOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultBase" - } + "kind": "text", + "text": "Error types that indicate a MongoDB operation error.\nThese are errors where the operation reached the server but failed." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 181, - "col": 2, - "byteIndex": 4639 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 7584, + "name": "MongoQueryError", + "package": "@probitas-test/client-mongodb" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 182, - "col": 2, - "byteIndex": 4667 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": "reference", + "target": 7594, + "name": "MongoDuplicateKeyError", + "package": "@probitas-test/client-mongodb" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 183, - "col": 2, - "byteIndex": 4689 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - }, - "typeParams": [] + "type": "reference", + "target": 7606, + "name": "MongoValidationError", + "package": "@probitas-test/client-mongodb" }, { - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 184, - "col": 2, - "byteIndex": 4731 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "reference", + "target": 7616, + "name": "MongoWriteError", + "package": "@probitas-test/client-mongodb" }, { - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 185, - "col": 2, - "byteIndex": 4755 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "reference", + "target": 7634, + "name": "MongoNotFoundError", + "package": "@probitas-test/client-mongodb" }, { - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 186, - "col": 2, - "byteIndex": 4786 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "reference", + "target": 7567, + "name": "MongoError", + "package": "@probitas-test/client-mongodb" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqQueueResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 192, - "col": 0, - "byteIndex": 4868 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Queue result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 10912, + "name": "MongoResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqQueueResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultBase" - } + "kind": "text", + "text": "Union of all MongoDB result types." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 193, - "col": 2, - "byteIndex": 4948 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "typeParameters": [ + { + "id": 10913, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 10908, + "typeArguments": [ + { + "type": "reference", + "target": 10913, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - }, - "typeParams": [] + ], + "name": "MongoFindResult", + "package": "@probitas-test/client-mongodb" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 194, - "col": 2, - "byteIndex": 4977 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": "reference", + "target": 10911, + "name": "MongoInsertOneResult", + "package": "@probitas-test/client-mongodb" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 195, - "col": 2, - "byteIndex": 4999 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "typeParams": [] + "type": "reference", + "target": 10910, + "name": "MongoInsertManyResult", + "package": "@probitas-test/client-mongodb" }, { - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 196, - "col": 2, - "byteIndex": 5039 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "reference", + "target": 10914, + "name": "MongoUpdateResult", + "package": "@probitas-test/client-mongodb" }, { - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 197, - "col": 2, - "byteIndex": 5063 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "reference", + "target": 10904, + "name": "MongoDeleteResult", + "package": "@probitas-test/client-mongodb" }, { - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 198, - "col": 2, - "byteIndex": 5094 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqQueueResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 204, - "col": 0, - "byteIndex": 5164 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Queue declaration result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultSuccess" - } - }, - { - "repr": "RabbitMqQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultError" - } - }, - { - "repr": "RabbitMqQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultFailure" + "type": "reference", + "target": 10906, + "typeArguments": [ + { + "type": "reference", + "target": 10913, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - } - ] - }, - "typeParams": [] + ], + "name": "MongoFindOneResult", + "package": "@probitas-test/client-mongodb" + }, + { + "type": "reference", + "target": 10903, + "name": "MongoCountResult", + "package": "@probitas-test/client-mongodb" + } + ] } }, { - "name": "RabbitMqExchangeResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 223, - "col": 0, - "byteIndex": 5684 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Successful exchange result." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 10914, + "name": "MongoUpdateResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqExchangeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultBase" - } + "kind": "text", + "text": "Update result." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 225, - "col": 2, - "byteIndex": 5772 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 7736, + "name": "MongoUpdateResultSuccess", + "package": "@probitas-test/client-mongodb" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 226, - "col": 2, - "byteIndex": 5800 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] + "type": "reference", + "target": 7745, + "name": "MongoUpdateResultError", + "package": "@probitas-test/client-mongodb" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 227, - "col": 2, - "byteIndex": 5821 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + "type": "reference", + "target": 7754, + "name": "MongoUpdateResultFailure", + "package": "@probitas-test/client-mongodb" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqExchangeResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 233, - "col": 0, - "byteIndex": 5894 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exchange result with RabbitMQ error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5534, + "name": "QueryParams", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqExchangeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultBase" - } + "kind": "text", + "text": "Query parameters type - accepts URLSearchParams or plain object." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 235, - "col": 2, - "byteIndex": 5980 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 236, - "col": 2, - "byteIndex": 6008 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "URLSearchParams" }, - "typeParams": [] + "name": "URLSearchParams", + "package": "typescript" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 6030 + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "union", + "types": [ + { + "type": "reference", + "target": 5531, + "name": "QueryValue", + "package": "@probitas-test/client-http" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": 5531, + "name": "QueryValue", + "package": "@probitas-test/client-http" + } + } + ] } - }, - "typeParams": [] + ], + "name": "Record", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "RabbitMqExchangeResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 243, - "col": 0, - "byteIndex": 6125 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exchange result with connection failure." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 5531, + "name": "QueryValue", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "RabbitMqExchangeResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultBase" - } + "kind": "text", + "text": "Query parameter value type." } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 245, - "col": 2, - "byteIndex": 6213 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" }, { - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 246, - "col": 2, - "byteIndex": 6242 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] + "type": "intrinsic", + "name": "number" }, { - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 247, - "col": 2, - "byteIndex": 6264 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "typeParams": [] + "type": "intrinsic", + "name": "boolean" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqExchangeResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 253, - "col": 0, - "byteIndex": 6345 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exchange declaration result." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqExchangeResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultSuccess" - } - }, - { - "repr": "RabbitMqExchangeResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultError" - } - }, - { - "repr": "RabbitMqExchangeResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultFailure" - } - } - ] - }, - "typeParams": [] - } - }, - { - "name": "RabbitMqResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 265, - "col": 0, - "byteIndex": 6706 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union of all RabbitMQ result types." - }, - "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": "RabbitMqPublishResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 280, - "col": 0, - "byteIndex": 7135 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqPublishResultSuccess.", - "tags": [ + "id": 8980, + "name": "RabbitMqAckResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Ack/Nack result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 288, - "col": 2, - "byteIndex": 7398 - } - } - ], - "properties": [ + "type": "reference", + "target": 8962, + "name": "RabbitMqAckResultSuccess", + "package": "@probitas-test/client-rabbitmq" + }, { - "tsType": { - "repr": "rabbitmq:publish", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:publish" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 282, - "col": 2, - "byteIndex": 7227 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 283, - "col": 2, - "byteIndex": 7274 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 284, - "col": 2, - "byteIndex": 7312 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 285, - "col": 2, - "byteIndex": 7343 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 286, - "col": 2, - "byteIndex": 7368 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 8968, + "name": "RabbitMqAckResultError", + "package": "@probitas-test/client-rabbitmq" + }, { - "repr": "RabbitMqPublishResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultSuccess" - } + "type": "reference", + "target": 8974, + "name": "RabbitMqAckResultFailure", + "package": "@probitas-test/client-rabbitmq" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqPublishResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 297, - "col": 0, - "byteIndex": 7544 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqPublishResultError.", - "tags": [ + "id": 8961, + "name": "RabbitMqConsumeResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Consume result (single message retrieval)." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 305, - "col": 2, - "byteIndex": 7821 - } - } - ], - "properties": [ + "type": "reference", + "target": 8940, + "name": "RabbitMqConsumeResultSuccess", + "package": "@probitas-test/client-rabbitmq" + }, { - "tsType": { - "repr": "rabbitmq:publish", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:publish" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 299, - "col": 2, - "byteIndex": 7632 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 300, - "col": 2, - "byteIndex": 7679 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 301, - "col": 2, - "byteIndex": 7717 - } - }, - { - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 302, - "col": 2, - "byteIndex": 7749 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 303, - "col": 2, - "byteIndex": 7791 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 8947, + "name": "RabbitMqConsumeResultError", + "package": "@probitas-test/client-rabbitmq" + }, { - "repr": "RabbitMqPublishResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultError" - } + "type": "reference", + "target": 8954, + "name": "RabbitMqConsumeResultFailure", + "package": "@probitas-test/client-rabbitmq" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqPublishResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 315, - "col": 0, - "byteIndex": 8024 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqPublishResultFailure.", - "tags": [ + "id": 9027, + "name": "RabbitMqExchangeResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Exchange declaration result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 323, - "col": 2, - "byteIndex": 8304 - } - } - ], - "properties": [ + "type": "reference", + "target": 9009, + "name": "RabbitMqExchangeResultSuccess", + "package": "@probitas-test/client-rabbitmq" + }, { - "tsType": { - "repr": "rabbitmq:publish", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:publish" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 317, - "col": 2, - "byteIndex": 8116 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 318, - "col": 2, - "byteIndex": 8163 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 319, - "col": 2, - "byteIndex": 8202 - } - }, - { - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 320, - "col": 2, - "byteIndex": 8234 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 321, - "col": 2, - "byteIndex": 8274 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 9015, + "name": "RabbitMqExchangeResultError", + "package": "@probitas-test/client-rabbitmq" + }, { - "repr": "RabbitMqPublishResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultFailure" - } + "type": "reference", + "target": 9021, + "name": "RabbitMqExchangeResultFailure", + "package": "@probitas-test/client-rabbitmq" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqConsumeResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 333, - "col": 0, - "byteIndex": 8505 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqConsumeResultSuccess.", - "tags": [ + "id": 8787, + "name": "RabbitMqExchangeType", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Exchange type." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 342, - "col": 2, - "byteIndex": 8812 - } - } - ], - "properties": [ + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "rabbitmq:consume", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:consume" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 335, - "col": 2, - "byteIndex": 8597 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 336, - "col": 2, - "byteIndex": 8644 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 337, - "col": 2, - "byteIndex": 8682 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 338, - "col": 2, - "byteIndex": 8713 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessage" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 339, - "col": 2, - "byteIndex": 8738 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 340, - "col": 2, - "byteIndex": 8782 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "literal", + "value": "direct" + }, { - "repr": "RabbitMqConsumeResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultSuccess" - } + "type": "literal", + "value": "topic" + }, + { + "type": "literal", + "value": "fanout" + }, + { + "type": "literal", + "value": "headers" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqConsumeResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 352, - "col": 0, - "byteIndex": 9019 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqConsumeResultError.", - "tags": [ + "id": 8686, + "name": "RabbitMqExpectation", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Expectation type returned by expectRabbitMqResult based on the result type." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 361, - "col": 2, - "byteIndex": 9323 - } + "typeParameters": [ + { + "id": 8687, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 9028, + "name": "RabbitMqResult", + "package": "@probitas-test/client-rabbitmq" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:consume", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:consume" - } + } + ], + "type": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8687, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 8961, + "name": "RabbitMqConsumeResult", + "package": "@probitas-test/client-rabbitmq" + }, + "trueType": { + "type": "reference", + "target": 11639, + "name": "RabbitMqConsumeResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8687, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 9008, + "name": "RabbitMqQueueResult", + "package": "@probitas-test/client-rabbitmq" + }, + "trueType": { + "type": "reference", + "target": 11851, + "name": "RabbitMqQueueResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8687, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 354, - "col": 2, - "byteIndex": 9107 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } + "extendsType": { + "type": "reference", + "target": 8939, + "name": "RabbitMqPublishResult", + "package": "@probitas-test/client-rabbitmq" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 355, - "col": 2, - "byteIndex": 9154 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } + "trueType": { + "type": "reference", + "target": 11814, + "name": "RabbitMqPublishResultExpectation", + "package": "@probitas-test/expect" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 356, - "col": 2, - "byteIndex": 9192 - } - }, - { - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8687, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 9027, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" + }, + "trueType": { + "type": "reference", + "target": 11777, + "name": "RabbitMqExchangeResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8687, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 8980, + "name": "RabbitMqAckResult", + "package": "@probitas-test/client-rabbitmq" + }, + "trueType": { + "type": "reference", + "target": 11602, + "name": "RabbitMqAckResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "intrinsic", + "name": "never" + } } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 357, - "col": 2, - "byteIndex": 9224 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 358, - "col": 2, - "byteIndex": 9266 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 359, - "col": 2, - "byteIndex": 9293 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqConsumeResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultError" } } - ], - "typeParams": [], - "superTypeParams": [] + } } }, { - "name": "RabbitMqConsumeResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 371, - "col": 0, - "byteIndex": 9526 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqConsumeResultFailure.", - "tags": [ + "id": 8920, + "name": "RabbitMqFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the RabbitMQ server." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 380, - "col": 2, - "byteIndex": 9833 - } - } - ], - "properties": [ + "type": { + "type": "union", + "types": [ { - "tsType": { - "repr": "rabbitmq:consume", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:consume" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 373, - "col": 2, - "byteIndex": 9618 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 374, - "col": 2, - "byteIndex": 9665 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 375, - "col": 2, - "byteIndex": 9704 - } - }, - { - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 376, - "col": 2, - "byteIndex": 9736 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "message", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 377, - "col": 2, - "byteIndex": 9776 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 378, - "col": 2, - "byteIndex": 9803 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 8875, + "name": "RabbitMqConnectionError", + "package": "@probitas-test/client-rabbitmq" + }, { - "repr": "RabbitMqConsumeResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultFailure" - } + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" + }, + "name": "AbortError", + "package": "@probitas-test/client" + }, + { + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" + }, + "name": "TimeoutError", + "package": "@probitas-test/client" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqAckResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 390, - "col": 0, - "byteIndex": 10030 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqAckResultSuccess.", - "tags": [ + "id": 8919, + "name": "RabbitMqOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Error types that indicate a RabbitMQ operation error.\nThese are errors where the operation reached the server but failed." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 397, - "col": 2, - "byteIndex": 10279 - } - } - ], - "properties": [ + "type": "reference", + "target": 8886, + "name": "RabbitMqChannelError", + "package": "@probitas-test/client-rabbitmq" + }, { - "tsType": { - "repr": "rabbitmq:ack", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:ack" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 391, - "col": 2, - "byteIndex": 10112 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 392, - "col": 2, - "byteIndex": 10155 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 393, - "col": 2, - "byteIndex": 10193 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 394, - "col": 2, - "byteIndex": 10224 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 395, - "col": 2, - "byteIndex": 10249 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 8898, + "name": "RabbitMqNotFoundError", + "package": "@probitas-test/client-rabbitmq" + }, { - "repr": "RabbitMqAckResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultSuccess" - } + "type": "reference", + "target": 8910, + "name": "RabbitMqPreconditionFailedError", + "package": "@probitas-test/client-rabbitmq" + }, + { + "type": "reference", + "target": 8866, + "name": "RabbitMqError", + "package": "@probitas-test/client-rabbitmq" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqAckResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 406, - "col": 0, - "byteIndex": 10421 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqAckResultError.", - "tags": [ + "id": 8939, + "name": "RabbitMqPublishResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Publish result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 413, - "col": 2, - "byteIndex": 10684 - } - } - ], - "properties": [ + "type": "reference", + "target": 8921, + "name": "RabbitMqPublishResultSuccess", + "package": "@probitas-test/client-rabbitmq" + }, { - "tsType": { - "repr": "rabbitmq:ack", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:ack" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 407, - "col": 2, - "byteIndex": 10499 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 408, - "col": 2, - "byteIndex": 10542 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 409, - "col": 2, - "byteIndex": 10580 - } - }, - { - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 410, - "col": 2, - "byteIndex": 10612 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 411, - "col": 2, - "byteIndex": 10654 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 8927, + "name": "RabbitMqPublishResultError", + "package": "@probitas-test/client-rabbitmq" + }, { - "repr": "RabbitMqAckResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultError" - } + "type": "reference", + "target": 8933, + "name": "RabbitMqPublishResultFailure", + "package": "@probitas-test/client-rabbitmq" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqAckResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 423, - "col": 0, - "byteIndex": 10883 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqAckResultFailure.", - "tags": [ + "id": 9008, + "name": "RabbitMqQueueResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Queue declaration result." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 430, - "col": 2, - "byteIndex": 11149 - } - } - ], - "properties": [ + "type": "reference", + "target": 8981, + "name": "RabbitMqQueueResultSuccess", + "package": "@probitas-test/client-rabbitmq" + }, { - "tsType": { - "repr": "rabbitmq:ack", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:ack" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 424, - "col": 2, - "byteIndex": 10965 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 425, - "col": 2, - "byteIndex": 11008 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 426, - "col": 2, - "byteIndex": 11047 - } - }, - { - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 427, - "col": 2, - "byteIndex": 11079 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 428, - "col": 2, - "byteIndex": 11119 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 8990, + "name": "RabbitMqQueueResultError", + "package": "@probitas-test/client-rabbitmq" + }, { - "repr": "RabbitMqAckResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultFailure" - } + "type": "reference", + "target": 8999, + "name": "RabbitMqQueueResultFailure", + "package": "@probitas-test/client-rabbitmq" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqQueueResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 440, - "col": 0, - "byteIndex": 11348 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqQueueResultSuccess.", - "tags": [ + "id": 9028, + "name": "RabbitMqResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Union of all RabbitMQ result types." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "queue", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "messageCount", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "consumerCount", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 451, - "col": 2, - "byteIndex": 11698 - } - } - ], - "properties": [ + "type": "reference", + "target": 8939, + "name": "RabbitMqPublishResult", + "package": "@probitas-test/client-rabbitmq" + }, { - "tsType": { - "repr": "rabbitmq:queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 442, - "col": 2, - "byteIndex": 11436 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 443, - "col": 2, - "byteIndex": 11481 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 444, - "col": 2, - "byteIndex": 11519 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 445, - "col": 2, - "byteIndex": 11550 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 446, - "col": 2, - "byteIndex": 11575 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 447, - "col": 2, - "byteIndex": 11601 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 448, - "col": 2, - "byteIndex": 11634 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 449, - "col": 2, - "byteIndex": 11668 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 8961, + "name": "RabbitMqConsumeResult", + "package": "@probitas-test/client-rabbitmq" + }, { - "repr": "RabbitMqQueueResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultSuccess" - } + "type": "reference", + "target": 8980, + "name": "RabbitMqAckResult", + "package": "@probitas-test/client-rabbitmq" + }, + { + "type": "reference", + "target": 9008, + "name": "RabbitMqQueueResult", + "package": "@probitas-test/client-rabbitmq" + }, + { + "type": "reference", + "target": 9027, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqQueueResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 468, - "col": 0, - "byteIndex": 12025 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqQueueResultError.", - "tags": [ + "id": 5533, + "name": "RedirectMode", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Redirect handling mode.\n- \"follow\": Automatically follow redirects (default)\n- \"manual\": Return redirect response without following\n- \"error\": Throw error on redirect" } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 478, - "col": 2, - "byteIndex": 12384 - } - } - ], - "properties": [ + "type": "literal", + "value": "follow" + }, { - "tsType": { - "repr": "rabbitmq:queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 469, - "col": 2, - "byteIndex": 12107 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 470, - "col": 2, - "byteIndex": 12152 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 471, - "col": 2, - "byteIndex": 12190 - } - }, - { - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 472, - "col": 2, - "byteIndex": 12222 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 473, - "col": 2, - "byteIndex": 12264 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 474, - "col": 2, - "byteIndex": 12289 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 475, - "col": 2, - "byteIndex": 12321 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 476, - "col": 2, - "byteIndex": 12354 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "literal", + "value": "manual" + }, { - "repr": "RabbitMqQueueResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultError" - } + "type": "literal", + "value": "error" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqQueueResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 488, - "col": 0, - "byteIndex": 12585 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqQueueResultFailure.", - "tags": [ + "id": 7145, + "name": "RedisArrayResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Redis array result (LRANGE, SMEMBERS, etc.)." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "typeParameters": [ + { + "id": 7146, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - } - }, + "type": "reference", + "target": 7121, + "typeArguments": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "reference", + "target": 7146, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 499, - "col": 2, - "byteIndex": 12949 - } - } - ], - "properties": [ + "name": "RedisArrayResultSuccess", + "package": "@probitas-test/client-redis" + }, { - "tsType": { - "repr": "rabbitmq:queue", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:queue" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 490, - "col": 2, - "byteIndex": 12673 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 491, - "col": 2, - "byteIndex": 12718 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 492, - "col": 2, - "byteIndex": 12757 - } - }, - { - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" + "type": "reference", + "target": 7129, + "typeArguments": [ + { + "type": "reference", + "target": 7146, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 493, - "col": 2, - "byteIndex": 12789 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "queue", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 494, - "col": 2, - "byteIndex": 12829 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "messageCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 495, - "col": 2, - "byteIndex": 12854 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "consumerCount", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 496, - "col": 2, - "byteIndex": 12886 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 497, - "col": 2, - "byteIndex": 12919 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + ], + "name": "RedisArrayResultError", + "package": "@probitas-test/client-redis" + }, { - "repr": "RabbitMqQueueResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultFailure" - } + "type": "reference", + "target": 7137, + "typeArguments": [ + { + "type": "reference", + "target": 7146, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true + } + ], + "name": "RedisArrayResultFailure", + "package": "@probitas-test/client-redis" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqExchangeResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 509, - "col": 0, - "byteIndex": 13151 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqExchangeResultSuccess.", - "tags": [ + "id": 7193, + "name": "RedisCommonResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Redis operation result (common/generic).\n\nUsed for operations without a more specific result type." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "typeParameters": [ + { + "id": 7194, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "type": "reference", + "target": 7169, + "typeArguments": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "reference", + "target": 7194, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 517, - "col": 2, - "byteIndex": 13417 - } - } - ], - "properties": [ + "name": "RedisCommonResultSuccess", + "package": "@probitas-test/client-redis" + }, { - "tsType": { - "repr": "rabbitmq:exchange", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:exchange" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 511, - "col": 2, - "byteIndex": 13245 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 512, - "col": 2, - "byteIndex": 13293 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + "type": "reference", + "target": 7177, + "typeArguments": [ + { + "type": "reference", + "target": 7194, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 513, - "col": 2, - "byteIndex": 13331 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 514, - "col": 2, - "byteIndex": 13362 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 515, - "col": 2, - "byteIndex": 13387 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + ], + "name": "RedisCommonResultError", + "package": "@probitas-test/client-redis" + }, { - "repr": "RabbitMqExchangeResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultSuccess" - } + "type": "reference", + "target": 7185, + "typeArguments": [ + { + "type": "reference", + "target": 7194, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true + } + ], + "name": "RedisCommonResultFailure", + "package": "@probitas-test/client-redis" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqExchangeResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 526, - "col": 0, - "byteIndex": 13564 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqExchangeResultError.", - "tags": [ + "id": 7120, + "name": "RedisCountResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Redis numeric result (DEL, LPUSH, SADD, etc.)." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "type": { + "type": "union", + "types": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 534, - "col": 2, - "byteIndex": 13844 - } - } - ], - "properties": [ + "type": "reference", + "target": 7099, + "name": "RedisCountResultSuccess", + "package": "@probitas-test/client-redis" + }, { - "tsType": { - "repr": "rabbitmq:exchange", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:exchange" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 528, - "col": 2, - "byteIndex": 13654 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 529, - "col": 2, - "byteIndex": 13702 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 530, - "col": 2, - "byteIndex": 13740 - } - }, - { - "tsType": { - "repr": "RabbitMqOperationError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqOperationError" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 531, - "col": 2, - "byteIndex": 13772 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 532, - "col": 2, - "byteIndex": 13814 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ + "type": "reference", + "target": 7106, + "name": "RedisCountResultError", + "package": "@probitas-test/client-redis" + }, { - "repr": "RabbitMqExchangeResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultError" - } + "type": "reference", + "target": 7113, + "name": "RedisCountResultFailure", + "package": "@probitas-test/client-redis" } - ], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "RabbitMqExchangeResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 544, - "col": 0, - "byteIndex": 14048 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation class for RabbitMqExchangeResultFailure.", - "tags": [ + "id": 6805, + "name": "RedisExpectation", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "Expectation type returned by expectRedisResult based on the result type." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" - } - } - }, - { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 552, - "col": 2, - "byteIndex": 14331 - } + "typeParameters": [ + { + "id": 6806, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 7195, + "name": "RedisResult", + "package": "@probitas-test/client-redis" } - ], - "properties": [ - { - "tsType": { - "repr": "rabbitmq:exchange", - "kind": "literal", - "literal": { - "kind": "string", - "string": "rabbitmq:exchange" - } + } + ], + "type": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 6806, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + }, + "trueType": { + "type": "reference", + "target": 10027, + "name": "RedisCountResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 6806, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 7145, + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" + }, + "trueType": { + "type": "reference", + "target": 9879, + "name": "RedisArrayResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 6806, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 546, - "col": 2, - "byteIndex": 14142 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } + "extendsType": { + "type": "reference", + "target": 7076, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 547, - "col": 2, - "byteIndex": 14190 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } + "trueType": { + "type": "reference", + "target": 10097, + "name": "RedisGetResultExpectation", + "package": "@probitas-test/expect" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 548, - "col": 2, - "byteIndex": 14229 - } - }, - { - "tsType": { - "repr": "RabbitMqFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqFailureError" + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 6806, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 7098, + "name": "RedisSetResult", + "package": "@probitas-test/client-redis" + }, + "trueType": { + "type": "reference", + "target": 10237, + "name": "RedisSetResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 6806, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 7168, + "name": "RedisHashResult", + "package": "@probitas-test/client-redis" + }, + "trueType": { + "type": "reference", + "target": 10163, + "name": "RedisHashResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 6806, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 7193, + "name": "RedisCommonResult", + "package": "@probitas-test/client-redis" + }, + "trueType": { + "type": "reference", + "target": 9975, + "name": "RedisCommonResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "intrinsic", + "name": "never" + } + } } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 549, - "col": 2, - "byteIndex": 14261 - } - }, - { - "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-rabbitmq/0.5.1/result.ts", - "line": 550, - "col": 2, - "byteIndex": 14301 } } - ], - "indexSignatures": [], - "methods": [], - "extends": null, - "implements": [ - { - "repr": "RabbitMqExchangeResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultFailure" - } - } - ], - "typeParams": [], - "superTypeParams": [] + } } }, { - "name": "createRabbitMqClient", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/client.ts", - "line": 416, - "col": 0, - "byteIndex": 11698 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new RabbitMQ client instance.\n\nThe client provides queue and exchange management, message publishing\nand consumption, and acknowledgment handling via AMQP protocol.\n", - "tags": [ + "id": 10295, + "name": "RedisFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "param", - "name": "config", - "doc": "- RabbitMQ client configuration" - }, + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the Redis server." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "kind": "return", - "doc": "A promise resolving to a new RabbitMQ client instance\n" + "type": "reference", + "target": 7417, + "name": "RedisConnectionError", + "package": "@probitas-test/client-redis" }, { - "kind": "example", - "doc": "Basic usage with string URL\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({\n url: \"amqp://guest:guest@localhost:5672\",\n});\n\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\", { durable: true });\n\nconst content = new TextEncoder().encode(JSON.stringify({ type: \"ORDER\" }));\nawait channel.sendToQueue(\"my-queue\", content, { persistent: true });\n\nawait channel.close();\nawait rabbit.close();\n```\n" + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" + }, + "name": "AbortError", + "package": "@probitas-test/client" }, { - "kind": "example", - "doc": "With connection config object\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({\n url: {\n host: \"localhost\",\n port: 5672,\n username: \"guest\",\n password: \"guest\",\n vhost: \"/\",\n },\n});\n\nawait rabbit.close();\n```\n" - }, + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" + }, + "name": "TimeoutError", + "package": "@probitas-test/client" + } + ] + } + }, + { + "id": 7076, + "name": "RedisGetResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Exchange and binding\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\n\n// Create exchange and queue\nawait channel.assertExchange(\"events\", \"topic\", { durable: true });\nawait channel.assertQueue(\"user-events\");\nawait channel.bindQueue(\"user-events\", \"events\", \"user.*\");\n\n// Publish to exchange\nconst content = new TextEncoder().encode(JSON.stringify({ id: 1 }));\nawait channel.publish(\"events\", \"user.created\", content);\n\nawait rabbit.close();\n```\n" - }, + "kind": "text", + "text": "Redis GET result." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "kind": "example", - "doc": "Consuming messages\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\");\n\nfor await (const message of channel.consume(\"my-queue\")) {\n console.log(\"Received:\", new TextDecoder().decode(message.content));\n await channel.ack(message);\n break;\n}\n\nawait rabbit.close();\n```\n" + "type": "reference", + "target": 7055, + "name": "RedisGetResultSuccess", + "package": "@probitas-test/client-redis" }, { - "kind": "example", - "doc": "Get single message (polling)\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\");\n\nconst result = await channel.get(\"my-queue\");\nif (result.message) {\n await channel.ack(result.message);\n}\n\nawait rabbit.close();\n```\n" + "type": "reference", + "target": 7062, + "name": "RedisGetResultError", + "package": "@probitas-test/client-redis" }, { - "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nawait using rabbit = await createRabbitMqClient({\n url: \"amqp://localhost:5672\",\n});\n\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"test\");\n// Client automatically closed when scope exits\n```" + "type": "reference", + "target": 7069, + "name": "RedisGetResultFailure", + "package": "@probitas-test/client-redis" } ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "config", - "optional": false, - "tsType": { - "repr": "RabbitMqClientConfig", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqClientConfig" - } - } - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqClient", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqClient" - } - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] } }, { - "name": "SqlQueryResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 12, - "col": 0, - "byteIndex": 342 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation interface for SQL query results.\nAll methods return `this` for chaining." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "toBeOk", - "jsDoc": { - "doc": "Asserts that the result is successful.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { SqlQueryResult } from \"@probitas-test/client-sql\";\nimport { expectSqlQueryResult } from \"./sql.ts\";\nconst result = {\n kind: \"sql\",\n ok: true,\n rows: [],\n rowCount: 0,\n duration: 0,\n map: () => [],\n as: () => [],\n} as unknown as SqlQueryResult;\n\nexpectSqlQueryResult(result).toBeOk();\n```" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 56, - "col": 2, - "byteIndex": 1391 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "toHaveRows", - "jsDoc": { - "doc": "Asserts that the rows equal the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected rows value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 62, - "col": 2, - "byteIndex": 1522 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "id": 7168, + "name": "RedisHashResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveRowsEqual", - "jsDoc": { - "doc": "Asserts that the rows equal the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected rows value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 68, - "col": 2, - "byteIndex": 1694 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "kind": "text", + "text": "Redis hash result (HGETALL)." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "toHaveRowsStrictEqual", - "jsDoc": { - "doc": "Asserts that the rows strictly equal the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected rows value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 74, - "col": 2, - "byteIndex": 1860 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 7147, + "name": "RedisHashResultSuccess", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowsSatisfying", - "jsDoc": { - "doc": "Asserts that the rows satisfy the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the rows and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 80, - "col": 2, - "byteIndex": 2069 - }, - "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": "SqlRows", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlRows" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 7154, + "name": "RedisHashResultError", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowsContaining", - "jsDoc": { - "doc": "Asserts that the rows array contains the specified item.", - "tags": [ - { - "kind": "param", - "name": "item", - "doc": "- The item to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 86, - "col": 2, - "byteIndex": 2251 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "type": "reference", + "target": 7161, + "name": "RedisHashResultFailure", + "package": "@probitas-test/client-redis" + } + ] + } + }, + { + "id": 10296, + "name": "RedisOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveRowsContainingEqual", - "jsDoc": { - "doc": "Asserts that the rows array contains an item equal to the specified value.", - "tags": [ - { - "kind": "param", - "name": "item", - "doc": "- The item to search for using deep equality" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 92, - "col": 2, - "byteIndex": 2451 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "kind": "text", + "text": "Error types that indicate the operation was processed but failed.\nThese are errors returned by the Redis server." + } + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "toHaveRowsMatching", - "jsDoc": { - "doc": "Asserts that the rows array matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 98, - "col": 2, - "byteIndex": 2626 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 7428, + "name": "RedisCommandError", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowsEmpty", - "jsDoc": { - "doc": "Asserts that the rows array is empty." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 105, - "col": 2, - "byteIndex": 2790 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 7440, + "name": "RedisScriptError", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowCount", - "jsDoc": { - "doc": "Asserts that the row count equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected row count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 111, - "col": 2, - "byteIndex": 2935 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, + "type": "reference", + "target": 7408, + "name": "RedisError", + "package": "@probitas-test/client-redis" + } + ] + } + }, + { + "id": 7195, + "name": "RedisResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "name": "toHaveRowCountEqual", - "jsDoc": { - "doc": "Asserts that the row count equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected row count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 117, - "col": 2, - "byteIndex": 3116 - }, - "params": [ + "kind": "text", + "text": "Union of all Redis result types." + } + ] + }, + "typeParameters": [ + { + "id": 7196, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 7193, + "typeArguments": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "reference", + "target": 7196, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "RedisCommonResult", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowCountStrictEqual", - "jsDoc": { - "doc": "Asserts that the row count strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected row count" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 123, - "col": 2, - "byteIndex": 3291 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 7076, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowCountSatisfying", - "jsDoc": { - "doc": "Asserts that the row count satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the row count and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 129, - "col": 2, - "byteIndex": 3516 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 7098, + "name": "RedisSetResult", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowCountNaN", - "jsDoc": { - "doc": "Asserts that the row count is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 134, - "col": 2, - "byteIndex": 3637 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 7120, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowCountGreaterThan", - "jsDoc": { - "doc": "Asserts that the row count is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 140, - "col": 2, - "byteIndex": 3799 - }, - "params": [ + "type": "reference", + "target": 7145, + "typeArguments": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "reference", + "target": 7196, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowCountGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the row count is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 146, - "col": 2, - "byteIndex": 3997 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 7168, + "name": "RedisHashResult", + "package": "@probitas-test/client-redis" + } + ] + } + }, + { + "id": 7098, + "name": "RedisSetResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redis SET result." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 7077, + "name": "RedisSetResultSuccess", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowCountLessThan", - "jsDoc": { - "doc": "Asserts that the row count is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 152, - "col": 2, - "byteIndex": 4187 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 7084, + "name": "RedisSetResultError", + "package": "@probitas-test/client-redis" }, { - "name": "toHaveRowCountLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the row count is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 158, - "col": 2, - "byteIndex": 4379 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 7091, + "name": "RedisSetResultFailure", + "package": "@probitas-test/client-redis" + } + ] + } + }, + { + "id": 9375, + "name": "SqlErrorKind", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL-specific error kinds." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "query" }, { - "name": "toHaveRowCountCloseTo", - "jsDoc": { - "doc": "Asserts that the row count is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 165, - "col": 2, - "byteIndex": 4630 - }, - "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": [] + "type": "literal", + "value": "constraint" }, { - "name": "toHaveLastInsertId", - "jsDoc": { - "doc": "Asserts that the last insert ID equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected last insert ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 171, - "col": 2, - "byteIndex": 4827 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "literal", + "value": "deadlock" }, { - "name": "toHaveLastInsertIdEqual", - "jsDoc": { - "doc": "Asserts that the last insert ID equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected last insert ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 177, - "col": 2, - "byteIndex": 5022 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "literal", + "value": "connection" }, { - "name": "toHaveLastInsertIdStrictEqual", - "jsDoc": { - "doc": "Asserts that the last insert ID strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected last insert ID" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 183, - "col": 2, - "byteIndex": 5211 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "literal", + "value": "unknown" + } + ] + } + }, + { + "id": 9422, + "name": "SqlFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9413, + "name": "SqlConnectionError", + "package": "@probitas-test/client-sql" }, { - "name": "toHaveLastInsertIdSatisfying", - "jsDoc": { - "doc": "Asserts that the last insert ID satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the last insert ID and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 190, - "col": 2, - "byteIndex": 5569 - }, - "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": "any", - "kind": "keyword", - "keyword": "any" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "typeParams": [] + "name": "AbortError", + "package": "@probitas-test/client" }, { - "name": "toHaveLastInsertIdPresent", - "jsDoc": { - "doc": "Asserts that the last insert ID is present (not null or undefined)." + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 195, - "col": 2, - "byteIndex": 5724 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "TimeoutError", + "package": "@probitas-test/client" + } + ] + } + }, + { + "id": 9355, + "name": "SqlIsolationLevel", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Transaction isolation level." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "read_uncommitted" }, { - "name": "toHaveLastInsertIdNull", - "jsDoc": { - "doc": "Asserts that the last insert ID is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 200, - "col": 2, - "byteIndex": 5820 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "literal", + "value": "read_committed" }, { - "name": "toHaveLastInsertIdUndefined", - "jsDoc": { - "doc": "Asserts that the last insert ID is undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 205, - "col": 2, - "byteIndex": 5918 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "literal", + "value": "repeatable_read" }, { - "name": "toHaveLastInsertIdNullish", - "jsDoc": { - "doc": "Asserts that the last insert ID is nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 210, - "col": 2, - "byteIndex": 6039 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "literal", + "value": "serializable" + } + ] + } + }, + { + "id": 9421, + "name": "SqlOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9387, + "name": "QuerySyntaxError", + "package": "@probitas-test/client-sql" }, { - "name": "toHaveWarnings", - "jsDoc": { - "doc": "Asserts that the warnings equal the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected warnings value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 216, - "col": 2, - "byteIndex": 6197 - }, - "params": [ + "type": "reference", + "target": 9395, + "name": "ConstraintError", + "package": "@probitas-test/client-sql" + }, + { + "type": "reference", + "target": 9405, + "name": "DeadlockError", + "package": "@probitas-test/client-sql" + }, + { + "type": "reference", + "target": 9378, + "name": "SqlError", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 9498, + "name": "SqlQueryResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQL query result union type representing all possible result states.\n\n- **Success**: " + }, + { + "kind": "code", + "text": "`processed: true, ok: true, error: null`" + }, + { + "kind": "text", + "text": "\n- **Error**: " + }, + { + "kind": "code", + "text": "`processed: true, ok: false, error: SqlError`" + }, + { + "kind": "text", + "text": "\n- **Failure**: " + }, + { + "kind": "code", + "text": "`processed: false, ok: false, error: SqlConnectionError`" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Type narrowing by ok", + "content": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + ] }, { - "name": "toHaveWarningsEqual", - "jsDoc": { - "doc": "Asserts that the warnings equal the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected warnings value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 222, - "col": 2, - "byteIndex": 6381 - }, - "params": [ + "tag": "@example", + "name": "Type narrowing by processed", + "content": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + } + ] + } + ] + }, + "typeParameters": [ + { + "id": 9499, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 9423, + "typeArguments": [ + { + "type": "reference", + "target": 9499, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "SqlQueryResultSuccess", + "package": "@probitas-test/client-sql" }, { - "name": "toHaveWarningsStrictEqual", - "jsDoc": { - "doc": "Asserts that the warnings strictly equal the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected warnings value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 228, - "col": 2, - "byteIndex": 6559 - }, - "params": [ + "type": "reference", + "target": 9448, + "typeArguments": [ { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "reference", + "target": 9499, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "SqlQueryResultError", + "package": "@probitas-test/client-sql" }, { - "name": "toHaveWarningsSatisfying", - "jsDoc": { - "doc": "Asserts that the warnings satisfy the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the warnings and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 234, - "col": 2, - "byteIndex": 6780 - }, - "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": "SqlWarnings", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlWarnings" - } - } - } - ], - "typeParams": [] - } - } + "type": "reference", + "target": 9473, + "typeArguments": [ + { + "type": "reference", + "target": 9499, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "SqlQueryResultFailure", + "package": "@probitas-test/client-sql" + } + ] + } + }, + { + "id": 11561, + "name": "SqsDeleteBatchResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result of batch deleting messages." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 8499, + "name": "SqsDeleteBatchResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveWarningsPresent", - "jsDoc": { - "doc": "Asserts that the warnings are present (not null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 239, - "col": 2, - "byteIndex": 6934 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 8507, + "name": "SqsDeleteBatchResultError", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveWarningsNull", - "jsDoc": { - "doc": "Asserts that the warnings are null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 244, - "col": 2, - "byteIndex": 7021 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 8515, + "name": "SqsDeleteBatchResultFailure", + "package": "@probitas-test/client-sqs" + } + ] + } + }, + { + "id": 11562, + "name": "SqsDeleteQueueResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result of deleting a queue." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 8626, + "name": "SqsDeleteQueueResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveWarningsUndefined", - "jsDoc": { - "doc": "Asserts that the warnings are undefined." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 249, - "col": 2, - "byteIndex": 7110 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 8632, + "name": "SqsDeleteQueueResultError", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveWarningsNullish", - "jsDoc": { - "doc": "Asserts that the warnings are nullish (null or undefined)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 254, - "col": 2, - "byteIndex": 7222 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 8638, + "name": "SqsDeleteQueueResultFailure", + "package": "@probitas-test/client-sqs" + } + ] + } + }, + { + "id": 11563, + "name": "SqsDeleteResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result of deleting a message." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 8446, + "name": "SqsDeleteResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveWarningsContaining", - "jsDoc": { - "doc": "Asserts that the warnings array contains the specified item.", - "tags": [ - { - "kind": "param", - "name": "item", - "doc": "- The item to search for" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 260, - "col": 2, - "byteIndex": 7376 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 8452, + "name": "SqsDeleteResultError", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveWarningsContainingEqual", - "jsDoc": { - "doc": "Asserts that the warnings array contains an item equal to the specified value.", - "tags": [ - { - "kind": "param", - "name": "item", - "doc": "- The item to search for using deep equality" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 266, - "col": 2, - "byteIndex": 7584 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 8458, + "name": "SqsDeleteResultFailure", + "package": "@probitas-test/client-sqs" + } + ] + } + }, + { + "id": 11564, + "name": "SqsEnsureQueueResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result of ensuring a queue exists." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 8566, + "name": "SqsEnsureQueueResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveWarningsMatching", - "jsDoc": { - "doc": "Asserts that the warnings array matches the specified subset.", - "tags": [ - { - "kind": "param", - "name": "subset", - "doc": "- The subset to match against" - } - ] + "type": "reference", + "target": 8573, + "name": "SqsEnsureQueueResultError", + "package": "@probitas-test/client-sqs" + }, + { + "type": "reference", + "target": 8580, + "name": "SqsEnsureQueueResultFailure", + "package": "@probitas-test/client-sqs" + } + ] + } + }, + { + "id": 8109, + "name": "SqsExpectation", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Expectation type returned by expectSqsResult based on the result type." + } + ] + }, + "typeParameters": [ + { + "id": 8110, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 11566, + "name": "SqsResult", + "package": "@probitas-test/client-sqs" + } + } + ], + "type": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8110, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 11568, + "name": "SqsSendResult", + "package": "@probitas-test/client-sqs" + }, + "trueType": { + "type": "reference", + "target": 11453, + "name": "SqsSendResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8110, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 11567, + "name": "SqsSendBatchResult", + "package": "@probitas-test/client-sqs" + }, + "trueType": { + "type": "reference", + "target": 11298, + "name": "SqsSendBatchResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8110, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 11565, + "name": "SqsReceiveResult", + "package": "@probitas-test/client-sqs" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 272, - "col": 2, - "byteIndex": 7767 + "trueType": { + "type": "reference", + "target": 11202, + "name": "SqsReceiveResultExpectation", + "package": "@probitas-test/expect" }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8110, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 11563, + "name": "SqsDeleteResult", + "package": "@probitas-test/client-sqs" + }, + "trueType": { + "type": "reference", + "target": 11107, + "name": "SqsDeleteResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8110, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 11561, + "name": "SqsDeleteBatchResult", + "package": "@probitas-test/client-sqs" + }, + "trueType": { + "type": "reference", + "target": 11298, + "name": "SqsSendBatchResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8110, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + }, + "extendsType": { + "type": "reference", + "target": 11564, + "name": "SqsEnsureQueueResult", + "package": "@probitas-test/client-sqs" + }, + "trueType": { + "type": "reference", + "target": 11144, + "name": "SqsEnsureQueueResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "conditional", + "checkType": { + "type": "reference", + "target": 8110, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true }, - { - "repr": "", - "kind": "array", - "array": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "PropertyKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "PropertyKey" - } - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - } + "extendsType": { + "type": "reference", + "target": 11562, + "name": "SqsDeleteQueueResult", + "package": "@probitas-test/client-sqs" + }, + "trueType": { + "type": "reference", + "target": 11070, + "name": "SqsDeleteQueueResultExpectation", + "package": "@probitas-test/expect" + }, + "falseType": { + "type": "intrinsic", + "name": "never" } - ] + } } } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + } + } + } + } + }, + { + "id": 8244, + "name": "SqsFailureError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate the operation was not processed.\nThese are errors that occur before the operation reaches the SQS service." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 11579, + "name": "SqsConnectionError", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveWarningsEmpty", - "jsDoc": { - "doc": "Asserts that the warnings array is empty." + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "AbortError" }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 279, - "col": 2, - "byteIndex": 7939 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "name": "AbortError", + "package": "@probitas-test/client" }, { - "name": "toHaveDuration", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 285, - "col": 2, - "byteIndex": 8092 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "type": "reference", + "target": { + "packageName": "@probitas-test/client", + "packagePath": "dist/errors.d.ts", + "qualifiedName": "TimeoutError" }, - "typeParams": [] + "name": "TimeoutError", + "package": "@probitas-test/client" + } + ] + } + }, + { + "id": 8243, + "name": "SqsOperationError", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error types that indicate an operation was processed by the server.\nThese errors occur after the operation reaches the SQS service." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 11574, + "name": "SqsCommandError", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveDurationEqual", - "jsDoc": { - "doc": "Asserts that the duration equals the expected value using deep equality.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 291, - "col": 2, - "byteIndex": 8277 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 11597, + "name": "SqsQueueNotFoundError", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveDurationStrictEqual", - "jsDoc": { - "doc": "Asserts that the duration strictly equals the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected duration value" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 297, - "col": 2, - "byteIndex": 8456 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 11591, + "name": "SqsMessageTooLargeError", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveDurationSatisfying", - "jsDoc": { - "doc": "Asserts that the duration satisfies the provided matcher function.", - "tags": [ - { - "kind": "param", - "name": "matcher", - "doc": "- A function that receives the duration and performs assertions" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 303, - "col": 2, - "byteIndex": 8679 - }, - "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": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 11569, + "name": "SqsBatchError", + "package": "@probitas-test/client-sqs" + }, + { + "type": "reference", + "target": 11587, + "name": "SqsMessageNotFoundError", + "package": "@probitas-test/client-sqs" + }, + { + "type": "reference", + "target": 11583, + "name": "SqsError", + "package": "@probitas-test/client-sqs" + } + ] + } + }, + { + "id": 11565, + "name": "SqsReceiveResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result of receiving messages." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 8386, + "name": "SqsReceiveResultSuccess", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveDurationNaN", - "jsDoc": { - "doc": "Asserts that the duration is NaN." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 308, - "col": 2, - "byteIndex": 8799 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 8393, + "name": "SqsReceiveResultError", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveDurationGreaterThan", - "jsDoc": { - "doc": "Asserts that the duration is greater than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 314, - "col": 2, - "byteIndex": 8960 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 8400, + "name": "SqsReceiveResultFailure", + "package": "@probitas-test/client-sqs" + } + ] + } + }, + { + "id": 11566, + "name": "SqsResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Union type of all SQS result types." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 11568, + "name": "SqsSendResult", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveDurationGreaterThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is greater than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 320, - "col": 2, - "byteIndex": 9157 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 11567, + "name": "SqsSendBatchResult", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveDurationLessThan", - "jsDoc": { - "doc": "Asserts that the duration is less than the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 326, - "col": 2, - "byteIndex": 9346 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 11565, + "name": "SqsReceiveResult", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveDurationLessThanOrEqual", - "jsDoc": { - "doc": "Asserts that the duration is less than or equal to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The value to compare against" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 332, - "col": 2, - "byteIndex": 9537 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 11563, + "name": "SqsDeleteResult", + "package": "@probitas-test/client-sqs" }, { - "name": "toHaveDurationCloseTo", - "jsDoc": { - "doc": "Asserts that the duration is close to the expected value.", - "tags": [ - { - "kind": "param", - "name": "expected", - "doc": "- The expected value" - }, - { - "kind": "param", - "name": "numDigits", - "doc": "- The number of decimal digits to check (default: 2)" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 339, - "col": 2, - "byteIndex": 9787 - }, - "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": [] - } - ], - "properties": [ + "type": "reference", + "target": 11561, + "name": "SqsDeleteBatchResult", + "package": "@probitas-test/client-sqs" + }, { - "name": "not", - "jsDoc": { - "doc": "Negates the next assertion.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport type { SqlQueryResult } from \"@probitas-test/client-sql\";\nimport { expectSqlQueryResult } from \"./sql.ts\";\nconst result = {\n kind: \"sql\",\n ok: false,\n rows: [],\n rowCount: 0,\n duration: 0,\n map: () => [],\n as: () => [],\n} as unknown as SqlQueryResult;\n\nexpectSqlQueryResult(result).not.toBeOk();\nexpectSqlQueryResult(result).not.toHaveRowCount(5);\n```" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 34, - "col": 2, - "byteIndex": 904 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] + "type": "reference", + "target": 11564, + "name": "SqsEnsureQueueResult", + "package": "@probitas-test/client-sqs" + }, + { + "type": "reference", + "target": 11562, + "name": "SqsDeleteQueueResult", + "package": "@probitas-test/client-sqs" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "expectSqlQueryResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/sql.ts", - "line": 343, - "col": 0, - "byteIndex": 9974 + "id": 11567, + "name": "SqsSendBatchResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result of batch sending messages." + } + ] }, - "declarationKind": "export", - "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" - } - } + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 8319, + "name": "SqsSendBatchResultSuccess", + "package": "@probitas-test/client-sqs" + }, + { + "type": "reference", + "target": 8327, + "name": "SqsSendBatchResultError", + "package": "@probitas-test/client-sqs" + }, + { + "type": "reference", + "target": 8335, + "name": "SqsSendBatchResultFailure", + "package": "@probitas-test/client-sqs" } - ], - "returnType": { - "repr": "SqlQueryResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryResultExpectation" + ] + } + }, + { + "id": 11568, + "name": "SqsSendResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result of sending a message." } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + ] + }, + "type": { + "type": "union", + "types": [ { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } + "type": "reference", + "target": 8245, + "name": "SqsSendResultSuccess", + "package": "@probitas-test/client-sqs" + }, + { + "type": "reference", + "target": 8254, + "name": "SqsSendResultError", + "package": "@probitas-test/client-sqs" + }, + { + "type": "reference", + "target": 8263, + "name": "SqsSendResultFailure", + "package": "@probitas-test/client-sqs" } ] } }, { - "name": "SqlQueryOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 7, - "col": 0, - "byteIndex": 165 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for individual SQL queries." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ + "id": 7474, + "name": "UpdateFilter", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "repr": "CommonOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "CommonOptions" - } + "kind": "text", + "text": "MongoDB update filter type (simplified for compatibility with mongodb driver)\nAllows update operators like $set, $inc, $unset, etc." } - ], - "constructors": [], - "methods": [], - "properties": [ + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ { - "name": "throwOnError", - "jsDoc": { - "doc": "Whether to throw an error for query failures.\nWhen false, failures are returned as SqlQueryResultError or SqlQueryResultFailure.", - "tags": [ - { - "kind": "unsupported", - "value": "@default false (inherited from client config if not specified)" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 13, - "col": 2, - "byteIndex": 443 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" } ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + "name": "Record", + "package": "typescript" } }, { - "name": "SqlIsolationLevel", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 19, - "col": 0, - "byteIndex": 519 + "id": 6395, + "name": "ConnectRpcStatus", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true }, - "declarationKind": "export", - "jsDoc": { - "doc": "Transaction isolation level." + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC/gRPC status codes.\nThese codes are used by both gRPC and ConnectRPC protocols." + } + ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "read_uncommitted", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_uncommitted" + "type": { + "type": "reflection", + "declaration": { + "id": 6396, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 6407, + "name": "ABORTED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 10 } }, { - "repr": "read_committed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "read_committed" + "id": 6403, + "name": "ALREADY_EXISTS", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 6 } }, { - "repr": "repeatable_read", - "kind": "literal", - "literal": { - "kind": "string", - "string": "repeatable_read" + "id": 6398, + "name": "CANCELLED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 1 } }, { - "repr": "serializable", - "kind": "literal", - "literal": { - "kind": "string", - "string": "serializable" + "id": 6412, + "name": "DATA_LOSS", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 15 + } + }, + { + "id": 6401, + "name": "DEADLINE_EXCEEDED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 4 } - } - ] - }, - "typeParams": [] - } - }, - { - "name": "SqlTransactionOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 28, - "col": 0, - "byteIndex": 685 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for starting a transaction." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "isolationLevel", - "jsDoc": { - "doc": "Isolation level for the transaction" }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 30, - "col": 2, - "byteIndex": 773 + { + "id": 6406, + "name": "FAILED_PRECONDITION", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 9 + } }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "SqlIsolationLevel", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlIsolationLevel" + { + "id": 6410, + "name": "INTERNAL", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 13 } }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + { + "id": 6400, + "name": "INVALID_ARGUMENT", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 3 + } + }, + { + "id": 6402, + "name": "NOT_FOUND", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 5 + } + }, + { + "id": 6397, + "name": "OK", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 0 + } + }, + { + "id": 6408, + "name": "OUT_OF_RANGE", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 11 + } + }, + { + "id": 6404, + "name": "PERMISSION_DENIED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 7 + } + }, + { + "id": 6405, + "name": "RESOURCE_EXHAUSTED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 8 + } + }, + { + "id": 6413, + "name": "UNAUTHENTICATED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 16 + } + }, + { + "id": 6411, + "name": "UNAVAILABLE", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 14 + } + }, + { + "id": 6409, + "name": "UNIMPLEMENTED", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 12 + } + }, + { + "id": 6399, + "name": "UNKNOWN", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": 2 + } + } + ] + } } }, { - "name": "SqlTransaction", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 37, - "col": 0, - "byteIndex": 940 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL transaction interface.\nImplementations should provide actual database-specific transaction handling." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "query", - "jsDoc": { - "doc": "Execute a query within the transaction.", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, - { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" - }, - { - "kind": "param", - "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 45, - "col": 2, - "byteIndex": 1279 - }, - "params": [ + "id": 6514, + "name": "createConnectRpcClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 6515, + "name": "createConnectRpcClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new ConnectRPC client instance.\n\nThe client supports multiple protocols (Connect, gRPC, gRPC-Web) and provides\nServer Reflection for runtime service discovery without compile-time code generation." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A new ConnectRPC client instance" + } + ] + }, { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "tag": "@example", + "name": "Basic usage with reflection", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\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```" + } + ] }, { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "tag": "@example", + "name": "Service discovery with reflection", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\n url: \"http://localhost:50051\",\n});\n\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\nawait client.close();\n```" } - } + ] }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + "tag": "@example", + "name": "Using different protocols", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\n// Connect protocol (HTTP/1.1 or HTTP/2)\nconst connectClient = createConnectRpcClient({\n url: \"http://localhost:8080\",\n protocol: \"connect\",\n});\n\n// gRPC protocol (HTTP/2 with binary protobuf)\nconst grpcClient = createConnectRpcClient({\n url: \"http://localhost:50051\",\n protocol: \"grpc\",\n});\n\n// gRPC-Web protocol (for browser compatibility)\nconst grpcWebClient = createConnectRpcClient({\n url: \"http://localhost:8080\",\n protocol: \"grpc-web\",\n});\n\nawait connectClient.close();\nawait grpcClient.close();\nawait grpcWebClient.close();\n```" } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } + ] + }, + { + "tag": "@example", + "name": "Using connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nconst client = createConnectRpcClient({\n url: {\n host: \"grpc.example.com\",\n port: 443,\n protocol: \"https\",\n },\n});\n\nawait client.close();\n```" } - ], - "typeName": "Promise" - } - }, - "typeParams": [ + ] + }, { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createConnectRpcClient } from \"@probitas-test/client-connectrpc\";\n\nawait using client = createConnectRpcClient({\n url: \"http://localhost:50051\",\n});\n\nconst res = await client.call(\"echo.EchoService\", \"echo\", { message: \"test\" });\n// Client automatically closed when scope exits\n```" } - } + ] } ] }, - { - "name": "queryOne", - "jsDoc": { - "doc": "Execute a query and return the first row or undefined.", - "tags": [ - { - "kind": "param", - "name": "sql", - "doc": "- SQL query string" - }, - { - "kind": "param", - "name": "params", - "doc": "- Optional query parameters" - }, - { - "kind": "param", - "name": "options", - "doc": "- Optional query options" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 58, - "col": 2, - "byteIndex": 1737 - }, - "params": [ - { - "kind": "identifier", - "name": "sql", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "parameters": [ + { + "id": 6516, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration including server URL and protocol options" + } + ] + }, + "type": { + "type": "reference", + "target": 6355, + "name": "ConnectRpcClientConfig", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "type": { + "type": "reference", + "target": 6530, + "name": "ConnectRpcClient", + "package": "@probitas-test/client-connectrpc" + } + } + ] + }, + { + "id": 6113, + "name": "createGraphqlClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 6114, + "name": "createGraphqlClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new GraphQL client instance.\n\nThe client provides methods for executing GraphQL queries, mutations,\nand subscriptions with automatic error handling and response parsing." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A new GraphQL client instance" + } + ] }, { - "kind": "identifier", - "name": "params", - "optional": true, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "tag": "@example", + "name": "Basic query", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({\n url: \"http://localhost:4000/graphql\",\n});\n\nconst response = await client.query(`\n query GetUser($id: ID!) {\n user(id: $id) { id name email }\n }\n`, { id: \"123\" });\n\nconsole.log(response.data);\nawait client.close();\n```" } - } + ] }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlQueryOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryOptions" + "tag": "@example", + "name": "Using connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n});\nawait client.close();\n```" } - } - } - ], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } - ] + ] + }, + { + "tag": "@example", + "name": "Mutation with error handling", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nconst client = createGraphqlClient({ url: \"http://localhost:4000/graphql\" });\n\nconst response = await client.mutation(`\n mutation CreateUser($input: CreateUserInput!) {\n createUser(input: $input) { id }\n }\n`, { input: { name: \"Alice\", email: \"alice@example.com\" } });\n\nif (response.ok) {\n console.log(\"Created user:\", (response.data as any).createUser.id);\n}\n\nawait client.close();\n```" } - ], - "typeName": "Promise" - } - }, - "typeParams": [ + ] + }, { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGraphqlClient } from \"@probitas-test/client-graphql\";\n\nawait using client = createGraphqlClient({\n url: \"http://localhost:4000/graphql\",\n});\nconst response = await client.query(`{ __typename }`);\n// Client automatically closed when scope exits\n```" } - } + ] } ] }, - { - "name": "commit", - "jsDoc": { - "doc": "Commit the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 67, - "col": 2, - "byteIndex": 1917 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "typeParams": [] - }, - { - "name": "rollback", - "jsDoc": { - "doc": "Rollback the transaction." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/transaction.ts", - "line": 72, - "col": 2, - "byteIndex": 1988 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "parameters": [ + { + "id": 6115, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration including URL and default options" } - ], - "typeName": "Promise" + ] + }, + "type": { + "type": "reference", + "target": 5984, + "name": "GraphqlClientConfig", + "package": "@probitas-test/client-graphql" } - }, - "typeParams": [] + } + ], + "type": { + "type": "reference", + "target": 5993, + "name": "GraphqlClient", + "package": "@probitas-test/client-graphql" } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "SqlErrorKind", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 10, - "col": 0, - "byteIndex": 140 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL-specific error kinds." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" + "id": 6787, + "name": "createGrpcClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 6788, + "name": "createGrpcClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new gRPC client instance.\n\nThis is a thin wrapper around " + }, + { + "kind": "code", + "text": "`createConnectRpcClient`" + }, + { + "kind": "text", + "text": " with " + }, + { + "kind": "code", + "text": "`protocol: \"grpc\"`" + }, + { + "kind": "text", + "text": " fixed.\nThe client provides Server Reflection support for runtime service discovery." } - }, - { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A new gRPC client instance" + } + ] + }, + { + "tag": "@example", + "name": "Basic usage with reflection", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\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```" + } + ] + }, + { + "tag": "@example", + "name": "Service discovery with reflection", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({\n url: \"http://localhost:50051\",\n});\n\n// Discover available services\nconst services = await client.reflection.listServices();\nconsole.log(\"Available services:\", services);\n\n// Get method information\nconst info = await client.reflection.getServiceInfo(\"echo.EchoService\");\nconsole.log(\"Methods:\", info.methods);\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Testing error responses", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\nconst client = createGrpcClient({ url: \"http://localhost:50051\" });\n\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.statusCode); // NOT_FOUND = 5\n}\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createGrpcClient } from \"@probitas-test/client-grpc\";\n\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```" + } + ] } - }, + ] + }, + "parameters": [ { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" + "id": 6789, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration including server address" + } + ] + }, + "type": { + "type": "reference", + "target": 6790, + "name": "GrpcClientConfig", + "package": "@probitas-test/client-grpc" } - }, - { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + } + ], + "type": { + "type": "reference", + "target": 6530, + "name": "ConnectRpcClient", + "package": "@probitas-test/client-connectrpc" + } + } + ] + }, + { + "id": 5650, + "name": "createHttpClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 5651, + "name": "createHttpClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new HTTP client instance.\n\nThe client provides methods for making HTTP requests with automatic\ncookie handling, response body pre-loading, and error handling." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A new HTTP client instance" + } + ] + }, + { + "tag": "@example", + "name": "Basic usage with string URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({ url: \"http://localhost:3000\" });\n\nconst response = await http.get(\"/users/123\");\nconsole.log(response.json);\n\nawait http.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "With connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({\n url: { host: \"api.example.com\", port: 443, protocol: \"https\" },\n});\nawait http.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "With default headers", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nconst http = createHttpClient({\n url: \"http://localhost:3000\",\n headers: {\n \"Authorization\": \"Bearer token123\",\n \"Accept\": \"application/json\",\n },\n});\nawait http.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/health\");\nconsole.log(response.ok);\n```" + } + ] } - }, + ] + }, + "parameters": [ { - "repr": "unknown", - "kind": "literal", - "literal": { - "kind": "string", - "string": "unknown" + "id": 5652, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Client configuration including URL and default options" + } + ] + }, + "type": { + "type": "reference", + "target": 5562, + "name": "HttpClientConfig", + "package": "@probitas-test/client-http" } } - ] - }, - "typeParams": [] - } + ], + "type": { + "type": "reference", + "target": 5572, + "name": "HttpClient", + "package": "@probitas-test/client-http" + } + } + ] }, { - "name": "SqlErrorOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 20, - "col": 0, - "byteIndex": 289 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for SqlError constructor." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" + "id": 8102, + "name": "createMongoClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 8103, + "name": "createMongoClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new MongoDB client instance.\n\nThe client provides typed collection access, aggregation pipelines,\ntransaction support, and comprehensive CRUD operations." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new MongoDB client instance" + } + ] + }, + { + "tag": "@example", + "name": "Basic usage with connection string", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst users = mongo.collection<{ name: string; age: number }>(\"users\");\nconst result = await users.find({ age: { $gte: 18 } });\n\nif (result.ok) {\n console.log(result.docs[0]);\n} else {\n console.error(\"Error:\", result.error.message);\n}\n\nawait mongo.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nconst mongo = await createMongoClient({\n url: {\n host: \"localhost\",\n port: 27017,\n username: \"admin\",\n password: \"secret\",\n authSource: \"admin\",\n },\n database: \"testdb\",\n});\n\nawait mongo.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Insert and query documents", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { name: string; age: number }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\nconst users = mongo.collection(\"users\");\n\n// Insert a document\nconst insertResult = await users.insertOne({ name: \"Alice\", age: 30 });\nif (insertResult.ok) {\n console.log(\"Inserted ID:\", insertResult.insertedId);\n}\n\n// Find documents with projection and sorting\nconst findResult = await users.find(\n { age: { $gte: 25 } },\n { sort: { name: 1 }, limit: 10 }\n);\nif (findResult.ok) {\n console.log(\"Found:\", findResult.docs.length);\n}\n\nawait mongo.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Transaction with auto-commit/rollback", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { _id?: unknown; name: string; age: number }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nawait mongo.transaction(async (session) => {\n const users = session.collection(\"users\");\n const insertResult = await users.insertOne({ name: \"Bob\", age: 25 });\n if (!insertResult.ok) throw insertResult.error;\n\n const updateResult = await users.updateOne(\n { name: \"Alice\" },\n { $inc: { age: 1 } }\n );\n if (!updateResult.ok) throw updateResult.error;\n});\n\nawait mongo.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Aggregation pipeline", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\ninterface User { name: string; age: number; department: string }\n\nconst mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\nconst users = mongo.collection(\"users\");\n\nconst result = await users.aggregate<{ _id: string; avgAge: number }>([\n { $group: { _id: \"$department\", avgAge: { $avg: \"$age\" } } },\n { $sort: { avgAge: -1 } },\n]);\nif (result.ok) {\n console.log(result.docs);\n}\n\nawait mongo.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createMongoClient } from \"@probitas-test/client-mongodb\";\n\nawait using mongo = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst result = await mongo.collection(\"users\").find({});\nif (result.ok) {\n console.log(result.docs);\n}\n// Client automatically closed when scope exits\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 8104, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "MongoDB client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 7490, + "name": "MongoClientConfig", + "package": "@probitas-test/client-mongodb" + } } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "sqlState", - "jsDoc": { - "doc": "SQL State code (e.g., \"23505\" for unique violation)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 22, - "col": 2, - "byteIndex": 408 + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "typeArguments": [ + { + "type": "reference", + "target": 7547, + "name": "MongoClient", + "package": "@probitas-test/client-mongodb" + } + ], + "name": "Promise", + "package": "typescript" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "SqlError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 29, - "col": 0, - "byteIndex": 545 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base error class for SQL-specific errors.\nExtends ClientError with SQL-specific properties." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "id": 9190, + "name": "createRabbitMqClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 9191, + "name": "createRabbitMqClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new RabbitMQ client instance.\n\nThe client provides queue and exchange management, message publishing\nand consumption, and acknowledgment handling via AMQP protocol." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new RabbitMQ client instance" + } + ] + }, + { + "tag": "@example", + "name": "Basic usage with string URL", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({\n url: \"amqp://guest:guest@localhost:5672\",\n});\n\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\", { durable: true });\n\nconst content = new TextEncoder().encode(JSON.stringify({ type: \"ORDER\" }));\nawait channel.sendToQueue(\"my-queue\", content, { persistent: true });\n\nawait channel.close();\nawait rabbit.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "With connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({\n url: {\n host: \"localhost\",\n port: 5672,\n username: \"guest\",\n password: \"guest\",\n vhost: \"/\",\n },\n});\n\nawait rabbit.close();\n```" + } + ] + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "tag": "@example", + "name": "Exchange and binding", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\n\n// Create exchange and queue\nawait channel.assertExchange(\"events\", \"topic\", { durable: true });\nawait channel.assertQueue(\"user-events\");\nawait channel.bindQueue(\"user-events\", \"events\", \"user.*\");\n\n// Publish to exchange\nconst content = new TextEncoder().encode(JSON.stringify({ id: 1 }));\nawait channel.publish(\"events\", \"user.created\", content);\n\nawait rabbit.close();\n```" + } + ] }, { - "kind": "identifier", - "name": "kind", - "optional": false, - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" + "tag": "@example", + "name": "Consuming messages", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\");\n\nfor await (const message of channel.consume(\"my-queue\")) {\n console.log(\"Received:\", new TextDecoder().decode(message.content));\n await channel.ack(message);\n break;\n}\n\nawait rabbit.close();\n```" } - } + ] }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" + "tag": "@example", + "name": "Get single message (polling)", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nconst rabbit = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"my-queue\");\n\nconst result = await channel.get(\"my-queue\");\nif (result.message) {\n await channel.ack(result.message);\n}\n\nawait rabbit.close();\n```" } - } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRabbitMqClient } from \"@probitas-test/client-rabbitmq\";\n\nawait using rabbit = await createRabbitMqClient({\n url: \"amqp://localhost:5672\",\n});\n\nconst channel = await rabbit.channel();\nawait channel.assertQueue(\"test\");\n// Client automatically closed when scope exits\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 9192, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RabbitMQ client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 8717, + "name": "RabbitMqClientConfig", + "package": "@probitas-test/client-rabbitmq" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 34, - "col": 2, - "byteIndex": 715 } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 30, - "col": 2, - "byteIndex": 591 - } - }, - { - "tsType": { - "repr": "SqlErrorKind", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorKind" + "typeArguments": [ + { + "type": "reference", + "target": 8858, + "name": "RabbitMqClient", + "package": "@probitas-test/client-rabbitmq" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 31, - "col": 2, - "byteIndex": 638 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "sqlState", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 32, - "col": 2, - "byteIndex": 678 - } + ], + "name": "Promise", + "package": "typescript" } - ], - "indexSignatures": [], - "methods": [], - "extends": "ClientError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ] }, { - "name": "QuerySyntaxError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 48, - "col": 0, - "byteIndex": 981 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a SQL query has syntax errors." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "id": 7449, + "name": "createRedisClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 7450, + "name": "createRedisClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new Redis client instance.\n\nThe client provides comprehensive Redis data structure support including strings,\nhashes, lists, sets, sorted sets, pub/sub, and transactions." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new Redis client instance" + } + ] + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "tag": "@example", + "name": "Using URL string", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({\n url: \"redis://localhost:6379/0\",\n});\n\nawait client.set(\"key\", \"value\");\nconst result = await client.get(\"key\");\nif (result.ok) {\n console.log(result.value); // \"value\"\n}\n\nawait client.close();\n```" + } + ] }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" + "tag": "@example", + "name": "Using connection config object", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({\n url: {\n host: \"localhost\",\n port: 6379,\n password: \"secret\",\n db: 0,\n },\n});\nawait client.close();\n```" } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 52, - "col": 2, - "byteIndex": 1125 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 49, - "col": 2, - "byteIndex": 1032 - } - }, - { - "tsType": { - "repr": "query", - "kind": "literal", - "literal": { - "kind": "string", - "string": "query" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 50, - "col": 2, - "byteIndex": 1079 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "ConstraintError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 60, - "col": 0, - "byteIndex": 1288 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a constraint violation occurs." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + ] + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "tag": "@example", + "name": "Set with expiration", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\nconst sessionData = JSON.stringify({ userId: \"123\" });\nconst data = \"temporary value\";\n\n// Set key with 1 hour TTL\nawait client.set(\"session\", sessionData, { ex: 3600 });\n\n// Set key with 5 second TTL in milliseconds\nawait client.set(\"temp\", data, { px: 5000 });\n\nawait client.close();\n```" + } + ] }, { - "kind": "identifier", - "name": "constraint", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "tag": "@example", + "name": "Hash operations", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\nawait client.hset(\"user:123\", \"name\", \"Alice\");\nawait client.hset(\"user:123\", \"email\", \"alice@example.com\");\n\nconst user = await client.hgetall(\"user:123\");\nif (user.ok) {\n console.log(user.value); // { name: \"Alice\", email: \"alice@example.com\" }\n}\n\nawait client.close();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Pub/Sub", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nconst client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\n// Subscribe to channel (this would run indefinitely in practice)\n// for await (const message of client.subscribe(\"events\")) {\n// console.log(\"Received:\", message.message);\n// }\n\n// Publish to channel\nawait client.publish(\"events\", JSON.stringify({ type: \"user.created\" }));\n\nawait client.close();\n```" + } + ] }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createRedisClient } from \"@probitas-test/client-redis\";\n\nawait using client = await createRedisClient({\n url: \"redis://localhost:6379\",\n});\n\nawait client.set(\"test\", \"value\");\n// Client automatically closed when scope exits\n```" } - } + ] + } + ] + }, + "parameters": [ + { + "id": 7451, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Redis client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 6830, + "name": "RedisClientConfig", + "package": "@probitas-test/client-redis" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 65, - "col": 2, - "byteIndex": 1466 } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 61, - "col": 2, - "byteIndex": 1338 - } - }, - { - "tsType": { - "repr": "constraint", - "kind": "literal", - "literal": { - "kind": "string", - "string": "constraint" + "typeArguments": [ + { + "type": "reference", + "target": 6928, + "name": "RedisClient", + "package": "@probitas-test/client-redis" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 62, - "col": 2, - "byteIndex": 1384 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "constraint", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 63, - "col": 2, - "byteIndex": 1434 - } + ], + "name": "Promise", + "package": "typescript" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ] }, { - "name": "DeadlockError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 74, - "col": 0, - "byteIndex": 1681 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a deadlock is detected." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "id": 8679, + "name": "createSqsClient", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 8680, + "name": "createSqsClient", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new Amazon SQS client instance.\n\nThe client provides queue management, message publishing and consumption,\nbatch operations, and supports both standard and FIFO queues via AWS SDK." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A promise resolving to a new SQS client instance" + } + ] + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "tag": "@example", + "name": "Basic usage with existing queue", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"ap-northeast-1\",\n queueUrl: \"https://sqs.ap-northeast-1.amazonaws.com/123456789/my-queue\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n\n // Send a message\n const sendResult = await sqs.send(JSON.stringify({\n type: \"ORDER\",\n orderId: \"123\",\n }));\n\n if (sendResult.ok) {\n console.log(\"Message ID:\", sendResult.messageId);\n } else {\n console.error(\"Error:\", sendResult.error.message);\n }\n\n await sqs.close();\n}\n```" + } + ] }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" + "tag": "@example", + "name": "Using ElasticMQ for local development", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: {\n accessKeyId: \"test\",\n secretAccessKey: \"test\",\n },\n });\n\n // Create queue dynamically (also sets queueUrl)\n const result = await sqs.ensureQueue(\"test-queue\");\n if (result.ok) {\n console.log(result.queueUrl); // http://localhost:9324/000000000000/test-queue\n }\n\n await sqs.close();\n}\n```" } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 78, - "col": 2, - "byteIndex": 1822 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 75, - "col": 2, - "byteIndex": 1729 - } - }, - { - "tsType": { - "repr": "deadlock", - "kind": "literal", - "literal": { - "kind": "string", - "string": "deadlock" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 76, - "col": 2, - "byteIndex": 1773 - } - } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "SqlConnectionError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 94, - "col": 0, - "byteIndex": 2195 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a connection or network-level error occurs.\n\nThis includes:\n- Connection refused (server not running)\n- Authentication failure\n- Connection timeout\n- Pool exhaustion\n- TLS handshake failure\n- DNS resolution failure" - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + ] + }, { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "tag": "@example", + "name": "Receiving messages with long polling", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n await sqs.ensureQueue(\"test-queue\");\n\n // Long polling waits up to 20 seconds for messages\n const receiveResult = await sqs.receive({\n maxMessages: 10,\n waitTimeSeconds: 20,\n visibilityTimeout: 30,\n });\n\n if (receiveResult.ok) {\n console.log(\"Received:\", receiveResult.messages.length);\n\n // Process and acknowledge messages\n for (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\n await sqs.close();\n}\n```" + } + ] }, { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "SqlErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlErrorOptions" + "tag": "@example", + "name": "Batch operations for high throughput", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n const sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n await sqs.ensureQueue(\"test-queue\");\n\n // Send multiple messages in a single API call\n const batchResult = await sqs.sendBatch([\n { id: \"1\", body: JSON.stringify({ event: \"user.created\", userId: \"a1\" }) },\n { id: \"2\", body: JSON.stringify({ event: \"user.created\", userId: \"a2\" }) },\n { id: \"3\", body: JSON.stringify({ event: \"user.updated\", userId: \"a3\" }) },\n ]);\n\n if (batchResult.ok) {\n console.log(`Sent: ${batchResult.successful.length}`);\n console.log(`Failed: ${batchResult.failed.length}`);\n }\n\n // Batch delete processed messages\n const receiveResult = await sqs.receive({ maxMessages: 10 });\n if (receiveResult.ok) {\n const handles = receiveResult.messages.map((m) => m.receiptHandle);\n await sqs.deleteBatch(handles);\n }\n\n await sqs.close();\n}\n```" } - } + ] + }, + { + "tag": "@example", + "name": "Using `await using` for automatic cleanup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createSqsClient } from \"@probitas-test/client-sqs\";\n\nasync function example() {\n await using sqs = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:9324\",\n credentials: { accessKeyId: \"test\", secretAccessKey: \"test\" },\n });\n\n await sqs.ensureQueue(\"test-queue\");\n await sqs.send(\"Hello, SQS!\");\n // Client automatically closed when scope exits\n}\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 8681, + "name": "config", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SQS client configuration" + } + ] + }, + "type": { + "type": "reference", + "target": 8124, + "name": "SqsClientConfig", + "package": "@probitas-test/client-sqs" } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 98, - "col": 2, - "byteIndex": 2348 } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 95, - "col": 2, - "byteIndex": 2248 - } - }, - { - "tsType": { - "repr": "connection", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connection" + "typeArguments": [ + { + "type": "reference", + "target": 8200, + "name": "SqsClient", + "package": "@probitas-test/client-sqs" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 96, - "col": 2, - "byteIndex": 2297 - } + ], + "name": "Promise", + "package": "typescript" } - ], - "indexSignatures": [], - "methods": [], - "extends": "SqlError", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ] }, { - "name": "SqlOperationError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 107, - "col": 0, - "byteIndex": 2597 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate an operation was processed by the server.\nThese errors occur after the query reaches the SQL server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "QuerySyntaxError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "QuerySyntaxError" - } - }, - { - "repr": "ConstraintError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConstraintError" + "id": 9596, + "name": "expect", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 9597, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] } - }, + ] + }, + "typeParameters": [ { - "repr": "DeadlockError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DeadlockError" - } - }, + "id": 9598, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 9731, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + } + ], + "parameters": [ { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + "id": 9599, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "expect.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9598, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "NotAny", + "package": "@probitas-test/expect" } } - ] + ], + "type": { + "type": "reference", + "target": 5216, + "name": "HttpResponseExpectation", + "package": "@probitas-test/expect" + } }, - "typeParams": [] - } - }, - { - "name": "SqlFailureError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/errors.ts", - "line": 117, - "col": 0, - "byteIndex": 2845 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error types that indicate the operation was not processed.\nThese are errors that occur before the query reaches the SQL server." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlConnectionError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlConnectionError" + { + "id": 9600, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." } - }, - { - "repr": "AbortError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortError" + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] } - }, + ] + }, + "typeParameters": [ { - "repr": "TimeoutError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "TimeoutError" - } - } - ] - }, - "typeParams": [] - } - }, - { - "name": "SqlQueryResultSuccess", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 44, - "col": 0, - "byteIndex": 1310 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for successful queries.\n\nThe query was executed successfully and returned results." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 9601, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 9825, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "parameters": [ + { + "id": 9602, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "expect.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9601, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - } - ], - "typeName": "SqlQueryResultBase" + ], + "name": "NotAny", + "package": "@probitas-test/expect" + } } + ], + "type": { + "type": "reference", + "target": 6119, + "name": "ConnectRpcResponseExpectation", + "package": "@probitas-test/expect" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 46, - "col": 2, - "byteIndex": 1429 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "jsDoc": { - "doc": "Query succeeded." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 49, - "col": 2, - "byteIndex": 1484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 9603, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." } - }, - "typeParams": [] - }, - { - "name": "error", - "jsDoc": { - "doc": "No error for successful queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 52, - "col": 2, - "byteIndex": 1548 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "rows", - "jsDoc": { - "doc": "Query result rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 55, - "col": 2, - "byteIndex": 1601 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" } - } + ] } - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 58, - "col": 2, - "byteIndex": 1667 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 61, - "col": 2, - "byteIndex": 1748 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] + ] }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 64, - "col": 2, - "byteIndex": 1843 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - } + "typeParameters": [ + { + "id": 9604, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 9784, + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" + } + } + ], + "parameters": [ + { + "id": 9605, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "expect.ts", + "qualifiedName": "NotAny" }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "SqlQueryResultError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 73, - "col": 0, - "byteIndex": 2182 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for query errors (syntax errors, constraint violations, etc.).\n\nServer received and processed the query, but it failed due to a SQL error." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "typeArguments": [ + { + "type": "reference", + "target": 9604, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - } - ], - "typeName": "SqlQueryResultBase" + ], + "name": "NotAny", + "package": "@probitas-test/expect" + } } + ], + "type": { + "type": "reference", + "target": 5739, + "name": "GraphqlResponseExpectation", + "package": "@probitas-test/expect" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server processed the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 75, - "col": 2, - "byteIndex": 2299 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "typeParams": [] - }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 78, - "col": 2, - "byteIndex": 2351 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "typeParams": [] - }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the SQL error." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 81, - "col": 2, - "byteIndex": 2415 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + }, + { + "id": 9606, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." } - }, - "typeParams": [] - }, - { - "name": "rows", - "jsDoc": { - "doc": "Empty rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 84, - "col": 2, - "byteIndex": 2484 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" } - } - } - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Zero affected rows for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 87, - "col": 2, - "byteIndex": 2568 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 + ] } - }, - "typeParams": [] - }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 90, - "col": 2, - "byteIndex": 2638 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] + ] }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings for failed queries." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 93, - "col": 2, - "byteIndex": 2711 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "SqlQueryResultFailure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 103, - "col": 0, - "byteIndex": 3071 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result for connection failures (network errors, timeouts, etc.).\n\nQuery could not be processed by the server (connection refused, timeout,\npool exhausted, authentication failure, etc.)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "SqlQueryResultBase", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "typeParameters": [ + { + "id": 9607, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 9498, + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + } + ], + "parameters": [ + { + "id": 9608, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "expect.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9607, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - } - ], - "typeName": "SqlQueryResultBase" + ], + "name": "NotAny", + "package": "@probitas-test/expect" + } } + ], + "type": { + "type": "reference", + "target": 9197, + "name": "SqlQueryResultExpectation", + "package": "@probitas-test/expect" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "processed", - "jsDoc": { - "doc": "Server did not process the query." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 105, - "col": 2, - "byteIndex": 3196 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + }, + { + "id": 9609, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." } - }, - "typeParams": [] - }, - { - "name": "ok", - "jsDoc": { - "doc": "Query failed." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 108, - "col": 2, - "byteIndex": 3249 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "Error describing the failure." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 111, - "col": 2, - "byteIndex": 3311 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" + "typeParameters": [ + { + "id": 9610, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 7195, + "name": "RedisResult", + "package": "@probitas-test/client-redis" + } + } + ], + "parameters": [ + { + "id": 9611, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "expect.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 9610, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "NotAny", + "package": "@probitas-test/expect" } - }, - "typeParams": [] - }, - { - "name": "rows", - "jsDoc": { - "doc": "No rows (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 114, - "col": 2, - "byteIndex": 3393 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "No row count (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 117, - "col": 2, - "byteIndex": 3468 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "No lastInsertId (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 120, - "col": 2, - "byteIndex": 3550 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - }, - { - "name": "warnings", - "jsDoc": { - "doc": "No warnings (query didn't reach server)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 123, - "col": 2, - "byteIndex": 3632 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } + ], + "type": { + "type": "reference", + "target": 6805, + "typeArguments": [ + { + "type": "reference", + "target": 9610, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "RedisExpectation", + "package": "@probitas-test/expect" } - ] - } - }, - { - "name": "SqlQueryResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 164, - "col": 0, - "byteIndex": 5113 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result union type representing all possible result states.\n\n- **Success**: `processed: true, ok: true, error: null`\n- **Error**: `processed: true, ok: false, error: SqlError`\n- **Failure**: `processed: false, ok: false, error: SqlConnectionError`\n", - "tags": [ - { - "kind": "example", - "doc": "Type narrowing by ok\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```\n" - }, - { - "kind": "example", - "doc": "Type narrowing by processed\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" - } - ] - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccess" + }, + { + "id": 9612, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." } - }, - { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "blockTags": [ + { + "tag": "@example", + "content": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" } - ], - "typeName": "SqlQueryResultError" + ] } - }, + ] + }, + "typeParameters": [ + { + "id": 9613, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 10912, + "name": "MongoResult", + "package": "@probitas-test/client-mongodb" + } + } + ], + "parameters": [ { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 9614, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "expect.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "type": "reference", + "target": 9613, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } ], - "typeName": "SqlQueryResultFailure" + "name": "NotAny", + "package": "@probitas-test/expect" } } - ] - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + ], + "type": { + "type": "reference", + "target": 7456, + "typeArguments": [ + { + "type": "reference", + "target": 9613, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "MongoExpectation", + "package": "@probitas-test/expect" } - ] - } - }, - { - "name": "SqlQueryResultSuccessParams", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 173, - "col": 0, - "byteIndex": 5415 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Parameters for creating a SqlQueryResultSuccess." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "rows", - "jsDoc": { - "doc": "The result rows" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 175, - "col": 2, - "byteIndex": 5498 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } + }, + { + "id": 9615, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." } - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Number of affected rows (for INSERT/UPDATE/DELETE)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 178, - "col": 2, - "byteIndex": 5590 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "duration", - "jsDoc": { - "doc": "Query execution duration in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 181, - "col": 2, - "byteIndex": 5670 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] + } + ] }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Last inserted ID (for INSERT statements)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 184, - "col": 2, - "byteIndex": 5750 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" + "typeParameters": [ + { + "id": 9616, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 9028, + "name": "RabbitMqResult", + "package": "@probitas-test/client-rabbitmq" + } + } + ], + "parameters": [ + { + "id": 9617, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "expect.ts", + "qualifiedName": "NotAny" }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ] - }, - "typeParams": [] - }, - { - "name": "warnings", - "jsDoc": { - "doc": "Warning messages from the database" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 187, - "col": 2, - "byteIndex": 5838 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "typeArguments": [ + { + "type": "reference", + "target": 9616, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - } + ], + "name": "NotAny", + "package": "@probitas-test/expect" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - } - ] - } - }, - { - "name": "SqlQueryResultSuccessImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 194, - "col": 0, - "byteIndex": 5945 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultSuccess.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "SqlQueryResultSuccessParams", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccessParams" - } - } + ], + "type": { + "type": "reference", + "target": 8686, + "typeArguments": [ + { + "type": "reference", + "target": 9616, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 205, - "col": 2, - "byteIndex": 6343 - } + "name": "RabbitMqExpectation", + "package": "@probitas-test/expect" } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 195, - "col": 2, - "byteIndex": 6027 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 196, - "col": 2, - "byteIndex": 6061 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + }, + { + "id": 9618, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 197, - "col": 2, - "byteIndex": 6099 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 198, - "col": 2, - "byteIndex": 6130 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" } - } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 199, - "col": 2, - "byteIndex": 6155 - } - }, - { - "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.5.1/result.ts", - "line": 200, - "col": 2, - "byteIndex": 6186 - } - }, - { - "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.5.1/result.ts", - "line": 201, - "col": 2, - "byteIndex": 6215 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" + ] + }, + "typeParameters": [ + { + "id": 9619, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 11566, + "name": "SqsResult", + "package": "@probitas-test/client-sqs" + } + } + ], + "parameters": [ + { + "id": 9620, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "expect.ts", + "qualifiedName": "NotAny" }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 202, - "col": 2, - "byteIndex": 6244 - } - }, - { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } + "typeArguments": [ + { + "type": "reference", + "target": 9619, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 203, - "col": 2, - "byteIndex": 6293 + ], + "name": "NotAny", + "package": "@probitas-test/expect" + } } + ], + "type": { + "type": "reference", + "target": 8109, + "typeArguments": [ + { + "type": "reference", + "target": 9619, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "SqsExpectation", + "package": "@probitas-test/expect" } - ], - "indexSignatures": [], - "methods": [ - { - "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": [] - } + }, + { + "id": 9621, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + } + ] + }, + "parameters": [ + { + "id": 9622, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "target": 9630, + "name": "AnythingExpectation", + "package": "@probitas-test/expect" + } + } + ] + }, + { + "id": 9727, + "name": "expectAnything", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 9728, + "name": "expectAnything", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates a chainable expectation for any value using @std/expect matchers.\n\nThis wrapper allows method chaining, unlike @std/expect which returns void." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "Chainable expectation interface" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 213, - "col": 2, - "byteIndex": 6605 - } - }, - { - "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": [] - } + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expectAnything } from \"@probitas-test/expect\";\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(\"ello\");\n```" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + } + ] + }, + "typeParameters": [ + { + "id": 9729, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 9730, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Value to test" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 221, - "col": 2, - "byteIndex": 6769 + "type": { + "type": "reference", + "target": 9729, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } } + ], + "type": { + "type": "reference", + "target": 9630, + "name": "AnythingExpectation", + "package": "@probitas-test/expect" } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccess" - } + } + ] + }, + { + "id": 6116, + "name": "expectConnectRpcResponse", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 6117, + "name": "expectConnectRpcResponse", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6118, + "name": "response", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9825, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "type": { + "type": "reference", + "target": 6119, + "name": "ConnectRpcResponseExpectation", + "package": "@probitas-test/expect" } - ], - "typeParams": [ - { - "name": "T" + } + ] + }, + { + "id": 5736, + "name": "expectGraphqlResponse", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 5737, + "name": "expectGraphqlResponse", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5738, + "name": "response", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9784, + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" + } + } + ], + "type": { + "type": "reference", + "target": 5739, + "name": "GraphqlResponseExpectation", + "package": "@probitas-test/expect" } - ], - "superTypeParams": [] - } + } + ] }, { - "name": "SqlQueryResultErrorImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 234, - "col": 0, - "byteIndex": 6999 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultError.", - "tags": [ - { - "kind": "internal" + "id": 6563, + "name": "expectGrpcResponse", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 6564, + "name": "expectGrpcResponse", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 6565, + "name": "response", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9825, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "type": { + "type": "reference", + "target": 6566, + "name": "GrpcResponseExpectation", + "package": "@probitas-test/expect" } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + } + ] + }, + { + "id": 5213, + "name": "expectHttpResponse", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 5214, + "name": "expectHttpResponse", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 5215, + "name": "response", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9731, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + } + ], + "type": { + "type": "reference", + "target": 5216, + "name": "HttpResponseExpectation", + "package": "@probitas-test/expect" + } + } + ] + }, + { + "id": 7452, + "name": "expectMongoResult", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 7453, + "name": "expectMongoResult", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "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." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { MongoFindResult, MongoInsertOneResult, MongoUpdateResult, MongoDeleteResult, MongoFindOneResult, MongoCountResult } from \"@probitas-test/client-mongodb\";\nimport { expectMongoResult } from \"./mongodb.ts\";\n\n// For find result - returns MongoFindResultExpectation\nconst findResult = {\n kind: \"mongo:find\",\n ok: true,\n docs: [{ name: \"Alice\" }],\n duration: 0,\n} as unknown as MongoFindResult;\nexpectMongoResult(findResult).toBeOk().toHaveDocsCount(1);\n\n// For insert result - returns MongoInsertOneResultExpectation\nconst insertResult = {\n kind: \"mongo:insert-one\",\n ok: true,\n insertedId: \"123\",\n duration: 0,\n} as unknown as MongoInsertOneResult;\nexpectMongoResult(insertResult).toBeOk().toHaveInsertedId(\"123\");\n\n// For update result - returns MongoUpdateResultExpectation\nconst updateResult = {\n kind: \"mongo:update\",\n ok: true,\n matchedCount: 1,\n modifiedCount: 1,\n duration: 0,\n} as unknown as MongoUpdateResult;\nexpectMongoResult(updateResult).toBeOk().toHaveMatchedCount(1).toHaveModifiedCount(1);\n\n// For delete result - returns MongoDeleteResultExpectation\nconst deleteResult = {\n kind: \"mongo:delete\",\n ok: true,\n deletedCount: 1,\n duration: 0,\n} as unknown as MongoDeleteResult;\nexpectMongoResult(deleteResult).toBeOk().toHaveDeletedCount(1);\n\n// For findOne result - returns MongoFindOneResultExpectation\nconst findOneResult = {\n kind: \"mongo:find-one\",\n ok: true,\n doc: { name: \"Alice\" },\n duration: 0,\n} as unknown as MongoFindOneResult;\nexpectMongoResult(findOneResult).toBeOk().toHaveDocPresent();\n\n// For count result - returns MongoCountResultExpectation\nconst countResult = {\n kind: \"mongo:count\",\n ok: true,\n count: 10,\n duration: 0,\n} as unknown as MongoCountResult;\nexpectMongoResult(countResult).toBeOk().toHaveCount(10);\n```" } - } - }, + ] + } + ] + }, + "typeParameters": [ + { + "id": 7454, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 10912, + "name": "MongoResult", + "package": "@probitas-test/client-mongodb" + } + } + ], + "parameters": [ + { + "id": 7455, + "name": "result", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 7454, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 7456, + "typeArguments": [ { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "type": "reference", + "target": 7454, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 245, - "col": 2, - "byteIndex": 7373 - } + "name": "MongoExpectation", + "package": "@probitas-test/expect" } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 235, - "col": 2, - "byteIndex": 7077 - } - }, - { - "tsType": { - "repr": "true", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": true + } + ] + }, + { + "id": 8682, + "name": "expectRabbitMqResult", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 8683, + "name": "expectRabbitMqResult", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "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." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RabbitMqPublishResult, RabbitMqConsumeResult, RabbitMqQueueResult, RabbitMqExchangeResult, RabbitMqAckResult } from \"@probitas-test/client-rabbitmq\";\nimport { expectRabbitMqResult } from \"./rabbitmq.ts\";\n\n// For publish result - returns RabbitMqPublishResultExpectation\nconst publishResult = {\n kind: \"rabbitmq:publish\",\n ok: true,\n duration: 0,\n} as unknown as RabbitMqPublishResult;\nexpectRabbitMqResult(publishResult).toBeOk();\n\n// For consume result - returns RabbitMqConsumeResultExpectation\nconst consumeResult = {\n kind: \"rabbitmq:consume\",\n ok: true,\n message: { content: new Uint8Array() },\n duration: 0,\n} as unknown as RabbitMqConsumeResult;\nexpectRabbitMqResult(consumeResult).toBeOk().toHaveMessagePresent();\n\n// For queue result - returns RabbitMqQueueResultExpectation\nconst queueResult = {\n kind: \"rabbitmq:queue\",\n ok: true,\n queue: \"my-queue\",\n messageCount: 0,\n consumerCount: 0,\n duration: 0,\n} as unknown as RabbitMqQueueResult;\nexpectRabbitMqResult(queueResult).toBeOk().toHaveMessageCount(0);\n\n// For exchange result - returns RabbitMqExchangeResultExpectation\nconst exchangeResult = {\n kind: \"rabbitmq:exchange\",\n ok: true,\n duration: 0,\n} as unknown as RabbitMqExchangeResult;\nexpectRabbitMqResult(exchangeResult).toBeOk();\n\n// For ack result - returns RabbitMqAckResultExpectation\nconst ackResult = {\n kind: \"rabbitmq:ack\",\n ok: true,\n duration: 0,\n} as unknown as RabbitMqAckResult;\nexpectRabbitMqResult(ackResult).toBeOk();\n```" + } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 236, - "col": 2, - "byteIndex": 7111 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + ] + }, + "typeParameters": [ + { + "id": 8684, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 9028, + "name": "RabbitMqResult", + "package": "@probitas-test/client-rabbitmq" + } + } + ], + "parameters": [ + { + "id": 8685, + "name": "result", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 8684, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 237, - "col": 2, - "byteIndex": 7149 - } - }, - { - "tsType": { - "repr": "SqlError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlError" + } + ], + "type": { + "type": "reference", + "target": 8686, + "typeArguments": [ + { + "type": "reference", + "target": 8684, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 238, - "col": 2, - "byteIndex": 7181 - } - }, - { - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" + ], + "name": "RabbitMqExpectation", + "package": "@probitas-test/expect" + } + } + ] + }, + { + "id": 6801, + "name": "expectRedisResult", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 6802, + "name": "expectRedisResult", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "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." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RedisGetResult, RedisCountResult, RedisArrayResult } from \"@probitas-test/client-redis\";\nimport { expectRedisResult } from \"./redis.ts\";\n\n// For GET result - returns RedisGetResultExpectation\nconst getResult = {\n kind: \"redis:get\",\n ok: true,\n value: \"expected\",\n duration: 0,\n} as unknown as RedisGetResult;\nexpectRedisResult(getResult).toBeOk().toHaveValue(\"expected\");\n\n// For COUNT result - returns RedisCountResultExpectation\nconst countResult = {\n kind: \"redis:count\",\n ok: true,\n value: 1,\n duration: 0,\n} as unknown as RedisCountResult;\nexpectRedisResult(countResult).toBeOk().toHaveValue(1);\n\n// For ARRAY result - returns RedisArrayResultExpectation\nconst arrayResult = {\n kind: \"redis:array\",\n ok: true,\n value: [\"a\", \"b\", \"item\"],\n duration: 0,\n} as unknown as RedisArrayResult;\nexpectRedisResult(arrayResult).toBeOk().toHaveValueCount(3).toHaveValueContaining(\"item\");\n```" } - } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 239, - "col": 2, - "byteIndex": 7209 - } - }, - { - "tsType": { - "repr": "0", - "kind": "literal", - "literal": { - "kind": "number", - "number": 0 + ] + }, + "typeParameters": [ + { + "id": 6803, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 7195, + "name": "RedisResult", + "package": "@probitas-test/client-redis" + } + } + ], + "parameters": [ + { + "id": 6804, + "name": "result", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 6803, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 240, - "col": 2, - "byteIndex": 7249 - } - }, - { - "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.5.1/result.ts", - "line": 241, - "col": 2, - "byteIndex": 7283 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 242, - "col": 2, - "byteIndex": 7312 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 243, - "col": 2, - "byteIndex": 7344 } + ], + "type": { + "type": "reference", + "target": 6805, + "typeArguments": [ + { + "type": "reference", + "target": 6803, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "RedisExpectation", + "package": "@probitas-test/expect" } - ], - "indexSignatures": [], - "methods": [ - { - "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.5.1/result.ts", - "line": 250, - "col": 2, - "byteIndex": 7483 - } - }, - { - "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" + } + ] + }, + { + "id": 9193, + "name": "expectSqlQueryResult", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 9194, + "name": "expectSqlQueryResult", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 9195, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" } - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 254, - "col": 2, - "byteIndex": 7543 + ], + "name": "Record", + "package": "typescript" + } } - } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ], + "parameters": [ + { + "id": 9196, + "name": "result", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 9498, + "typeArguments": [ + { + "type": "reference", + "target": 9195, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - } - ], - "typeName": "SqlQueryResultError" + ], + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } } + ], + "type": { + "type": "reference", + "target": 9197, + "name": "SqlQueryResultExpectation", + "package": "@probitas-test/expect" } - ], - "typeParams": [ - { - "name": "T" - } - ], - "superTypeParams": [] - } + } + ] }, { - "name": "SqlQueryResultFailureImpl", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 263, - "col": 0, - "byteIndex": 7669 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Implementation of SqlQueryResultFailure.", - "tags": [ - { - "kind": "internal" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ + "id": 8105, + "name": "expectSqsResult", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 8106, + "name": "expectSqsResult", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "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." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A typed expectation object matching the result type" + } + ] + }, { - "kind": "identifier", - "name": "error", - "optional": false, - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" + "tag": "@example", + "name": "Send result validation", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqsSendResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsResult } from \"./sqs.ts\";\nconst sendResult = {\n kind: \"sqs:send\",\n ok: true,\n messageId: \"msg-123\",\n md5OfBody: \"abc123\",\n sequenceNumber: undefined,\n duration: 50,\n} as unknown as SqsSendResult;\nexpectSqsResult(sendResult)\n .toBeOk()\n .toHaveMessageIdContaining(\"msg\")\n .toHaveDurationLessThan(1000);\n```" } - } + ] }, { - "kind": "identifier", - "name": "duration", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 274, - "col": 2, - "byteIndex": 8033 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "sql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "sql" - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "kind", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 264, - "col": 2, - "byteIndex": 7751 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false - } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "processed", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 265, - "col": 2, - "byteIndex": 7785 - } - }, - { - "tsType": { - "repr": "false", - "kind": "literal", - "literal": { - "kind": "boolean", - "boolean": false + "tag": "@example", + "name": "Receive result validation", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqsReceiveResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsResult } from \"./sqs.ts\";\nconst receiveResult = {\n kind: \"sqs:receive\",\n ok: true,\n messages: [{ body: \"test message\" }],\n duration: 0,\n} as unknown as SqsReceiveResult;\nexpectSqsResult(receiveResult)\n .toBeOk()\n .toHaveMessagesCountGreaterThanOrEqual(1);\n```" + } + ] + }, + { + "tag": "@example", + "name": "Batch operations", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqsSendBatchResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsResult } from \"./sqs.ts\";\nconst batchResult = {\n kind: \"sqs:send-batch\",\n ok: true,\n successful: [{ id: \"1\" }, { id: \"2\" }],\n failed: [],\n duration: 0,\n} as unknown as SqsSendBatchResult;\nexpectSqsResult(batchResult)\n .toBeOk()\n .toHaveSuccessfulCount(2)\n .toHaveFailedEmpty();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Queue management", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { SqsEnsureQueueResult } from \"@probitas-test/client-sqs\";\nimport { expectSqsResult } from \"./sqs.ts\";\nconst ensureResult = {\n kind: \"sqs:ensure-queue\",\n ok: true,\n queueUrl: \"https://sqs.example.com/test-queue\",\n duration: 0,\n} as unknown as SqsEnsureQueueResult;\nexpectSqsResult(ensureResult)\n .toBeOk()\n .toHaveQueueUrlContaining(\"test-queue\");\n```" + } + ] } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 266, - "col": 2, - "byteIndex": 7824 - } - }, - { - "tsType": { - "repr": "SqlFailureError", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlFailureError" + ] + }, + "typeParameters": [ + { + "id": 8107, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 11566, + "name": "SqsResult", + "package": "@probitas-test/client-sqs" + } + } + ], + "parameters": [ + { + "id": 8108, + "name": "result", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The SQS result to create expectations for" + } + ] + }, + "type": { + "type": "reference", + "target": 8107, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "error", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 267, - "col": 2, - "byteIndex": 7856 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 268, - "col": 2, - "byteIndex": 7891 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 269, - "col": 2, - "byteIndex": 7915 - } - }, - { - "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.5.1/result.ts", - "line": 270, - "col": 2, - "byteIndex": 7943 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "lastInsertId", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 271, - "col": 2, - "byteIndex": 7972 - } - }, - { - "tsType": { - "repr": "null", - "kind": "keyword", - "keyword": "null" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "warnings", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 272, - "col": 2, - "byteIndex": 8004 } + ], + "type": { + "type": "reference", + "target": 8109, + "typeArguments": [ + { + "type": "reference", + "target": 8107, + "name": "R", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "SqsExpectation", + "package": "@probitas-test/expect" } - ], - "indexSignatures": [], - "methods": [ - { - "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": [] - } + } + ] + }, + { + "id": 6415, + "name": "fromConnectError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 6416, + "name": "fromConnectError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert ConnectRPC's ConnectError to ConnectRpcError." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "ConnectRpcError with statusCode for discrimination" } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + ] + } + ] + }, + "parameters": [ + { + "id": 6417, + "name": "error", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The ConnectError from @connectrpc/connect" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] + "type": { + "type": "reference", + "target": { + "packageName": "@connectrpc/connect", + "packagePath": "dist/esm/connect-error.d.ts", + "qualifiedName": "ConnectError" + }, + "name": "ConnectError", + "package": "@connectrpc/connect" + } }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 279, - "col": 2, - "byteIndex": 8150 - } - }, - { - "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" + { + "id": 6418, + "name": "metadata", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional metadata from the response" } - } + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 283, - "col": 2, - "byteIndex": 8210 + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "Headers" + }, + "name": "Headers", + "package": "typescript" + } } + ], + "type": { + "type": "reference", + "target": 6432, + "name": "ConnectRpcError", + "package": "@probitas-test/client-connectrpc" } - ], - "extends": null, - "implements": [ - { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + } + ] + }, + { + "id": 6389, + "name": "getStatusName", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 6390, + "name": "getStatusName", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the name of a ConnectRPC/gRPC status code." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```typescript\ngetStatusName(0); // \"OK\"\ngetStatusName(5); // \"NOT_FOUND\"\ngetStatusName(16); // \"UNAUTHENTICATED\"\n```" } - } - ], - "typeName": "SqlQueryResultFailure" + ] + } + ] + }, + "parameters": [ + { + "id": 6391, + "name": "code", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 6414, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 6392, + "name": "isConnectRpcStatusCode", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 6393, + "name": "isConnectRpcStatusCode", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if a number is a valid ConnectRPC/gRPC status code." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```typescript\nisConnectRpcStatusCode(0); // true\nisConnectRpcStatusCode(16); // true\nisConnectRpcStatusCode(99); // false\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 6394, + "name": "code", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "predicate", + "name": "code", + "asserts": false, + "targetType": { + "type": "reference", + "target": 6414, + "name": "ConnectRpcStatusCode", + "package": "@probitas-test/client-connectrpc" } } - ], - "typeParams": [ - { - "name": "T" + } + ] + }, + { + "id": 9627, + "name": "isExpectationError", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 9628, + "name": "isExpectationError", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Check if an error is an ExpectationError.\n\nHandles both same-process (instanceof) and cross-process (name check)\nscenarios, supporting worker serialization." + } + ] + }, + "parameters": [ + { + "id": 9629, + "name": "err", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } - ], - "superTypeParams": [] - } + } + ] + }, + { + "id": 9877, + "name": "getGrpcStatusName", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 6389 + }, + { + "id": 9866, + "name": "GrpcClient", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 6530 + }, + { + "id": 9867, + "name": "GrpcError", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 6432 + }, + { + "id": 9868, + "name": "GrpcErrorOptions", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 6429 + }, + { + "id": 9869, + "name": "GrpcNetworkError", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 6419 + }, + { + "id": 9870, + "name": "GrpcOptions", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 6367 + }, + { + "id": 9871, + "name": "GrpcResponse", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 9825 + }, + { + "id": 9872, + "name": "GrpcResponseError", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 9827 + }, + { + "id": 9873, + "name": "GrpcResponseFailure", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 9840 + }, + { + "id": 9874, + "name": "GrpcResponseSuccess", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 9853 + }, + { + "id": 9875, + "name": "GrpcStatus", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 6395 + }, + { + "id": 9876, + "name": "GrpcStatusCode", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 6414 + }, + { + "id": 9878, + "name": "isGrpcStatusCode", + "variant": "reference", + "kind": 4194304, + "flags": {}, + "target": 6392 } - ] + ], + "packageName": "@probitas-test/expect", + "packageVersion": "0.5.1" } diff --git a/data/api/index.json b/data/api/index.json index 7d542e9..2ed6254 100644 --- a/data/api/index.json +++ b/data/api/index.json @@ -2,8 +2,8 @@ "packages": [ { "name": "builder", - "specifier": "@probitas/builder", - "version": "0.5.3", + "specifier": "@probitas-test/builder", + "version": "0.5.4", "exportCount": 4, "counts": { "classes": 0, @@ -16,8 +16,8 @@ }, { "name": "client", - "specifier": "@probitas/client", - "version": "0.6.0", + "specifier": "@probitas-test/client", + "version": "0.6.1", "exportCount": 9, "counts": { "classes": 4, @@ -30,11 +30,11 @@ }, { "name": "client-connectrpc", - "specifier": "@probitas/client-connectrpc", - "version": "0.7.1", - "exportCount": 34, + "specifier": "@probitas-test/client-connectrpc", + "version": "0.7.2", + "exportCount": 31, "counts": { - "classes": 5, + "classes": 2, "interfaces": 17, "functions": 4, "types": 7, @@ -44,11 +44,11 @@ }, { "name": "client-graphql", - "specifier": "@probitas/client-graphql", - "version": "0.7.0", - "exportCount": 19, + "specifier": "@probitas-test/client-graphql", + "version": "0.7.1", + "exportCount": 16, "counts": { - "classes": 5, + "classes": 2, "interfaces": 11, "functions": 1, "types": 2, @@ -58,8 +58,8 @@ }, { "name": "client-grpc", - "specifier": "@probitas/client-grpc", - "version": "0.6.1", + "specifier": "@probitas-test/client-grpc", + "version": "0.6.2", "exportCount": 22, "counts": { "classes": 2, @@ -72,11 +72,11 @@ }, { "name": "client-http", - "specifier": "@probitas/client-http", - "version": "0.8.0", - "exportCount": 22, + "specifier": "@probitas-test/client-http", + "version": "0.8.1", + "exportCount": 19, "counts": { - "classes": 5, + "classes": 2, "interfaces": 10, "functions": 1, "types": 6, @@ -86,11 +86,11 @@ }, { "name": "client-mongodb", - "specifier": "@probitas/client-mongodb", - "version": "0.6.1", - "exportCount": 72, + "specifier": "@probitas-test/client-mongodb", + "version": "0.6.2", + "exportCount": 51, "counts": { - "classes": 28, + "classes": 7, "interfaces": 30, "functions": 1, "types": 13, @@ -100,11 +100,11 @@ }, { "name": "client-rabbitmq", - "specifier": "@probitas/client-rabbitmq", - "version": "0.5.1", - "exportCount": 63, + "specifier": "@probitas-test/client-rabbitmq", + "version": "0.5.2", + "exportCount": 48, "counts": { - "classes": 20, + "classes": 5, "interfaces": 33, "functions": 1, "types": 9, @@ -114,11 +114,11 @@ }, { "name": "client-redis", - "specifier": "@probitas/client-redis", - "version": "0.5.1", - "exportCount": 60, + "specifier": "@probitas-test/client-redis", + "version": "0.5.2", + "exportCount": 42, "counts": { - "classes": 22, + "classes": 4, "interfaces": 28, "functions": 1, "types": 9, @@ -128,11 +128,11 @@ }, { "name": "client-sql", - "specifier": "@probitas/client-sql", - "version": "0.5.1", - "exportCount": 21, + "specifier": "@probitas-test/client-sql", + "version": "0.5.2", + "exportCount": 18, "counts": { - "classes": 8, + "classes": 5, "interfaces": 8, "functions": 0, "types": 5, @@ -142,11 +142,11 @@ }, { "name": "client-sql-duckdb", - "specifier": "@probitas/client-sql-duckdb", - "version": "0.5.1", - "exportCount": 33, + "specifier": "@probitas-test/client-sql-duckdb", + "version": "0.5.2", + "exportCount": 30, "counts": { - "classes": 12, + "classes": 9, "interfaces": 12, "functions": 3, "types": 6, @@ -156,11 +156,11 @@ }, { "name": "client-sql-mysql", - "specifier": "@probitas/client-sql-mysql", - "version": "0.5.1", - "exportCount": 36, + "specifier": "@probitas-test/client-sql-mysql", + "version": "0.5.2", + "exportCount": 33, "counts": { - "classes": 12, + "classes": 9, "interfaces": 15, "functions": 3, "types": 6, @@ -170,11 +170,11 @@ }, { "name": "client-sql-postgres", - "specifier": "@probitas/client-sql-postgres", - "version": "0.5.1", - "exportCount": 32, + "specifier": "@probitas-test/client-sql-postgres", + "version": "0.5.2", + "exportCount": 29, "counts": { - "classes": 9, + "classes": 6, "interfaces": 15, "functions": 3, "types": 5, @@ -184,11 +184,11 @@ }, { "name": "client-sql-sqlite", - "specifier": "@probitas/client-sql-sqlite", - "version": "0.6.0", - "exportCount": 35, + "specifier": "@probitas-test/client-sql-sqlite", + "version": "0.6.1", + "exportCount": 32, "counts": { - "classes": 13, + "classes": 10, "interfaces": 12, "functions": 3, "types": 7, @@ -198,12 +198,12 @@ }, { "name": "client-sqs", - "specifier": "@probitas/client-sqs", - "version": "0.6.0", - "exportCount": 77, + "specifier": "@probitas-test/client-sqs", + "version": "0.6.1", + "exportCount": 56, "counts": { - "classes": 28, - "interfaces": 38, + "classes": 0, + "interfaces": 45, "functions": 1, "types": 10, "variables": 0, @@ -212,8 +212,8 @@ }, { "name": "core", - "specifier": "@probitas/core", - "version": "0.3.3", + "specifier": "@probitas-test/core", + "version": "0.3.4", "exportCount": 9, "counts": { "classes": 0, @@ -226,8 +226,8 @@ }, { "name": "discover", - "specifier": "@probitas/discover", - "version": "0.4.1", + "specifier": "@probitas-test/discover", + "version": "0.4.2", "exportCount": 3, "counts": { "classes": 0, @@ -240,13 +240,13 @@ }, { "name": "expect", - "specifier": "@probitas/expect", - "version": "0.5.0", - "exportCount": 440, + "specifier": "@probitas-test/expect", + "version": "0.5.1", + "exportCount": 331, "counts": { - "classes": 122, - "interfaces": 207, - "functions": 32, + "classes": 28, + "interfaces": 214, + "functions": 23, "types": 65, "variables": 1, "enums": 0 @@ -254,22 +254,22 @@ }, { "name": "probitas", - "specifier": "@probitas/probitas", - "version": "2.0.0", - "exportCount": 79, + "specifier": "@probitas-test/probitas", + "version": "2.0.2", + "exportCount": 56, "counts": { "classes": 6, "interfaces": 8, - "functions": 47, - "types": 16, + "functions": 27, + "types": 14, "variables": 1, "enums": 0 } }, { "name": "reporter", - "specifier": "@probitas/reporter", - "version": "0.7.2", + "specifier": "@probitas-test/reporter", + "version": "0.7.3", "exportCount": 5, "counts": { "classes": 2, @@ -282,8 +282,8 @@ }, { "name": "runner", - "specifier": "@probitas/runner", - "version": "0.5.7", + "specifier": "@probitas-test/runner", + "version": "0.5.8", "exportCount": 13, "counts": { "classes": 4, diff --git a/data/api/probitas.json b/data/api/probitas.json index 34e347d..aef59a3 100644 --- a/data/api/probitas.json +++ b/data/api/probitas.json @@ -1,9926 +1,11619 @@ { - "name": "probitas", - "specifier": "@probitas/probitas", - "version": "2.0.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/probitas-test/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/core](https://jsr.io/@probitas/core) | 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 `@faker-js/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/2.0.0/src/mod.ts", - "line": 111, - "col": 7, - "byteIndex": 4440 + "schemaVersion": "2.0", + "id": 11975, + "name": "@probitas-test/probitas", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "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/probitas-test/probitas)\n- [Documentation](" + }, + { + "kind": "relative-link", + "text": "./.claude/README.md" + }, + { + "kind": "text", + "text": ")\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/core](https://jsr.io/@probitas/core) | 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- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "scenario", + "target": 12404 + }, + { + "kind": "text", + "text": " - Factory function to create scenario builders\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "Skip", + "target": 12408 + }, + { + "kind": "text", + "text": " - Utility to skip steps or scenarios conditionally\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "StepContext", + "target": 12413 + }, + { + "kind": "text", + "text": " - Type representing the context passed to each step\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "client", + "target": 12421 + }, + { + "kind": "text", + "text": " - Namespace containing all available client implementations\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "expect", + "target": 12422 + }, + { + "kind": "text", + "text": " - Assertion utilities (from " + }, + { + "kind": "code", + "text": "`@std/expect`" + }, + { + "kind": "text", + "text": ")\n\n## Re-exported Utilities\n\nFor convenience, this module also re-exports commonly used testing utilities:\n\n- " + }, + { + "kind": "code", + "text": "`faker`" + }, + { + "kind": "text", + "text": " - Fake data generation from " + }, + { + "kind": "code", + "text": "`@faker-js/faker`" + }, + { + "kind": "text", + "text": "\n- " + }, + { + "kind": "code", + "text": "`FakeTime`" + }, + { + "kind": "text", + "text": " - Time mocking utilities from " + }, + { + "kind": "code", + "text": "`@std/testing/time`" + }, + { + "kind": "text", + "text": "\n- " + }, + { + "kind": "code", + "text": "`spy`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`stub`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`assertSpyCalls`" + }, + { + "kind": "text", + "text": " - Mock utilities from " + }, + { + "kind": "code", + "text": "`@std/testing/mock`" + }, + { + "kind": "text", + "text": "\n- " + }, + { + "kind": "code", + "text": "`tryOr`" + }, + { + "kind": "text", + "text": ", " + }, + { + "kind": "code", + "text": "`raise`" + }, + { + "kind": "text", + "text": " - Error handling utilities from " + }, + { + "kind": "code", + "text": "`@core/errorutil`" + }, + { + "kind": "text", + "text": "\n- " }, - "declarationKind": "export", - "jsDoc": { - "doc": "Pre-configured client factories for common external services.\n\nThis module provides convenient wrappers around popular client libraries,\npre-configured for testing scenarios with sensible defaults.\n\n## Available Clients\n\n| Client | Description | Usage |\n|--------|-------------|-------|\n| {@linkcode http} | HTTP/REST API client | `client.http({ baseUrl: \"...\" })` |\n| {@linkcode graphql} | GraphQL client | `client.graphql({ endpoint: \"...\" })` |\n| {@linkcode grpc} | gRPC client | `client.grpc({ ... })` |\n| {@linkcode connectrpc} | Connect-RPC client | `client.connectrpc({ ... })` |\n| {@linkcode mongodb} | MongoDB client | `client.mongodb({ uri: \"...\" })` |\n| {@linkcode redis} | Redis client | `client.redis({ ... })` |\n| {@linkcode sql} | SQL database client | `client.sql.postgres({ ... })` |\n| {@linkcode rabbitmq} | RabbitMQ client | `client.rabbitmq({ ... })` |\n| {@linkcode sqs} | AWS SQS client | `client.sqs({ ... })` |\n", - "tags": [ - { - "kind": "example", - "doc": "HTTP client usage\n```ts\nimport { scenario, client } from \"@probitas-test/probitas\";\nimport { expectHttpResponse } from \"@probitas-test/expect\";\n\nconst api = client.http.createHttpClient({ url: \"https://api.example.com\" });\n\nexport default scenario(\"API Test\")\n .step(\"Fetch users\", async () => {\n const response = await api.get(\"/users\");\n expectHttpResponse(response).toBeOk().toHaveStatus(200);\n return response.json();\n })\n .build();\n```\n" - }, - { - "kind": "example", - "doc": "MongoDB client usage\n```ts\nimport { scenario, client } from \"@probitas-test/probitas\";\n\n// Mock environment variable for this example\nconst mongoUrl = \"mongodb://localhost:27017\";\n\nexport default scenario(\"Database Test\")\n .resource(\"db\", async () => {\n return await client.mongodb.createMongoClient({\n url: mongoUrl,\n database: \"testdb\",\n });\n })\n .step(\"Query data\", async (ctx) => {\n const result = await ctx.resources.db.collection(\"users\").find({});\n return { count: result.docs?.length ?? 0 };\n })\n .build();\n```\n" - }, + { + "kind": "code", + "text": "`outdent`" + }, + { + "kind": "text", + "text": " - Template literal tag for removing indentation" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Basic scenario with steps", + "content": [ { - "kind": "module" + "kind": "code", + "text": "```ts\nimport { client, expect, scenario } from \"@probitas-test/probitas\";\n\nexport default scenario(\"User API Test\")\n .resource(\"http\", () =>\n client.http.createHttpClient({ url: \"https://api.example.com\" }))\n .step(\"Create user\", async (ctx) => {\n const response = await ctx.resources.http.post(\"/users\", {\n body: { name: \"Alice\" },\n });\n expect(response).toBeOk().toHaveStatus(201);\n return response.json as { id: string };\n })\n .step(\"Verify user exists\", async (ctx) => {\n const { id } = ctx.previous!;\n const response = await ctx.resources.http.get(`/users/${id}`);\n expect(response).toBeOk().toHaveJsonProperty(\"name\", \"Alice\");\n })\n .build();\n```" } ] }, - "kind": "namespace", - "namespaceDef": { - "elements": [] - } - }, - { - "name": "scenario", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/builder/0.5.3/scenario_builder.ts", - "line": 640, - "col": 0, - "byteIndex": 20464 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a new scenario builder with a fluent API.\n\nThis is the primary entry point for defining scenarios. It returns a builder\nthat provides a type-safe, chainable API for constructing test scenarios.\n", - "tags": [ - { - "kind": "param", - "name": "name", - "doc": "- Human-readable scenario name (shown in test reports)" - }, - { - "kind": "param", - "name": "options", - "doc": "- Optional configuration for tags, timeouts, and retry behavior" - }, + { + "tag": "@example", + "name": "Using Skip for conditional execution", + "content": [ { - "kind": "return", - "doc": "New {@linkcode ScenarioBuilderInit} instance ready for chaining\n" - }, - { - "kind": "unsupported", - "value": "@remarks\nThe builder pattern enables:\n- **Type-safe chaining**: Return values flow through steps with full type inference\n- **Resource management**: Automatic lifecycle handling with Disposable support\n- **Flexible configuration**: Override defaults at scenario or step level\n" - }, - { - "kind": "example", - "doc": "Basic scenario with type-safe step chaining\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock user service for example\nconst createUser = (_data: { email: string }) =>\n Promise.resolve({ id: \"user-123\" });\nconst verifyEmail = (_userId: string) => Promise.resolve();\n\nexport default scenario(\"User Registration\")\n .step(\"Create user\", async () => {\n const user = await createUser({ email: \"test@example.com\" });\n return { userId: user.id };\n })\n .step(\"Verify email\", async (ctx) => {\n // ctx.previous is typed as { userId: string }\n await verifyEmail(ctx.previous.userId);\n })\n .build();\n```\n" - }, - { - "kind": "example", - "doc": "Scenario with tags for filtering\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Payment Integration\", {\n tags: [\"integration\", \"payment\", \"slow\"],\n stepOptions: { timeout: 60000 } // 1 minute timeout for all steps\n})\n .step(\"Process payment\", async () => {\n return { success: true };\n })\n .build();\n\n// Run with: probitas run -s \"tag:payment\"\n```\n" - }, - { - "kind": "example", - "doc": "Scenario with resources and setup\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock Database for example\nconst Database = {\n connect: () =>\n Promise.resolve({\n rollback: () => {},\n insert: (_data: { id: number }) => {},\n query: (_sql: string) => [{ id: 1 }],\n }),\n};\n\nscenario(\"Database Test\")\n .resource(\"db\", async () => await Database.connect())\n .setup((ctx) => {\n // Run migrations\n return () => ctx.resources.db.rollback();\n })\n .step(\"Insert data\", (ctx) => ctx.resources.db.insert({ id: 1 }))\n .step(\"Query data\", (ctx) => ctx.resources.db.query(\"SELECT * FROM users\"))\n .build();\n```\n" - }, - { - "kind": "see", - "doc": "{@linkcode ScenarioBuilderInit} for available builder methods" - }, - { - "kind": "see", - "doc": "{@linkcode BuilderScenarioOptions} for configuration options" + "kind": "code", + "text": "```ts\nimport { scenario, Skip } from \"@probitas-test/probitas\";\n\n// Mock process.env for this example\nconst getEnv = (key: string): string | undefined =>\n key === \"FEATURE_FLAG\" ? undefined : \"value\";\n\nexport default scenario(\"Feature test\")\n .step(\"Check prerequisites\", () => {\n if (!getEnv(\"FEATURE_FLAG\")) {\n throw new Skip(\"Feature flag not enabled\");\n }\n })\n .step(\"Test feature\", () => {\n // This step runs only if the previous step didn't skip\n })\n .build();\n```" } ] }, - "kind": "function", - "functionDef": { - "params": [ + { + "tag": "@example", + "name": "Using HTTP client with resource", + "content": [ { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ScenarioOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioOptions" - } - } - } - ], - "returnType": { - "repr": "ScenarioBuilderInit", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioBuilderInit" + "kind": "code", + "text": "```ts\nimport { client, expect, scenario } from \"@probitas-test/probitas\";\n\nexport default scenario(\"API test\")\n .resource(\"http\", () =>\n client.http.createHttpClient({ url: \"https://api.example.com\" }))\n .step(\"Fetch users\", async (ctx) => {\n const response = await ctx.resources.http.get(\"/users\");\n expect(response).toBeOk().toHaveStatus(200);\n return { users: response.json as { id: string; name: string }[] };\n })\n .build();\n```" } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] + ] } - }, + ] + }, + "children": [ { - "name": "Skip", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/skip.ts", - "line": 76, - "col": 0, - "byteIndex": 2108 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exception class for conditionally skipping scenario execution.\n\nThrow `Skip` from any step, setup, or resource fn to skip the\nentire scenario. Skipped scenarios are counted separately in the\nsummary and don't count as failures.\n\nCommon use cases:\n- Feature flags or environment checks\n- Prerequisites not met\n- Platform-specific tests\n- Temporary test disabling with clear reason\n", - "tags": [ + "id": 11983, + "name": "FakeTime", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Skip based on environment\n```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst def = scenario(\"Production Only\")\n .step(\"Check environment\", () => {\n if (process.env.ENV !== \"production\") {\n throw new Skip(\"Only runs in production\");\n }\n })\n .step(\"Production test\", () => {\n console.log(\"Running in production\");\n })\n .build();\nconsole.log(def.name);\n```\n" + "kind": "text", + "text": "Overrides the real Date object and timer functions with fake ones that can be\ncontrolled through the fake time instance.\n\nNote: there is no setter for the " }, { - "kind": "example", - "doc": "Skip based on resource availability\n```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst Database = { connect: async () => ({ query: (sql: string) => sql }) };\n\nconst def = scenario(\"Database Test\")\n .resource(\"db\", async () => {\n try {\n return await Database.connect();\n } catch {\n throw new Skip(\"Database not available\");\n }\n })\n .step(\"Query data\", (ctx) => ctx.resources.db.query(\"SELECT 1\"))\n .build();\nconsole.log(def.name);\n```\n" + "kind": "code", + "text": "`start`" }, { - "kind": "example", - "doc": "Skip with feature flag\n```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst def = scenario(\"Beta Feature\")\n .step(\"Check feature flag\", (ctx) => {\n if (!ctx.store.get(\"betaEnabled\")) {\n throw new Skip(\"Beta feature not enabled\");\n }\n })\n .build();\nconsole.log(def.name);\n```" + "kind": "text", + "text": " property, as it cannot be changed\nafter initialization." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport {\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\nimport { FakeTime } from \"@std/testing/time\";\n\nfunction secondInterval(cb: () => void) {\n return setInterval(cb, 1000);\n}\n\nDeno.test(\"secondInterval calls callback every second and stops after being cleared\", () => {\n using time = new FakeTime();\n\n const cb = spy();\n const intervalId = secondInterval(cb);\n assertSpyCalls(cb, 0);\n time.tick(500);\n assertSpyCalls(cb, 0);\n time.tick(500);\n assertSpyCalls(cb, 1);\n time.tick(3500);\n assertSpyCalls(cb, 4);\n\n clearInterval(intervalId);\n time.tick(1000);\n assertSpyCalls(cb, 4);\n});\n```" + } + ] } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "jsDoc": { - "doc": "Create a Skip exception.\n", - "tags": [ + "children": [ + { + "id": 11994, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 11995, + "name": "FakeTime", + "variant": "signature", + "kind": 16384, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Construct a FakeTime object. This overrides the real Date object and timer functions with fake ones that can be\ncontrolled through the fake time instance." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "If time is already faked" + } + ] + }, + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "If the start is invalid" + } + ] + } + ] + }, + "parameters": [ { - "kind": "param", - "name": "reason", - "doc": "- Optional explanation for why the scenario was skipped.\nDisplayed in test reports alongside the scenario name.\n" + "id": 11996, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The time to simulate. The default is the current time." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Date" + }, + "name": "Date", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 11997, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The options" + } + ] + }, + "type": { + "type": "reference", + "target": 11980, + "name": "FakeTimeOptions", + "package": "@probitas-test/probitas" + } + } + ], + "type": { + "type": "reference", + "target": 11983, + "name": "FakeTime", + "package": "@probitas-test/probitas" + } + } + ] + }, + { + "id": 11998, + "name": "now", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 11999, + "name": "now", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of milliseconds elapsed since the epoch (January 1, 1970 00:00:00 UTC) for the fake time." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nassertEquals(fakeTime.now, 15_000);\n\nfakeTime.tick(5_000);\n\nassertEquals(fakeTime.now, 20_000);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The number of milliseconds elapsed since the epoch (January 1, 1970 00:00:00 UTC) for the fake time" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + "setSignature": { + "id": 12000, + "name": "now", + "variant": "signature", + "kind": 1048576, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the current time. It will call any functions waiting to be called between the current and new fake time.\nIf the timer callback throws, time will stop advancing forward beyond that timer." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "If the time goes backwards" + } + ] }, { - "kind": "example", - "doc": "```ts\nimport { Skip } from \"@probitas-test/runner\";\n\nconst skip1 = new Skip(); // message: \"Skipped\", reason: undefined\nconst skip2 = new Skip(\"Not on Windows\"); // message: \"Not on Windows\", reason: \"Not on Windows\"\nconsole.log(skip1.message, skip2.reason);\n```" + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nassertEquals(fakeTime.now, 15_000);\n\nfakeTime.now = 35_000;\n\nassertEquals(fakeTime.now, 35_000);\n```" + } + ] } ] }, - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "reason", - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "parameters": [ + { + "id": 12001, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The current time (in milliseconds)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } ], - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/skip.ts", - "line": 101, - "col": 2, - "byteIndex": 2928 + "type": { + "type": "intrinsic", + "name": "void" } } - ], - "properties": [ - { - "jsDoc": { - "doc": "Human-readable reason for skipping.\n\nWhen provided, this reason is displayed in test reports.\nIf not provided, defaults to `undefined` (the error message\nwill still show \"Skipped\")." - }, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + }, + { + "id": 12002, + "name": "start", + "variant": "declaration", + "kind": 262144, + "flags": {}, + "getSignature": { + "id": 12003, + "name": "start", + "variant": "signature", + "kind": 524288, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The initial number of milliseconds elapsed since the epoch (January 1, 1970 00:00:00 UTC) for the fake time." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nassertEquals(fakeTime.start, 15_000);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The initial number of milliseconds elapsed since the epoch (January 1, 1970 00:00:00 UTC) for the fake time." + } + ] + } + ] }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "reason", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/skip.ts", - "line": 84, - "col": 2, - "byteIndex": 2362 + "type": { + "type": "intrinsic", + "name": "number" } } - ], - "indexSignatures": [], - "methods": [], - "extends": "Error", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "StepContext", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/builder/0.5.3/types.ts", - "line": 44, - "col": 0, - "byteIndex": 1347 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Execution context provided to steps, resources, and setup hooks.\n\nThe context provides access to:\n- Previous step results with full type inference\n- All accumulated results as a typed tuple\n- Named resources registered with `.resource()`\n- Shared storage for cross-step communication\n- Abort signal for timeout and cancellation handling\n", - "tags": [ - { - "kind": "template", - "name": "P", - "doc": "- Type of the previous step's return value" - }, - { - "kind": "template", - "name": "A", - "doc": "- Tuple type of all accumulated results from previous steps" - }, - { - "kind": "template", - "name": "R", - "doc": "- Record type mapping resource names to their types\n" - }, - { - "kind": "example", - "doc": "Accessing previous result\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Chained Steps\")\n .step(\"First\", () => ({ id: 123 }))\n .step(\"Second\", (ctx) => {\n console.log(ctx.previous.id); // 123 (typed as number)\n })\n .build();\n```\n" - }, - { - "kind": "example", - "doc": "Using shared store\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Store Example\")\n .setup((ctx) => {\n ctx.store.set(\"startTime\", Date.now());\n })\n .step(\"Check duration\", (ctx) => {\n const start = ctx.store.get(\"startTime\") as number;\n console.log(`Elapsed: ${Date.now() - start}ms`);\n })\n .build();\n```" - } - ] - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "intersection", - "intersection": [ - { - "repr": "StepContext", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepContext" + }, + { + "id": 12026, + "name": "[dispose]", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 12027, + "name": "[dispose]", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Restores real time." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\n\n{\n using fakeTime = new FakeTime();\n\n assertNotEquals(globalThis.setTimeout, setTimeout);\n\n // test timer related things.\n\n // You don't need to call fakeTime.restore() explicitly\n // as it's implicitly called via the [Symbol.dispose] method\n // when declared with `using`.\n}\n\nassertEquals(globalThis.setTimeout, setTimeout);\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "void" } - }, + } + ] + }, + { + "id": 12004, + "name": "delay", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ + "id": 12005, + "name": "delay", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "name": "previous", - "jsDoc": { - "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.5.3/types.ts", - "line": 55, - "col": 2, - "byteIndex": 1688 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "P", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "P" + "kind": "text", + "text": "Resolves after the given number of milliseconds using real time." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nawait fakeTime.delay(500); // wait 500 ms in real time.\n\nassertEquals(fakeTime.now, 15_000); // The simulated time doesn't advance.\n```" } - }, - "typeParams": [] + ] + } + ] + }, + "parameters": [ + { + "id": 12006, + "name": "ms", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The milliseconds to delay" + } + ] }, - { - "name": "results", - "jsDoc": { - "doc": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n- `ctx.results[0]` - First step's result\n- `ctx.results[1]` - Second step's result" - }, - "location": { - "filename": "https://jsr.io/@probitas/builder/0.5.3/types.ts", - "line": 64, - "col": 2, - "byteIndex": 1922 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "A", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "A" + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 12007, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The options" } - }, - "typeParams": [] + ] }, + "type": { + "type": "reference", + "target": 12463, + "name": "DelayOptions", + "package": "@probitas-test/probitas" + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "name": "resources", - "jsDoc": { - "doc": "Named resources registered with `.resource()`.\n\nResources are typed based on their registration:\n```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock database connection for example\nconst createDbConnection = () => ({ query: (_sql: string) => [{ id: 1 }] });\n\nscenario(\"test\")\n .resource(\"db\", () => createDbConnection())\n .step((ctx) => ctx.resources.db.query(\"SELECT 1\"))\n .build();\n```" - }, - "location": { - "filename": "https://jsr.io/@probitas/builder/0.5.3/types.ts", - "line": 82, - "col": 2, - "byteIndex": 2430 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "typeParams": [] + "type": "intrinsic", + "name": "void" } ], - "callSignatures": [], - "indexSignatures": [] + "name": "Promise", + "package": "typescript" } } ] }, - "typeParams": [ - { - "name": "P", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - }, - { - "name": "A", - "constraint": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - } - }, - "default": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + { + "id": 12016, + "name": "next", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 12017, + "name": "next", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Advances time to when the next scheduled timer is due.\nIf there are no pending timers, time will not be changed." } - } - } - } - }, - { - "name": "R", - "constraint": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "blockTags": [ { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assert, assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet called = false;\n\nsetTimeout(() => { called = true }, 5000);\n\nfakeTime.next();\n\nassert(called);\nassertEquals(fakeTime.now, 20_000);\n```" + } + ] }, { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "tag": "@returns", + "content": [ + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " when there is a scheduled timer and " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " when there is not." + } + ] } - ], - "typeName": "Record" + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" } - }, - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + } + ] + }, + { + "id": 12018, + "name": "nextAsync", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 12019, + "name": "nextAsync", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "kind": "text", + "text": "Runs all pending microtasks then advances time to when the next scheduled timer is due.\nIf there are no pending timers, time will not be changed." } ], - "typeName": "Record" - } - } - } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 62, - "col": 0, - "byteIndex": 2249 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assert, assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet called0 = false;\nlet called1 = false;\n\nsetTimeout(() => { called0 = true }, 5000);\nPromise.resolve().then(() => { called1 = true });\n\nawait fakeTime.nextAsync();\n\nassert(called0);\nassert(called1);\nassertEquals(fakeTime.now, 20_000);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " if the pending timers existed and the time advanced, " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " if there was no pending timer and the time didn't advance." + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" } ], - "typeName": "NotAny" + "name": "Promise", + "package": "typescript" } } - } - ], - "returnType": { - "repr": "HttpResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponseExpectation" - } + ] }, - "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.5.0/expect.ts", - "line": 65, - "col": 0, - "byteIndex": 2345 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + { + "id": 12024, + "name": "restore", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 12025, + "name": "restore", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Restores time related global functions to their original state." } ], - "typeName": "NotAny" + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\n\nconst fakeTime = new FakeTime(); // global timers are now faked\n\nassertNotEquals(globalThis.setTimeout, setTimeout);\n\nfakeTime.restore(); // timers are restored\n\nassertEquals(globalThis.setTimeout, setTimeout);\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "void" } } - } - ], - "returnType": { - "repr": "ConnectRpcResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponseExpectation" - } + ] }, - "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.5.0/expect.ts", - "line": 68, - "col": 0, - "byteIndex": 2453 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + { + "id": 12020, + "name": "runAll", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 12021, + "name": "runAll", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Advances time forward to the next due timer until there are no pending timers remaining.\nIf the timers create additional timers, they will be run too. If there is an interval,\ntime will keep advancing forward until the interval is cleared." } ], - "typeName": "NotAny" + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet count = 0;\n\nsetTimeout(() => { count++ }, 5_000);\nsetTimeout(() => { count++ }, 15_000);\nsetTimeout(() => { count++ }, 35_000);\n\nfakeTime.runAll();\n\nassertEquals(count, 3);\nassertEquals(fakeTime.now, 50_000);\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "void" } } - } - ], - "returnType": { - "repr": "GraphqlResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlResponseExpectation" - } + ] }, - "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.5.0/expect.ts", - "line": 71, - "col": 0, - "byteIndex": 2555 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + { + "id": 12022, + "name": "runAllAsync", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 12023, + "name": "runAllAsync", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Advances time forward to the next due timer until there are no pending timers remaining.\nIf the timers create additional timers, they will be run too. If there is an interval,\ntime will keep advancing forward until the interval is cleared.\nRuns all pending microtasks before each timer." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet count = 0;\n\nsetTimeout(() => { count++ }, 5_000);\nsetTimeout(() => { count++ }, 15_000);\nsetTimeout(() => { count++ }, 35_000);\nPromise.resolve().then(() => { count++ });\n\nawait fakeTime.runAllAsync();\n\nassertEquals(count, 4);\nassertEquals(fakeTime.now, 50_000);\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" } ], - "typeName": "NotAny" + "name": "Promise", + "package": "typescript" } } - } - ], - "returnType": { - "repr": "SqlQueryResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "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.5.0/expect.ts", - "line": 74, - "col": 0, - "byteIndex": 2655 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + { + "id": 12008, + "name": "runMicrotasks", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 12009, + "name": "runMicrotasks", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Runs all pending microtasks." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assert } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet called = false;\n\nPromise.resolve().then(() => { called = true });\n\nawait fakeTime.runMicrotasks();\n\nassert(called);\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" } ], - "typeName": "NotAny" + "name": "Promise", + "package": "typescript" } } - } - ], - "returnType": { - "repr": "RedisExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisExpectation" - } + ] }, - "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.5.0/expect.ts", - "line": 77, - "col": 0, - "byteIndex": 2746 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + { + "id": 12010, + "name": "tick", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 12011, + "name": "tick", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Adds the specified number of milliseconds to the fake time.\nThis will call any functions waiting to be called between the current and new fake time." } ], - "typeName": "NotAny" - } - } - } - ], - "returnType": { - "repr": "MongoExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport {\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\nimport { FakeTime } from \"@std/testing/time\";\n\nfunction secondInterval(cb: () => void) {\n return setInterval(cb, 1000);\n}\n\nDeno.test(\"secondInterval calls callback every second and stops after being cleared\", () => {\n using time = new FakeTime();\n\n const cb = spy();\n const intervalId = secondInterval(cb);\n assertSpyCalls(cb, 0);\n time.tick(500);\n assertSpyCalls(cb, 0);\n time.tick(500);\n assertSpyCalls(cb, 1);\n time.tick(3500);\n assertSpyCalls(cb, 4);\n\n clearInterval(intervalId);\n time.tick(1000);\n assertSpyCalls(cb, 4);\n});\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 12012, + "name": "ms", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The milliseconds to advance" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" } - } - ], - "typeName": "MongoExpectation" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "MongoResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoResult" + ], + "type": { + "type": "intrinsic", + "name": "void" } } - } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 80, - "col": 0, - "byteIndex": 2837 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ] + }, + { + "id": 12013, + "name": "tickAsync", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 12014, + "name": "tickAsync", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Runs all pending microtasks then adds the specified number of milliseconds to the fake time.\nThis will call any functions waiting to be called between the current and new fake time." } ], - "typeName": "NotAny" - } - } - } - ], - "returnType": { - "repr": "RabbitMqExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assert, assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet called = false;\n\nPromise.resolve().then(() => { called = true });\n\nawait fakeTime.tickAsync(5_000);\n\nassert(called);\nassertEquals(fakeTime.now, 20_000);\n```" + } + ] + } + ] + }, + "parameters": [ + { + "id": 12015, + "name": "ms", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The milliseconds to advance" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" } - } - ], - "typeName": "RabbitMqExpectation" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "RabbitMqResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqResult" + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" } } - } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 83, - "col": 0, - "byteIndex": 2934 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "NotAny", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ] + }, + { + "id": 11984, + "name": "restore", + "variant": "declaration", + "kind": 2048, + "flags": { + "isStatic": true + }, + "signatures": [ + { + "id": 11985, + "name": "restore", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Restores real time." } ], - "typeName": "NotAny" + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "If time is already restored" + } + ] + }, + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\"\n\nconst setTimeout = globalThis.setTimeout;\n\nconst fakeTime = new FakeTime();\n\nassertNotEquals(globalThis.setTimeout, setTimeout);\n\nFakeTime.restore();\n\nassertEquals(globalThis.setTimeout, setTimeout);\n```" + } + ] + } + ] + }, + "type": { + "type": "intrinsic", + "name": "void" } } - } - ], - "returnType": { - "repr": "SqsExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqsExpectation" - } + ] }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "SqsResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsResult" + { + "id": 11986, + "name": "restoreFor", + "variant": "declaration", + "kind": 2048, + "flags": { + "isStatic": true + }, + "signatures": [ + { + "id": 11987, + "name": "restoreFor", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Restores real time temporarily until callback returns and resolves." + } + ], + "blockTags": [ + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "If time is not faked" + } + ] + }, + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\"\n\nconst setTimeout = globalThis.setTimeout;\n\nconst fakeTime = new FakeTime();\n\nassertNotEquals(globalThis.setTimeout, setTimeout);\n\nFakeTime.restoreFor(() => {\n assertEquals(globalThis.setTimeout, setTimeout);\n});\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The returned value from the callback" + } + ] + } + ] + }, + "typeParameters": [ + { + "id": 11988, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The returned value type of the callback" + } + ] + } + } + ], + "parameters": [ + { + "id": 11989, + "name": "callback", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The callback to be called while FakeTime being restored" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 11990, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 11991, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 11992, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 11988, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 11988, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + ] + } + } + ] + } + } + }, + { + "id": 11993, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments to pass to the callback" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 11988, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" } } - } - ] - } + ] + } + ] }, { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 87, - "col": 0, - "byteIndex": 3138 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ + "id": 12210, + "name": "MockError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "An error related to spying on a function or instance method." } ], - "returnType": { - "repr": "AnythingExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AnythingExpectation" + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { MockError, spy } from \"@std/testing/mock\";\nimport { assertThrows } from \"@std/assert\";\n\nassertThrows(() => {\n spy({} as any, \"no-such-method\");\n}, MockError);\n```" + } + ] } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + ] + }, + "children": [ + { + "id": 12211, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 12212, + "name": "MockError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Construct MockError" + } + ] + }, + "parameters": [ + { + "id": 12213, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The error message." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 12210, + "name": "MockError", + "package": "@probitas-test/probitas" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] }, { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/expect/0.5.0/expect.ts", - "line": 88, - "col": 0, - "byteIndex": 3195 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ + "id": 12408, + "name": "Skip", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "Exception class for conditionally skipping scenario execution.\n\nThrow " + }, + { + "kind": "code", + "text": "`Skip`" + }, + { + "kind": "text", + "text": " from any step, setup, or resource fn to skip the\nentire scenario. Skipped scenarios are counted separately in the\nsummary and don't count as failures.\n\nCommon use cases:\n- Feature flags or environment checks\n- Prerequisites not met\n- Platform-specific tests\n- Temporary test disabling with clear reason" } ], - "returnType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "ConnectRpcResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.7.1/response.ts", - "line": 232, - "col": 0, - "byteIndex": 6908 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "ConnectRPC response union type.\n\nUse `processed` to distinguish between server responses and failures:\n- `processed === true`: Server responded (Success or Error)\n- `processed === false`: Request failed (Failure)\n\nUse `ok` to check for success:\n- `ok === true`: Success (statusCode === 0)\n- `ok === false`: Error or Failure" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ConnectRpcResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "ConnectRpcResponseSuccess" + "blockTags": [ + { + "tag": "@example", + "name": "Skip based on environment", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst def = scenario(\"Production Only\")\n .step(\"Check environment\", () => {\n if (process.env.ENV !== \"production\") {\n throw new Skip(\"Only runs in production\");\n }\n })\n .step(\"Production test\", () => {\n console.log(\"Running in production\");\n })\n .build();\nconsole.log(def.name);\n```" } - }, + ] + }, + { + "tag": "@example", + "name": "Skip based on resource availability", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst Database = { connect: async () => ({ query: (sql: string) => sql }) };\n\nconst def = scenario(\"Database Test\")\n .resource(\"db\", async () => {\n try {\n return await Database.connect();\n } catch {\n throw new Skip(\"Database not available\");\n }\n })\n .step(\"Query data\", (ctx) => ctx.resources.db.query(\"SELECT 1\"))\n .build();\nconsole.log(def.name);\n```" + } + ] + }, + { + "tag": "@example", + "name": "Skip with feature flag", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst def = scenario(\"Beta Feature\")\n .step(\"Check feature flag\", (ctx) => {\n if (!ctx.store.get(\"betaEnabled\")) {\n throw new Skip(\"Beta feature not enabled\");\n }\n })\n .build();\nconsole.log(def.name);\n```" + } + ] + } + ] + }, + "children": [ + { + "id": 12409, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "ConnectRpcResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 12410, + "name": "Skip", + "variant": "signature", + "kind": 16384, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Create a Skip exception." } ], - "typeName": "ConnectRpcResponseError" - } - }, - { - "repr": "ConnectRpcResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "blockTags": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { Skip } from \"@probitas-test/runner\";\n\nconst skip1 = new Skip(); // message: \"Skipped\", reason: undefined\nconst skip2 = new Skip(\"Not on Windows\"); // message: \"Not on Windows\", reason: \"Not on Windows\"\nconsole.log(skip1.message, skip2.reason);\n```" + } + ] } - ], - "typeName": "ConnectRpcResponseFailure" + ] + }, + "parameters": [ + { + "id": 12411, + "name": "reason", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional explanation for why the scenario was skipped.\n Displayed in test reports alongside the scenario name." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 12408, + "name": "Skip", + "package": "@probitas-test/runner" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" } } - ] + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } }, - "typeParams": [ + { + "id": 12412, + "name": "reason", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Human-readable reason for skipping.\n\nWhen provided, this reason is displayed in test reports.\nIf not provided, defaults to " + }, + { + "kind": "code", + "text": "`undefined`" + }, + { + "kind": "text", + "text": " (the error message\nwill still show \"Skipped\")." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] + }, + { + "id": 11976, + "name": "TimeError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "Represents an error when trying to execute an invalid operation on fake time,\ngiven the state fake time is in." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { FakeTime, TimeError } from \"@std/testing/time\";\nimport { assertThrows } from \"@std/assert\";\n\nassertThrows(() => {\n const time = new FakeTime();\n time.restore();\n time.restore();\n}, TimeError);\n```" + } + ] } ] - } - }, - { - "name": "GraphqlResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.7.0/response.ts", - "line": 166, - "col": 0, - "byteIndex": 4669 }, - "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL response union type.\n\nUse `processed` to distinguish between server responses and failures:\n- `processed === true`: Server responded (Success or Error)\n- `processed === false`: Request failed (Failure)\n\nUse `ok` to check for success:\n- `ok === true`: Success (no errors)\n- `ok === false`: Error or Failure" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "GraphqlResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "GraphqlResponseSuccess" - } - }, + "children": [ + { + "id": 11977, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "GraphqlResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 11978, + "name": "TimeError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "comment": { + "summary": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "text", + "text": "Construct TimeError." } - ], - "typeName": "GraphqlResponseError" - } - }, - { - "repr": "GraphqlResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ] + }, + "parameters": [ + { + "id": 11979, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The error message" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "typeName": "GraphqlResponseFailure" - } - } - ] - }, - "typeParams": [ + } + ], + "type": { + "type": "reference", + "target": 11976, + "name": "TimeError", + "package": "@probitas-test/probitas" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] + }, + { + "id": 12392, + "name": "UnimplementedError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "Error indicating that this part is unimplemented." } ] - } + }, + "children": [ + { + "id": 12393, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 12394, + "name": "UnimplementedError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 12395, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"unimplemented\"" + } + ], + "type": { + "type": "reference", + "target": 12392, + "name": "UnimplementedError", + "package": "@probitas-test/probitas" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] }, { - "name": "HttpResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.8.0/response.ts", - "line": 184, - "col": 0, - "byteIndex": 5739 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP response union type representing all possible response states.\n\n- **Success (2xx)**: `processed: true, ok: true, error: null`\n- **Error (4xx/5xx)**: `processed: true, ok: false, error: HttpError`\n- **Failure (network error)**: `processed: false, ok: false, error: Error`\n", - "tags": [ - { - "kind": "example", - "doc": "Type narrowing by ok\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.ok) {\n // TypeScript knows: HttpResponseSuccess\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseError | HttpResponseFailure\n console.log(response.error); // Error\n}\n```\n" - }, + "id": 12399, + "name": "UnreachableError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Type narrowing by processed\n```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.processed) {\n // TypeScript knows: HttpResponseSuccess | HttpResponseError\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseFailure\n console.log(response.error); // Error (network error)\n}\n```" + "kind": "text", + "text": "Error indicating that this part is unreachable." } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "HttpResponseSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "HttpResponseSuccess" - } - }, + "children": [ + { + "id": 12400, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "repr": "HttpResponseError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "HttpResponseError" - } - }, - { - "repr": "HttpResponseFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 12401, + "name": "UnreachableError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 12402, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } - ], - "typeName": "HttpResponseFailure" + } + ], + "type": { + "type": "reference", + "target": 12399, + "name": "UnreachableError", + "package": "@probitas-test/probitas" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" } } - ] + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } }, - "typeParams": [ + { + "id": 12403, + "name": "args", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] + }, + { + "id": 12254, + "name": "ConstructorSpy", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": "A constructor wrapper that records all calls made to it." } ] - } - }, - { - "name": "MongoResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.6.1/result.ts", - "line": 383, - "col": 0, - "byteIndex": 9674 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union of all MongoDB result types." }, - "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" - } - }, + "children": [ + { + "id": 12265, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ { - "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" + "id": 12266, + "name": "ConstructorSpy", + "variant": "signature", + "kind": 16384, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Construct an instance." + } + ] + }, + "parameters": [ + { + "id": 12267, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12256, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "ConstructorSpy.Args", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12255, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "ConstructorSpy.Self", + "refersToTypeParameter": true } - }, - { - "repr": "MongoDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResult" + } + ] + }, + { + "id": 12261, + "name": "calls", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Information about calls made to the function or instance method." } - }, - { - "repr": "MongoFindOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 12214, + "typeArguments": [ + { + "type": "reference", + "target": 12255, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "ConstructorSpy.Self", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12256, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "ConstructorSpy.Args", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12255, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "ConstructorSpy.Self", + "refersToTypeParameter": true + } + ], + "name": "SpyCall", + "package": "@probitas-test/probitas" + } + } + }, + { + "id": 12257, + "name": "original", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function that is being spied on." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12258, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 12259, + "name": "original", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 12260, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12256, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "ConstructorSpy.Args", + "refersToTypeParameter": true + } } + ], + "type": { + "type": "reference", + "target": 12255, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "ConstructorSpy.Self", + "refersToTypeParameter": true } - ], - "typeName": "MongoFindOneResult" + } + ] + } + } + }, + { + "id": 12262, + "name": "restored", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether or not the original instance method has been restored." } - }, + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 12263, + "name": "restore", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ { - "repr": "MongoCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResult" + "id": 12264, + "name": "restore", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If spying on an instance method, this restores the original instance method." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "void" } } ] + } + ], + "typeParameters": [ + { + "id": 12255, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } }, - "typeParams": [ + { + "id": 12256, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ] + }, + { + "id": 12463, + "name": "DelayOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "kind": "text", + "text": "Options for " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "delay", + "target": { + "packageName": "@probitas-test/probitas", + "packagePath": "src/_vendor/std_async/delay.ts", + "qualifiedName": "delay" } + }, + { + "kind": "text", + "text": "." } ] - } - }, - { - "name": "RabbitMqResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.5.1/result.ts", - "line": 265, - "col": 0, - "byteIndex": 6706 }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union of all RabbitMQ result types." - }, - "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" + "children": [ + { + "id": 12465, + "name": "persistent", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Indicates whether the process should continue to run as long as the timer exists." } - }, - { - "repr": "RabbitMqAckResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResult" + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\n{true}\n```" + } + ] } - }, - { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 12464, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Signal used to abort the delay." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" }, - { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" - } - } - ] - }, - "typeParams": [] - } + "name": "AbortSignal", + "package": "typescript" + } + } + ] }, { - "name": "RedisResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.5.1/result.ts", - "line": 338, - "col": 0, - "byteIndex": 8827 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union of all Redis result types." + "id": 12305, + "name": "ExpectedSpyCall", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call information recorded by a spy." + } + ] }, - "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" + "children": [ + { + "id": 12309, + "name": "args", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Arguments passed to a function when called." } - }, - { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" + ] + }, + "type": { + "type": "tuple", + "elements": [ + { + "type": "rest", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": 12307, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "ExpectedSpyCall.Args", + "refersToTypeParameter": true + } + } + }, + { + "type": "rest", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } } - }, - { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ] + } + }, + { + "id": 12312, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected thrown error." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12313, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 12314, + "name": "Class", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The class for the error that was thrown by a function." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12315, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 12316, + "name": "Class", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 12317, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ] } } - ], - "typeName": "RedisArrayResult" + }, + { + "id": 12318, + "name": "msgIncludes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Part of the message for the error that was thrown by a function." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 12311, + "name": "returned", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value that was returned by a function.\nIf you expect a promise to reject, expect error instead." } - }, - { - "repr": "RedisHashResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResult" + ] + }, + "type": { + "type": "reference", + "target": 12308, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "ExpectedSpyCall.Return", + "refersToTypeParameter": true + } + }, + { + "id": 12310, + "name": "self", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The instance that a method was called on." } - } - ] + ] + }, + "type": { + "type": "reference", + "target": 12306, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "ExpectedSpyCall.Self", + "refersToTypeParameter": true + } + } + ], + "typeParameters": [ + { + "id": 12306, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + { + "id": 12307, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" } } - ] - } + }, + { + "id": 12308, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ] }, { - "name": "SqlQueryResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.5.1/result.ts", - "line": 164, - "col": 0, - "byteIndex": 5113 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SQL query result union type representing all possible result states.\n\n- **Success**: `processed: true, ok: true, error: null`\n- **Error**: `processed: true, ok: false, error: SqlError`\n- **Failure**: `processed: false, ok: false, error: SqlConnectionError`\n", - "tags": [ + "id": 11980, + "name": "FakeTimeOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Type narrowing by ok\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```\n" + "kind": "text", + "text": "The option for " }, { - "kind": "example", - "doc": "Type narrowing by processed\n```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" + "kind": "inline-tag", + "tag": "@linkcode", + "text": "FakeTime", + "target": 11983 } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "SqlQueryResultSuccess", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultSuccess" + "children": [ + { + "id": 11982, + "name": "advanceFrequency", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The frequency in milliseconds at which fake time is updated.\nIf advanceRate is set, we will update the time every 10 milliseconds by default." } - }, - { - "repr": "SqlQueryResultError", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "code", + "text": "```ts\n{10}\n```" } - ], - "typeName": "SqlQueryResultError" + ] } - }, - { - "repr": "SqlQueryResultFailure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 11981, + "name": "advanceRate", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The rate relative to real time at which fake time is updated.\nBy default time only moves forward through calling tick or setting now.\nSet to 1 to have the fake time automatically tick forward at the same rate in milliseconds as real time." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "kind": "code", + "text": "```ts\n{0}\n```" } - ], - "typeName": "SqlQueryResultFailure" + ] } - } - ] - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ] - } - }, - { - "name": "SqsResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.6.0/result.ts", - "line": 853, - "col": 0, - "byteIndex": 21499 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Union type of all SQS result types." - }, - "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": "DelayOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_async/delay.ts", - "line": 5, - "col": 0, - "byteIndex": 131 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for {@linkcode delay}." + "id": 12238, + "name": "MethodSpy", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An instance method wrapper that records all calls made to it." + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "signal", - "jsDoc": { - "doc": "Signal used to abort the delay." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_async/delay.ts", - "line": 7, - "col": 2, - "byteIndex": 206 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "AbortSignal", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortSignal" + "children": [ + { + "id": 12247, + "name": "calls", + "variant": "declaration", + "kind": 1024, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Information about calls made to the function or instance method." } - }, - "typeParams": [] + ] }, - { - "name": "persistent", - "jsDoc": { - "doc": "Indicates whether the process should continue to run as long as the timer exists.\n", - "tags": [ + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 12214, + "typeArguments": [ + { + "type": "reference", + "target": 12239, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Self", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12240, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Args", + "refersToTypeParameter": true + }, { - "kind": "default", - "value": "true" + "type": "reference", + "target": 12241, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Return", + "refersToTypeParameter": true } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_async/delay.ts", - "line": 12, - "col": 2, - "byteIndex": 350 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] + ], + "name": "SpyCall", + "package": "@probitas-test/probitas" + } + }, + "inheritedFrom": { + "type": "reference", + "target": 12231, + "name": "Spy.calls" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "TimeError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 62, - "col": 0, - "byteIndex": 1484 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Represents an error when trying to execute an invalid operation on fake time,\ngiven the state fake time is in.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime, TimeError } from \"@std/testing/time\";\nimport { assertThrows } from \"@std/assert\";\n\nassertThrows(() => {\n const time = new FakeTime();\n time.restore();\n time.restore();\n}, TimeError);\n```" - } - ] - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "jsDoc": { - "doc": "Construct TimeError.\n", - "tags": [ + }, + { + "id": 12242, + "name": "original", + "variant": "declaration", + "kind": 1024, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function that is being spied on." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12243, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "kind": "param", - "name": "message", - "doc": "The error message" + "id": 12244, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12245, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12239, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Self", + "refersToTypeParameter": true + } + }, + { + "id": 12246, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12240, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Args", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12241, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Return", + "refersToTypeParameter": true + } } ] - }, - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 67, - "col": 2, - "byteIndex": 1601 } + }, + "inheritedFrom": { + "type": "reference", + "target": 12226, + "name": "Spy.original" } - ], - "properties": [], - "indexSignatures": [], - "methods": [], - "extends": "Error", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "FakeTimeOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 105, - "col": 0, - "byteIndex": 2502 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "The option for {@linkcode FakeTime}" - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "advanceRate", - "jsDoc": { - "doc": "The rate relative to real time at which fake time is updated.\nBy default time only moves forward through calling tick or setting now.\nSet to 1 to have the fake time automatically tick forward at the same rate in milliseconds as real time.\n", - "tags": [ - { - "kind": "default", - "value": "0" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 113, - "col": 2, - "byteIndex": 2828 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + }, + { + "id": 12248, + "name": "restored", + "variant": "declaration", + "kind": 1024, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether or not the original instance method has been restored." + } + ] }, - { - "name": "advanceFrequency", - "jsDoc": { - "doc": "The frequency in milliseconds at which fake time is updated.\nIf advanceRate is set, we will update the time every 10 milliseconds by default.\n", - "tags": [ - { - "kind": "default", - "value": "10" - } - ] + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 12232, + "name": "Spy.restored" + } + }, + { + "id": 12249, + "name": "restore", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 12250, + "name": "restore", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If spying on an instance method, this restores the original instance method." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "target": 12234, + "name": "Spy.restore" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": 12233, + "name": "Spy.restore" + } + } + ], + "typeParameters": [ + { + "id": 12239, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 12240, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 12241, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "signatures": [ + { + "id": 12251, + "name": "MethodSpy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12252, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12239, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Self", + "refersToTypeParameter": true + } }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 120, - "col": 2, - "byteIndex": 3039 + { + "id": 12253, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12240, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Args", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12241, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Return", + "refersToTypeParameter": true + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 12222, + "typeArguments": [ + { + "type": "reference", + "target": 12239, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Self", + "refersToTypeParameter": true }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + { + "type": "reference", + "target": 12240, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Args", + "refersToTypeParameter": true }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + { + "type": "reference", + "target": 12241, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "MethodSpy.Return", + "refersToTypeParameter": true + } + ], + "name": "Spy", + "package": "@probitas-test/probitas" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "Disposable" + }, + "name": "Disposable", + "package": "typescript" + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 12284, + "name": "Stub" + } + ] }, { - "name": "FakeTime", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 292, - "col": 0, - "byteIndex": 7599 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Overrides the real Date object and timer functions with fake ones that can be\ncontrolled through the fake time instance.\n\nNote: there is no setter for the `start` property, as it cannot be changed\nafter initialization.\n", - "tags": [ + "id": 12222, + "name": "Spy", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Usage\n```ts\nimport {\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\nimport { FakeTime } from \"@std/testing/time\";\n\nfunction secondInterval(cb: () => void) {\n return setInterval(cb, 1000);\n}\n\nDeno.test(\"secondInterval calls callback every second and stops after being cleared\", () => {\n using time = new FakeTime();\n\n const cb = spy();\n const intervalId = secondInterval(cb);\n assertSpyCalls(cb, 0);\n time.tick(500);\n assertSpyCalls(cb, 0);\n time.tick(500);\n assertSpyCalls(cb, 1);\n time.tick(3500);\n assertSpyCalls(cb, 4);\n\n clearInterval(intervalId);\n time.tick(1000);\n assertSpyCalls(cb, 4);\n});\n```" + "kind": "text", + "text": "A function or instance method wrapper that records all calls made to it." } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "jsDoc": { - "doc": "Construct a FakeTime object. This overrides the real Date object and timer functions with fake ones that can be\ncontrolled through the fake time instance.\n", - "tags": [ - { - "kind": "param", - "name": "start", - "doc": "The time to simulate. The default is the current time." - }, + "children": [ + { + "id": 12231, + "name": "calls", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Information about calls made to the function or instance method." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 12214, + "typeArguments": [ { - "kind": "param", - "name": "options", - "doc": "The options\n" + "type": "reference", + "target": 12223, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "Spy.Self", + "refersToTypeParameter": true }, { - "kind": "throws", - "type": "TimeError", - "doc": "If time is already faked" + "type": "reference", + "target": 12224, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "Spy.Args", + "refersToTypeParameter": true }, { - "kind": "throws", - "type": "TypeError", - "doc": "If the start is invalid" + "type": "reference", + "target": 12225, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "Spy.Return", + "refersToTypeParameter": true } - ] - }, - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "start", - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, + ], + "name": "SpyCall", + "package": "@probitas-test/probitas" + } + } + }, + { + "id": 12226, + "name": "original", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function that is being spied on." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12227, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12228, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "repr": "Date", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Date" + "id": 12229, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12223, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "Spy.Self", + "refersToTypeParameter": true } }, { - "repr": "null", - "kind": "keyword", - "keyword": "null" + "id": 12230, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12224, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "Spy.Args", + "refersToTypeParameter": true + } } - ] + ], + "type": { + "type": "reference", + "target": 12225, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "Spy.Return", + "refersToTypeParameter": true + } } - }, + ] + } + } + }, + { + "id": 12232, + "name": "restored", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "FakeTimeOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "FakeTimeOptions" + "kind": "text", + "text": "Whether or not the original instance method has been restored." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 12233, + "name": "restore", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 12234, + "name": "restore", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If spying on an instance method, this restores the original instance method." } - } + ] + }, + "type": { + "type": "intrinsic", + "name": "void" } - ], - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 303, - "col": 2, - "byteIndex": 8016 } + ] + } + ], + "typeParameters": [ + { + "id": 12223, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" } - ], - "properties": [], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Restores real time.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\n\n{\n using fakeTime = new FakeTime();\n\n assertNotEquals(globalThis.setTimeout, setTimeout);\n\n // test timer related things.\n\n // You don't need to call fakeTime.restore() explicitly\n // as it's implicitly called via the [Symbol.dispose] method\n // when declared with `using`.\n}\n\nassertEquals(globalThis.setTimeout, setTimeout);\n```" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "[Symbol.dispose]", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 374, - "col": 2, - "byteIndex": 9836 + }, + { + "id": 12224, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" } - }, - { - "jsDoc": { - "doc": "Restores real time.\n", - "tags": [ - { - "kind": "throws", - "type": "TimeError", - "doc": "If time is already restored\n" - }, - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\"\n\nconst setTimeout = globalThis.setTimeout;\n\nconst fakeTime = new FakeTime();\n\nassertNotEquals(globalThis.setTimeout, setTimeout);\n\nFakeTime.restore();\n\nassertEquals(globalThis.setTimeout, setTimeout);\n```" - } - ] + } + }, + { + "id": 12225, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "signatures": [ + { + "id": 12235, + "name": "Spy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12236, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12223, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "Spy.Self", + "refersToTypeParameter": true + } }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": true, - "name": "restore", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] + { + "id": 12237, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12224, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "Spy.Args", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12225, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "Spy.Return", + "refersToTypeParameter": true + } + } + ], + "extendedBy": [ + { + "type": "reference", + "target": 12238, + "name": "MethodSpy" + } + ] + }, + { + "id": 12214, + "name": "SpyCall", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Call information recorded by a spy." + } + ] + }, + "children": [ + { + "id": 12218, + "name": "args", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Arguments passed to a function when called." + } + ] + }, + "type": { + "type": "reference", + "target": 12216, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "SpyCall.Args", + "refersToTypeParameter": true + } + }, + { + "id": 12220, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The error value that was thrown by a function." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 399, - "col": 2, - "byteIndex": 10386 - } + "name": "Error", + "package": "typescript" + } + }, + { + "id": 12219, + "name": "returned", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value that was returned by a function." + } + ] + }, + "type": { + "type": "reference", + "target": 12217, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "SpyCall.Return", + "refersToTypeParameter": true + } + }, + { + "id": 12221, + "name": "self", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The instance that a method was called on." + } + ] }, + "type": { + "type": "reference", + "target": 12215, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "SpyCall.Self", + "refersToTypeParameter": true + } + } + ], + "typeParameters": [ + { + "id": 12215, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 12216, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 12217, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 12284, + "name": "Stub", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "jsDoc": { - "doc": "Restores real time temporarily until callback returns and resolves.\n", - "tags": [ - { - "kind": "throws", - "type": "TimeError", - "doc": "If time is not faked\n" - }, - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\"\n\nconst setTimeout = globalThis.setTimeout;\n\nconst fakeTime = new FakeTime();\n\nassertNotEquals(globalThis.setTimeout, setTimeout);\n\nFakeTime.restoreFor(() => {\n assertEquals(globalThis.setTimeout, setTimeout);\n});\n```\n" - }, - { - "kind": "template", - "name": "T", - "doc": "The returned value type of the callback" - }, + "kind": "text", + "text": "An instance method replacement that records all calls made to it." + } + ] + }, + "children": [ + { + "id": 12298, + "name": "calls", + "variant": "declaration", + "kind": 1024, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Information about calls made to the function or instance method." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 12214, + "typeArguments": [ { - "kind": "param", - "name": "callback", - "doc": "The callback to be called while FakeTime being restored" + "type": "reference", + "target": 12285, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Self", + "refersToTypeParameter": true }, { - "kind": "param", - "name": "args", - "doc": "The arguments to pass to the callback" + "type": "reference", + "target": 12286, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Args", + "refersToTypeParameter": true }, { - "kind": "return", - "doc": "The returned value from the callback" + "type": "reference", + "target": 12287, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Return", + "refersToTypeParameter": true } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": true, - "name": "restoreFor", - "kind": "method", - "functionDef": { - "params": [ + ], + "name": "SpyCall", + "package": "@probitas-test/probitas" + } + }, + "inheritedFrom": { + "type": "reference", + "target": 12247, + "name": "MethodSpy.calls" + } + }, + { + "id": 12288, + "name": "fake", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function that is used instead of the original." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12289, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "kind": "identifier", - "name": "callback", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Promise" - } - }, - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ] + "id": 12290, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12291, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12285, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Self", + "refersToTypeParameter": true + } + }, + { + "id": 12292, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": { + "type": "reference", + "target": 12286, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Args", + "refersToTypeParameter": true + } } + ], + "type": { + "type": "reference", + "target": 12287, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Return", + "refersToTypeParameter": true } } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + } + } + }, + { + "id": 12293, + "name": "original", + "variant": "declaration", + "kind": 1024, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function that is being spied on." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12294, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12295, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12296, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12285, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Self", + "refersToTypeParameter": true + } + }, { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 12297, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12286, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Args", + "refersToTypeParameter": true } } ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T" + "type": { + "type": "reference", + "target": 12287, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Return", + "refersToTypeParameter": true + } } ] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 432, - "col": 2, - "byteIndex": 11334 } }, - { - "jsDoc": { - "doc": "The number of milliseconds elapsed since the epoch (January 1, 1970 00:00:00 UTC) for the fake time.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nassertEquals(fakeTime.now, 15_000);\n\nfakeTime.tick(5_000);\n\nassertEquals(fakeTime.now, 20_000);\n```\n" - }, - { - "kind": "return", - "doc": "The number of milliseconds elapsed since the epoch (January 1, 1970 00:00:00 UTC) for the fake time" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "now", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 477, - "col": 2, - "byteIndex": 12558 - } + "inheritedFrom": { + "type": "reference", + "target": 12242, + "name": "MethodSpy.original" + } + }, + { + "id": 12299, + "name": "restored", + "variant": "declaration", + "kind": 1024, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether or not the original instance method has been restored." + } + ] }, - { - "jsDoc": { - "doc": "Set the current time. It will call any functions waiting to be called between the current and new fake time.\nIf the timer callback throws, time will stop advancing forward beyond that timer.\n", - "tags": [ - { - "kind": "throws", - "type": "RangeError", - "doc": "If the time goes backwards\n" - }, - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nassertEquals(fakeTime.now, 15_000);\n\nfakeTime.now = 35_000;\n\nassertEquals(fakeTime.now, 35_000);\n```\n" - }, - { - "kind": "param", - "name": "value", - "doc": "The current time (in milliseconds)" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "now", - "kind": "setter", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": 12248, + "name": "MethodSpy.restored" + } + }, + { + "id": 12300, + "name": "restore", + "variant": "declaration", + "kind": 2048, + "flags": { + "isInherited": true + }, + "signatures": [ + { + "id": 12301, + "name": "restore", + "variant": "signature", + "kind": 4096, + "flags": { + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If spying on an instance method, this restores the original instance method." } - } - ], - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 502, - "col": 2, - "byteIndex": 13248 + ] + }, + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "target": 12250, + "name": "MethodSpy.restore" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": 12249, + "name": "MethodSpy.restore" + } + } + ], + "typeParameters": [ + { + "id": 12285, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 12286, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" } - }, - { - "jsDoc": { - "doc": "The initial number of milliseconds elapsed since the epoch (January 1, 1970 00:00:00 UTC) for the fake time.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nassertEquals(fakeTime.start, 15_000);\n```\n" - }, - { - "kind": "return", - "doc": "The initial number of milliseconds elapsed since the epoch (January 1, 1970 00:00:00 UTC) for the fake time." - } - ] + } + }, + { + "id": 12287, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "signatures": [ + { + "id": 12302, + "name": "Stub", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12303, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12285, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Self", + "refersToTypeParameter": true + } }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "start", - "kind": "getter", - "functionDef": { - "params": [], - "returnType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] + { + "id": 12304, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12286, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Args", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12287, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Return", + "refersToTypeParameter": true + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 12238, + "typeArguments": [ + { + "type": "reference", + "target": 12285, + "name": "Self", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Self", + "refersToTypeParameter": true }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 549, - "col": 2, - "byteIndex": 14772 - } + { + "type": "reference", + "target": 12286, + "name": "Args", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Args", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12287, + "name": "Return", + "package": "@probitas-test/probitas", + "qualifiedName": "Stub.Return", + "refersToTypeParameter": true + } + ], + "name": "MethodSpy", + "package": "@probitas-test/probitas" + } + ] + }, + { + "id": 12449, + "name": "ConnectRpcResponse", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ConnectRPC response union type.\n\nUse " }, { - "jsDoc": { - "doc": "Resolves after the given number of milliseconds using real time.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nawait fakeTime.delay(500); // wait 500 ms in real time.\n\nassertEquals(fakeTime.now, 15_000); // The simulated time doesn't advance.\n```\n" - }, - { - "kind": "param", - "name": "ms", - "doc": "The milliseconds to delay" - }, - { - "kind": "param", - "name": "options", - "doc": "The options" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "delay", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "DelayOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DelayOptions" - } - } - }, - "right": "[UNSUPPORTED]", - "tsType": null - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 571, - "col": 2, - "byteIndex": 15328 - } + "kind": "code", + "text": "`processed`" }, { - "jsDoc": { - "doc": "Runs all pending microtasks.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assert } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet called = false;\n\nPromise.resolve().then(() => { called = true });\n\nawait fakeTime.runMicrotasks();\n\nassert(called);\n```" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "runMicrotasks", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 617, - "col": 2, - "byteIndex": 16581 - } + "kind": "text", + "text": " to distinguish between server responses and failures:\n- " }, { - "jsDoc": { - "doc": "Adds the specified number of milliseconds to the fake time.\nThis will call any functions waiting to be called between the current and new fake time.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport {\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\nimport { FakeTime } from \"@std/testing/time\";\n\nfunction secondInterval(cb: () => void) {\n return setInterval(cb, 1000);\n}\n\nDeno.test(\"secondInterval calls callback every second and stops after being cleared\", () => {\n using time = new FakeTime();\n\n const cb = spy();\n const intervalId = secondInterval(cb);\n assertSpyCalls(cb, 0);\n time.tick(500);\n assertSpyCalls(cb, 0);\n time.tick(500);\n assertSpyCalls(cb, 1);\n time.tick(3500);\n assertSpyCalls(cb, 4);\n\n clearInterval(intervalId);\n time.tick(1000);\n assertSpyCalls(cb, 4);\n});\n```\n" - }, - { - "kind": "param", - "name": "ms", - "doc": "The milliseconds to advance" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "tick", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - "right": "0", - "tsType": null - } - ], - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 658, - "col": 2, - "byteIndex": 17638 - } + "kind": "code", + "text": "`processed === true`" }, { - "jsDoc": { - "doc": "Runs all pending microtasks then adds the specified number of milliseconds to the fake time.\nThis will call any functions waiting to be called between the current and new fake time.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assert, assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet called = false;\n\nPromise.resolve().then(() => { called = true });\n\nawait fakeTime.tickAsync(5_000);\n\nassert(called);\nassertEquals(fakeTime.now, 20_000);\n```\n" - }, - { - "kind": "param", - "name": "ms", - "doc": "The milliseconds to advance" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "tickAsync", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - "right": "0", - "tsType": null - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 685, - "col": 2, - "byteIndex": 18333 - } + "kind": "text", + "text": ": Server responded (Success or Error)\n- " }, { - "jsDoc": { - "doc": "Advances time to when the next scheduled timer is due.\nIf there are no pending timers, time will not be changed.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assert, assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet called = false;\n\nsetTimeout(() => { called = true }, 5000);\n\nfakeTime.next();\n\nassert(called);\nassertEquals(fakeTime.now, 20_000);\n```\n" - }, - { - "kind": "return", - "doc": "`true` when there is a scheduled timer and `false` when there is not." - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "next", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 713, - "col": 2, - "byteIndex": 19021 - } + "kind": "code", + "text": "`processed === false`" }, { - "jsDoc": { - "doc": "Runs all pending microtasks then advances time to when the next scheduled timer is due.\nIf there are no pending timers, time will not be changed.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assert, assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet called0 = false;\nlet called1 = false;\n\nsetTimeout(() => { called0 = true }, 5000);\nPromise.resolve().then(() => { called1 = true });\n\nawait fakeTime.nextAsync();\n\nassert(called0);\nassert(called1);\nassertEquals(fakeTime.now, 20_000);\n```\n" - }, - { - "kind": "return", - "doc": "`true` if the pending timers existed and the time advanced, `false` if there was no pending timer and the time didn't advance." - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "nextAsync", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 745, - "col": 2, - "byteIndex": 19942 - } + "kind": "text", + "text": ": Request failed (Failure)\n\nUse " }, { - "jsDoc": { - "doc": "Advances time forward to the next due timer until there are no pending timers remaining.\nIf the timers create additional timers, they will be run too. If there is an interval,\ntime will keep advancing forward until the interval is cleared.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet count = 0;\n\nsetTimeout(() => { count++ }, 5_000);\nsetTimeout(() => { count++ }, 15_000);\nsetTimeout(() => { count++ }, 35_000);\n\nfakeTime.runAll();\n\nassertEquals(count, 3);\nassertEquals(fakeTime.now, 50_000);\n```" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "runAll", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 774, - "col": 2, - "byteIndex": 20769 - } + "kind": "code", + "text": "`ok`" }, { - "jsDoc": { - "doc": "Advances time forward to the next due timer until there are no pending timers remaining.\nIf the timers create additional timers, they will be run too. If there is an interval,\ntime will keep advancing forward until the interval is cleared.\nRuns all pending microtasks before each timer.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals } from \"@std/assert\";\n\nconst fakeTime = new FakeTime(15_000);\n\nlet count = 0;\n\nsetTimeout(() => { count++ }, 5_000);\nsetTimeout(() => { count++ }, 15_000);\nsetTimeout(() => { count++ }, 35_000);\nPromise.resolve().then(() => { count++ });\n\nawait fakeTime.runAllAsync();\n\nassertEquals(count, 4);\nassertEquals(fakeTime.now, 50_000);\n```" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "runAllAsync", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 806, - "col": 2, - "byteIndex": 21682 - } + "kind": "text", + "text": " to check for success:\n- " }, { - "jsDoc": { - "doc": "Restores time related global functions to their original state.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { FakeTime } from \"@std/testing/time\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\n\nconst fakeTime = new FakeTime(); // global timers are now faked\n\nassertNotEquals(globalThis.setTimeout, setTimeout);\n\nfakeTime.restore(); // timers are restored\n\nassertEquals(globalThis.setTimeout, setTimeout);\n```" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "restore", - "kind": "method", - "functionDef": { - "params": [], - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/time.ts", - "line": 831, - "col": 2, - "byteIndex": 22323 - } - } - ], - "extends": null, - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "MockError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 346, - "col": 0, - "byteIndex": 11591 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "An error related to spying on a function or instance method.\n", - "tags": [ + "kind": "code", + "text": "`ok === true`" + }, + { + "kind": "text", + "text": ": Success (statusCode === 0)\n- " + }, + { + "kind": "code", + "text": "`ok === false`" + }, { - "kind": "example", - "doc": "Usage\n```ts\nimport { MockError, spy } from \"@std/testing/mock\";\nimport { assertThrows } from \"@std/assert\";\n\nassertThrows(() => {\n spy({} as any, \"no-such-method\");\n}, MockError);\n```" + "kind": "text", + "text": ": Error or Failure" } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "jsDoc": { - "doc": "Construct MockError\n", - "tags": [ - { - "kind": "param", - "name": "message", - "doc": "The error message." - } - ] - }, - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } + "typeParameters": [ + { + "id": 12450, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 15710, + "typeArguments": [ + { + "type": "reference", + "target": 12450, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true } ], - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 352, - "col": 2, - "byteIndex": 11713 - } + "name": "ConnectRpcResponseSuccess", + "package": "@probitas-test/client-connectrpc" + }, + { + "type": "reference", + "target": 15684, + "typeArguments": [ + { + "type": "reference", + "target": 12450, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseError", + "package": "@probitas-test/client-connectrpc" + }, + { + "type": "reference", + "target": 15697, + "typeArguments": [ + { + "type": "reference", + "target": 12450, + "name": "T", + "package": "@probitas-test/client-connectrpc", + "refersToTypeParameter": true + } + ], + "name": "ConnectRpcResponseFailure", + "package": "@probitas-test/client-connectrpc" } - ], - "properties": [], - "indexSignatures": [], - "methods": [], - "extends": "Error", - "implements": [], - "typeParams": [], - "superTypeParams": [] + ] } }, { - "name": "SpyCall", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 359, - "col": 0, - "byteIndex": 11843 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Call information recorded by a spy." + "id": 12358, + "name": "ErrorObject", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An error object is a serializable representation of an error" + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "args", - "jsDoc": { - "doc": "Arguments passed to a function when called." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 368, - "col": 2, - "byteIndex": 12106 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" + "children": [ + { + "id": 12364, + "name": "attributes", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional attributes" } - }, - "typeParams": [] + ] }, - { - "name": "returned", - "jsDoc": { - "doc": "The value that was returned by a function." + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 370, - "col": 2, - "byteIndex": 12172 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" } - }, - "typeParams": [] - }, - { - "name": "error", - "jsDoc": { - "doc": "The error value that was thrown by a function." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 372, - "col": 2, - "byteIndex": 12249 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 12362, + "name": "message", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The error message" } - }, - "typeParams": [] + ] }, - { - "name": "self", - "jsDoc": { - "doc": "The instance that a method was called on." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 374, - "col": 2, - "byteIndex": 12317 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "string" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 12361, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The name of the error" + } + ] }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 12360, + "name": "proto", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The name of the error prototype" } - }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 12363, + "name": "stack", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The error stack" } - } + ] }, - { - "name": "Return", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "type": { + "type": "intrinsic", + "name": "string" } - ] - } + } + ] }, { - "name": "Spy", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 378, - "col": 0, - "byteIndex": 12413 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "A function or instance method wrapper that records all calls made to it." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "restore", - "jsDoc": { - "doc": "If spying on an instance method, this restores the original instance method." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 394, - "col": 2, - "byteIndex": 13048 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "typeParams": [] + "id": 12347, + "name": "Failure", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "typeParameters": [ + { + "id": 12348, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "tuple", + "elements": [ + { + "type": "namedTupleMember", + "name": "error", + "isOptional": false, + "element": { + "type": "reference", + "target": 12348, + "name": "E", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "type": "namedTupleMember", + "name": "value", + "isOptional": false, + "element": { + "type": "intrinsic", + "name": "undefined" + } } - ], - "properties": [ + ] + } + }, + { + "id": 12451, + "name": "GraphqlResponse", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "name": "original", - "jsDoc": { - "doc": "The function that is being spied on." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 388, - "col": 2, - "byteIndex": 12704 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - } - ], - "typeParams": [] - } - }, - "typeParams": [] + "kind": "text", + "text": "GraphQL response union type.\n\nUse " }, { - "name": "calls", - "jsDoc": { - "doc": "Information about calls made to the function or instance method." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 390, - "col": 2, - "byteIndex": 12829 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SpyCall", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - } - ], - "typeName": "SpyCall" - } - } - }, - "typeParams": [] + "kind": "code", + "text": "`processed`" }, { - "name": "restored", - "jsDoc": { - "doc": "Whether or not the original instance method has been restored." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 392, - "col": 2, - "byteIndex": 12941 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [ + "kind": "text", + "text": " to distinguish between server responses and failures:\n- " + }, { - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 386, - "col": 2, - "byteIndex": 12619 - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - } - ], - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - "typeParams": [] - } - ], - "indexSignatures": [], - "typeParams": [ + "kind": "code", + "text": "`processed === true`" + }, { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": ": Server responded (Success or Error)\n- " }, { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } + "kind": "code", + "text": "`processed === false`" }, { - "name": "Return", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "MethodSpy", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 398, - "col": 0, - "byteIndex": 13137 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "An instance method wrapper that records all calls made to it." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "Spy", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - } - ], - "typeName": "Spy" - } + "kind": "text", + "text": ": Request failed (Failure)\n\nUse " }, { - "repr": "Disposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Disposable" - } - } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ + "kind": "code", + "text": "`ok`" + }, { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": " to check for success:\n- " }, { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } + "kind": "code", + "text": "`ok === true`" }, { - "name": "Return", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "kind": "text", + "text": ": Success (no errors)\n- " + }, + { + "kind": "code", + "text": "`ok === false`" + }, + { + "kind": "text", + "text": ": Error or Failure" } ] - } - }, - { - "name": "mockSession", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 476, - "col": 0, - "byteIndex": 15143 }, - "declarationKind": "export", - "jsDoc": { - "doc": "Creates a session that tracks all mocks created before it's restored.\nIf a callback is provided, it restores all mocks created within it.\n", - "tags": [ + "typeParameters": [ + { + "id": 12452, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 15750, + "typeArguments": [ + { + "type": "reference", + "target": 12452, + "name": "T", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseSuccess", + "package": "@probitas-test/client-graphql" + }, { - "kind": "example", - "doc": "Usage\n```ts\nimport { mockSession, restore, stub } from \"@std/testing/mock\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\nconst id = mockSession();\n\nstub(globalThis, \"setTimeout\");\n\nassertNotEquals(globalThis.setTimeout, setTimeout);\n\nrestore(id);\n\nassertEquals(globalThis.setTimeout, setTimeout);\n```\n" + "type": "reference", + "target": 15724, + "typeArguments": [ + { + "type": "reference", + "target": 12452, + "name": "T", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseError", + "package": "@probitas-test/client-graphql" }, { - "kind": "return", - "doc": "The id of the created session." + "type": "reference", + "target": 15737, + "typeArguments": [ + { + "type": "reference", + "target": 12452, + "name": "T", + "package": "@probitas-test/client-graphql", + "refersToTypeParameter": true + } + ], + "name": "GraphqlResponseFailure", + "package": "@probitas-test/client-graphql" } ] - }, - "kind": "function", - "functionDef": { - "params": [], - "returnType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [] } }, { - "name": "mockSession", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 503, - "col": 0, - "byteIndex": 16057 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Creates a session that tracks all mocks created before it's restored.\nIf a callback is provided, it restores all mocks created within it.\n", - "tags": [ + "id": 12453, + "name": "HttpResponse", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Usage\n```ts\nimport { mockSession, restore, stub } from \"@std/testing/mock\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\nconst session = mockSession(() => {\n stub(globalThis, \"setTimeout\");\n assertNotEquals(globalThis.setTimeout, setTimeout);\n});\n\nsession();\n\nassertEquals(globalThis.setTimeout, setTimeout); // stub is restored\n```\n" + "kind": "text", + "text": "HTTP response union type representing all possible response states.\n\n- **Success (2xx)**: " }, { - "kind": "template", - "name": "Self", - "doc": "The self type of the function." + "kind": "code", + "text": "`processed: true, ok: true, error: null`" }, { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the function." + "kind": "text", + "text": "\n- **Error (4xx/5xx)**: " }, { - "kind": "template", - "name": "Return", - "doc": "The return type of the function." + "kind": "code", + "text": "`processed: true, ok: false, error: HttpError`" }, { - "kind": "param", - "name": "func", - "doc": "The function to be used for the created session." + "kind": "text", + "text": "\n- **Failure (network error)**: " }, { - "kind": "return", - "doc": "The function to execute the session." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "func", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - } - ], - "typeParams": [] - } - } + "kind": "code", + "text": "`processed: false, ok: false, error: Error`" } ], - "returnType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" + "blockTags": [ + { + "tag": "@example", + "name": "Type narrowing by ok", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.ok) {\n // TypeScript knows: HttpResponseSuccess\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseError | HttpResponseFailure\n console.log(response.error); // Error\n}\n```" } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, + ] + }, + { + "tag": "@example", + "name": "Type narrowing by processed", + "content": [ { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } + "kind": "code", + "text": "```ts\nimport { createHttpClient } from \"@probitas-test/client-http\";\n\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\nconst response = await http.get(\"/users\");\nif (response.processed) {\n // TypeScript knows: HttpResponseSuccess | HttpResponseError\n console.log(response.status); // number\n} else {\n // TypeScript knows: HttpResponseFailure\n console.log(response.error); // Error (network error)\n}\n```" } - ], - "typeParams": [] + ] } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" + ] + }, + "typeParameters": [ + { + "id": 12454, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 15919, + "typeArguments": [ + { + "type": "reference", + "target": 12454, + "name": "T", + "package": "@probitas-test/client-http", + "refersToTypeParameter": true + } + ], + "name": "HttpResponseSuccess", + "package": "@probitas-test/client-http" }, { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "reference", + "target": 15885, + "typeArguments": [ + { + "type": "reference", + "target": 12454, + "name": "T", + "package": "@probitas-test/client-http", + "refersToTypeParameter": true } - } + ], + "name": "HttpResponseError", + "package": "@probitas-test/client-http" }, { - "name": "Return" + "type": "reference", + "target": 15902, + "typeArguments": [ + { + "type": "reference", + "target": 12454, + "name": "T", + "package": "@probitas-test/client-http", + "refersToTypeParameter": true + } + ], + "name": "HttpResponseFailure", + "package": "@probitas-test/client-http" } ] } }, { - "name": "mockSession", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 510, - "col": 0, - "byteIndex": 16222 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "func", - "optional": true, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - } - ], - "typeParams": [] - } - } + "id": 12455, + "name": "MongoResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Union of all MongoDB result types." } - ], - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - } - ], - "typeParams": [] - } + ] + }, + "typeParameters": [ + { + "id": 12456, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 15941, + "typeArguments": [ + { + "type": "reference", + "target": 12456, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - } - ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + ], + "name": "MongoFindResult", + "package": "@probitas-test/client-mongodb" + }, { - "name": "Self" + "type": "reference", + "target": 15944, + "name": "MongoInsertOneResult", + "package": "@probitas-test/client-mongodb" }, { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": "reference", + "target": 15943, + "name": "MongoInsertManyResult", + "package": "@probitas-test/client-mongodb" + }, + { + "type": "reference", + "target": 15946, + "name": "MongoUpdateResult", + "package": "@probitas-test/client-mongodb" + }, + { + "type": "reference", + "target": 15937, + "name": "MongoDeleteResult", + "package": "@probitas-test/client-mongodb" + }, + { + "type": "reference", + "target": 15939, + "typeArguments": [ + { + "type": "reference", + "target": 12456, + "name": "T", + "package": "@probitas-test/client-mongodb", + "refersToTypeParameter": true } - } + ], + "name": "MongoFindOneResult", + "package": "@probitas-test/client-mongodb" }, { - "name": "Return" + "type": "reference", + "target": 15936, + "name": "MongoCountResult", + "package": "@probitas-test/client-mongodb" } ] } }, { - "name": "mockSessionAsync", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 557, - "col": 0, - "byteIndex": 17522 + "id": 12457, + "name": "RabbitMqResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Union of all RabbitMQ result types." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Creates an async session that tracks all mocks created before the promise resolves.\n", - "tags": [ + "type": { + "type": "union", + "types": [ { - "kind": "example", - "doc": "Usage\n```ts\nimport { mockSessionAsync, restore, stub } from \"@std/testing/mock\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\nconst session = mockSessionAsync(async () => {\n stub(globalThis, \"setTimeout\");\n assertNotEquals(globalThis.setTimeout, setTimeout);\n});\n\nawait session();\n\nassertEquals(globalThis.setTimeout, setTimeout); // stub is restored\n```" + "type": "reference", + "target": 13966, + "name": "RabbitMqPublishResult", + "package": "@probitas-test/client-rabbitmq" }, { - "kind": "template", - "name": "Self", - "doc": "The self type of the function." + "type": "reference", + "target": 13988, + "name": "RabbitMqConsumeResult", + "package": "@probitas-test/client-rabbitmq" }, { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the function." + "type": "reference", + "target": 14007, + "name": "RabbitMqAckResult", + "package": "@probitas-test/client-rabbitmq" }, { - "kind": "template", - "name": "Return", - "doc": "The return type of the function." + "type": "reference", + "target": 14035, + "name": "RabbitMqQueueResult", + "package": "@probitas-test/client-rabbitmq" }, { - "kind": "param", - "name": "func", - "doc": "The function." - }, + "type": "reference", + "target": 14054, + "name": "RabbitMqExchangeResult", + "package": "@probitas-test/client-rabbitmq" + } + ] + } + }, + { + "id": 12458, + "name": "RedisResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "return", - "doc": "The return value of the function." + "kind": "text", + "text": "Union of all Redis result types." } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "func", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - } - ], - "typeName": "Promise" - } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "returnType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - } - ], - "typeName": "Promise" - } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, + "typeParameters": [ + { + "id": 12459, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 14607, + "typeArguments": [ { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } + "type": "reference", + "target": 12459, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true } ], - "typeParams": [] - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + "name": "RedisCommonResult", + "package": "@probitas-test/client-redis" + }, { - "name": "Self" + "type": "reference", + "target": 14490, + "name": "RedisGetResult", + "package": "@probitas-test/client-redis" }, { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } + "type": "reference", + "target": 14512, + "name": "RedisSetResult", + "package": "@probitas-test/client-redis" }, { - "name": "Return" - } - ] - } - }, - { - "name": "restore", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 597, - "col": 0, - "byteIndex": 18692 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Restores all mocks registered in the current session that have not already been restored.\nIf an id is provided, it will restore all mocks registered in the session associed with that id that have not already been restored.\n", - "tags": [ + "type": "reference", + "target": 14534, + "name": "RedisCountResult", + "package": "@probitas-test/client-redis" + }, { - "kind": "example", - "doc": "Usage\n```ts\nimport { mockSession, restore, stub } from \"@std/testing/mock\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\n\nstub(globalThis, \"setTimeout\");\n\nassertNotEquals(globalThis.setTimeout, setTimeout);\n\nrestore();\n\nassertEquals(globalThis.setTimeout, setTimeout);\n```\n" + "type": "reference", + "target": 14559, + "typeArguments": [ + { + "type": "reference", + "target": 12459, + "name": "T", + "package": "@probitas-test/client-redis", + "refersToTypeParameter": true + } + ], + "name": "RedisArrayResult", + "package": "@probitas-test/client-redis" }, { - "kind": "param", - "name": "id", - "doc": "The id of the session to restore. If not provided, all mocks registered in the current session are restored." + "type": "reference", + "target": 14582, + "name": "RedisHashResult", + "package": "@probitas-test/client-redis" } ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "id", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] } }, { - "name": "ConstructorSpy", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 701, - "col": 0, - "byteIndex": 21253 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "A constructor wrapper that records all calls made to it." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [ - { - "jsDoc": { - "doc": "Construct an instance." - }, - "params": [ + "id": 12349, + "name": "Result", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "typeParameters": [ + { + "id": 12350, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 12351, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 12345, + "typeArguments": [ { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } + "type": "reference", + "target": 12350, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } ], - "returnType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - "typeParams": [], - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 708, - "col": 2, - "byteIndex": 21448 - } - } - ], - "methods": [ - { - "name": "restore", - "jsDoc": { - "doc": "If spying on an instance method, this restores the original instance method." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 716, - "col": 2, - "byteIndex": 21855 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "typeParams": [] - } - ], - "properties": [ - { - "name": "original", - "jsDoc": { - "doc": "The function that is being spied on." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 710, - "col": 2, - "byteIndex": 21523 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - } - ], - "typeParams": [] - } - }, - "typeParams": [] - }, - { - "name": "calls", - "jsDoc": { - "doc": "Information about calls made to the function or instance method." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 712, - "col": 2, - "byteIndex": 21638 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "SpyCall", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - ], - "typeName": "SpyCall" - } - } - }, - "typeParams": [] - }, - { - "name": "restored", - "jsDoc": { - "doc": "Whether or not the original instance method has been restored." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 714, - "col": 2, - "byteIndex": 21748 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "name": "Success", + "package": "@probitas-test/probitas" }, { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "reference", + "target": 12347, + "typeArguments": [ + { + "type": "reference", + "target": 12351, + "name": "E", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - } + ], + "name": "Failure", + "package": "@probitas-test/probitas" } ] } }, { - "name": "GetParametersFromProp", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 761, - "col": 0, - "byteIndex": 23026 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Utility for extracting the arguments type from a property\n", - "tags": [ + "id": 12280, + "name": "SpyLike", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" + "kind": "text", + "text": "SpyLink object type." } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "", - "kind": "indexedAccess", - "indexedAccess": { - "readonly": false, - "objType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - "indexType": { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" - } - } - } - }, - "extendsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "infer", - "infer": { - "typeParam": { - "name": "Args" - } - } - } - } - ], - "typeParams": [] - } - }, - "trueType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, - "falseType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "typeParameters": [ + { + "id": 12281, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 12282, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" } } }, - "typeParams": [ - { - "name": "Self" + { + "id": 12283, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 12222, + "typeArguments": [ + { + "type": "reference", + "target": 12281, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12282, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12283, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "Spy", + "package": "@probitas-test/probitas" }, { - "name": "Prop", - "constraint": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "keyof", - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } + "type": "reference", + "target": 12254, + "typeArguments": [ + { + "type": "reference", + "target": 12281, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12282, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - } + ], + "name": "ConstructorSpy", + "package": "@probitas-test/probitas" } ] } }, { - "name": "GetReturnFromProp", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 772, - "col": 0, - "byteIndex": 23257 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Utility for extracting the return type from a property\n", - "tags": [ + "id": 12460, + "name": "SqlQueryResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "internal" - } - ] - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "", - "kind": "indexedAccess", - "indexedAccess": { - "readonly": false, - "objType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - "indexType": { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" - } - } - } - }, - "extendsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "", - "kind": "infer", - "infer": { - "typeParam": { - "name": "Return" - } - } - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - } - ], - "typeParams": [] - } - }, - "trueType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - "falseType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "kind": "text", + "text": "SQL query result union type representing all possible result states.\n\n- **Success**: " + }, + { + "kind": "code", + "text": "`processed: true, ok: true, error: null`" + }, + { + "kind": "text", + "text": "\n- **Error**: " + }, + { + "kind": "code", + "text": "`processed: true, ok: false, error: SqlError`" + }, + { + "kind": "text", + "text": "\n- **Failure**: " + }, + { + "kind": "code", + "text": "`processed: false, ok: false, error: SqlConnectionError`" } - }, - "typeParams": [ + ], + "blockTags": [ { - "name": "Self" + "tag": "@example", + "name": "Type narrowing by ok", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.ok) {\n // TypeScript knows: SqlQueryResultSuccess\n console.log(result.rows[0]);\n} else {\n // TypeScript knows: SqlQueryResultError | SqlQueryResultFailure\n console.log(result.error.message);\n}\n```" + } + ] }, { - "name": "Prop", - "constraint": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "keyof", - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } + "tag": "@example", + "name": "Type narrowing by processed", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { createPostgresClient } from \"@probitas-test/client-sql-postgres\";\n\nawait using client = await createPostgresClient({ url: \"postgres://localhost/db\" });\nconst result = await client.query(\"SELECT * FROM users\");\nif (result.processed) {\n // TypeScript knows: SqlQueryResultSuccess | SqlQueryResultError\n console.log(result.rowCount);\n} else {\n // TypeScript knows: SqlQueryResultFailure\n console.log(result.error.message); // Connection error\n}\n```" } - } + ] } ] - } - }, - { - "name": "SpyLike", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 780, - "col": 0, - "byteIndex": 23467 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "SpyLink object type." }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Spy", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - } - ], - "typeName": "Spy" - } - }, - { - "repr": "ConstructorSpy", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - ], - "typeName": "ConstructorSpy" + "typeParameters": [ + { + "id": 12461, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 14939, + "typeArguments": [ + { + "type": "reference", + "target": 12461, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } - } - ] - }, - "typeParams": [ - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + ], + "name": "SqlQueryResultSuccess", + "package": "@probitas-test/client-sql" }, { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "type": "reference", + "target": 14964, + "typeArguments": [ + { + "type": "reference", + "target": 12461, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true } - } + ], + "name": "SqlQueryResultError", + "package": "@probitas-test/client-sql" }, { - "name": "Return", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "type": "reference", + "target": 14989, + "typeArguments": [ + { + "type": "reference", + "target": 12461, + "name": "T", + "package": "@probitas-test/client-sql", + "refersToTypeParameter": true + } + ], + "name": "SqlQueryResultFailure", + "package": "@probitas-test/client-sql" } ] } }, { - "name": "spy", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 818, - "col": 0, - "byteIndex": 24359 + "id": 12462, + "name": "SqsResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Union type of all SQS result types." + } + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Creates a spy function.\n", - "tags": [ + "type": { + "type": "union", + "types": [ { - "kind": "example", - "doc": "Usage\n```ts\nimport {\n assertSpyCall,\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\n\nconst func = spy();\n\nfunc();\nfunc(1);\nfunc(2, 3);\n\nassertSpyCalls(func, 3);\n\n// asserts each call made to the spy function.\nassertSpyCall(func, 0, { args: [] });\nassertSpyCall(func, 1, { args: [1] });\nassertSpyCall(func, 2, { args: [2, 3] });\n```\n" + "type": "reference", + "target": 16524, + "name": "SqsSendResult", + "package": "@probitas-test/client-sqs" }, { - "kind": "template", - "name": "Self", - "doc": "The self type of the function." + "type": "reference", + "target": 16523, + "name": "SqsSendBatchResult", + "package": "@probitas-test/client-sqs" }, { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the function." + "type": "reference", + "target": 16521, + "name": "SqsReceiveResult", + "package": "@probitas-test/client-sqs" }, { - "kind": "template", - "name": "Return", - "doc": "The return type of the function." + "type": "reference", + "target": 16519, + "name": "SqsDeleteResult", + "package": "@probitas-test/client-sqs" }, { - "kind": "return", - "doc": "The spy function." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [], - "returnType": { - "repr": "Spy", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - } - ], - "typeName": "Spy" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "type": "reference", + "target": 16517, + "name": "SqsDeleteBatchResult", + "package": "@probitas-test/client-sqs" }, { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } + "type": "reference", + "target": 16520, + "name": "SqsEnsureQueueResult", + "package": "@probitas-test/client-sqs" }, { - "name": "Return", - "default": { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - } + "type": "reference", + "target": 16518, + "name": "SqsDeleteQueueResult", + "package": "@probitas-test/client-sqs" } ] } }, { - "name": "spy", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 854, - "col": 0, - "byteIndex": 25295 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a spy function with the given implementation.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport {\n assertSpyCall,\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\n\nconst func = spy((a: number, b: number) => a + b);\n\nfunc(3, 4);\nfunc(5, 6);\n\nassertSpyCalls(func, 2);\n\n// asserts each call made to the spy function.\nassertSpyCall(func, 0, { args: [3, 4], returned: 7 });\nassertSpyCall(func, 1, { args: [5, 6], returned: 11 });\n```\n" - }, + "id": 12413, + "name": "StepContext", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "template", - "name": "Self", - "doc": "The self type of the function to wrap" + "kind": "text", + "text": "Execution context provided to steps, resources, and setup hooks.\n\nThe context provides access to:\n- Previous step results with full type inference\n- All accumulated results as a typed tuple\n- Named resources registered with " }, { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the function to wrap" + "kind": "code", + "text": "`.resource()`" }, { - "kind": "template", - "name": "Return", - "doc": "The return type of the function to wrap" - }, + "kind": "text", + "text": "\n- Shared storage for cross-step communication\n- Abort signal for timeout and cancellation handling" + } + ], + "blockTags": [ { - "kind": "param", - "name": "func", - "doc": "The function to wrap" + "tag": "@example", + "name": "Accessing previous result", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Chained Steps\")\n .step(\"First\", () => ({ id: 123 }))\n .step(\"Second\", (ctx) => {\n console.log(ctx.previous.id); // 123 (typed as number)\n })\n .build();\n```" + } + ] }, { - "kind": "return", - "doc": "The wrapped function." + "tag": "@example", + "name": "Using shared store", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Store Example\")\n .setup((ctx) => {\n ctx.store.set(\"startTime\", Date.now());\n })\n .step(\"Check duration\", (ctx) => {\n const start = ctx.store.get(\"startTime\") as number;\n console.log(`Elapsed: ${Date.now() - start}ms`);\n })\n .build();\n```" + } + ] } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "func", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "returnType": { - "repr": "Spy", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, + "typeParameters": [ + { + "id": 12418, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "kind": "text", + "text": "Type of the previous step's return value" } - ], - "typeName": "Spy" + ] + }, + "default": { + "type": "intrinsic", + "name": "unknown" } }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" + { + "id": 12419, + "name": "A", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Tuple type of all accumulated results from previous steps" + } + ] }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } }, - { - "name": "Return" + "default": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } } - ] - } - }, - { - "name": "spy", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 891, - "col": 0, - "byteIndex": 26151 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a spy constructor.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport {\n assertSpyCall,\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\n\nclass Foo {\n constructor(value: string) {}\n};\n\nconst Constructor = spy(Foo);\n\nnew Constructor(\"foo\");\nnew Constructor(\"bar\");\n\nassertSpyCalls(Constructor, 2);\n\n// asserts each call made to the spy function.\nassertSpyCall(Constructor, 0, { args: [\"foo\"] });\nassertSpyCall(Constructor, 1, { args: [\"bar\"] });\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The type of the instance of the class." - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the constructor" + }, + { + "id": 12420, + "name": "R", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Record type mapping resource names to their types" + } + ] }, - { - "kind": "param", - "name": "constructor", - "doc": "The constructor to spy." + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" }, - { - "kind": "return", - "doc": "The wrapped constructor." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "constructor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + "default": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepContext" + }, + "name": "StepContext", + "package": "@probitas-test/core" + }, + { + "type": "reflection", + "declaration": { + "id": 12414, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 12415, + "name": "previous", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Result from the previous step.\n\nFully typed based on what the previous step returned.\nFor the first step, this is " + }, + { + "kind": "code", + "text": "`unknown`" + }, + { + "kind": "text", + "text": "." + } + ] + }, + "type": { + "type": "reference", + "target": 12418, + "name": "P", + "package": "@probitas-test/builder", + "refersToTypeParameter": true } }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" + { + "id": 12417, + "name": "resources", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Named resources registered with " + }, + { + "kind": "code", + "text": "`.resource()`" + }, + { + "kind": "text", + "text": ".\n\nResources are typed based on their registration:\n" + }, + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock database connection for example\nconst createDbConnection = () => ({ query: (_sql: string) => [{ id: 1 }] });\n\nscenario(\"test\")\n .resource(\"db\", () => createDbConnection())\n .step((ctx) => ctx.resources.db.query(\"SELECT 1\"))\n .build();\n```" } - } + ] + }, + "type": { + "type": "reference", + "target": 12420, + "name": "R", + "package": "@probitas-test/builder", + "refersToTypeParameter": true + } + }, + { + "id": 12416, + "name": "results", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n- " + }, + { + "kind": "code", + "text": "`ctx.results[0]`" + }, + { + "kind": "text", + "text": " - First step's result\n- " + }, + { + "kind": "code", + "text": "`ctx.results[1]`" + }, + { + "kind": "text", + "text": " - Second step's result" + } + ] + }, + "type": { + "type": "reference", + "target": 12419, + "name": "A", + "package": "@probitas-test/builder", + "refersToTypeParameter": true } - ], - "typeParams": [] - } - } - } - ], - "returnType": { - "repr": "ConstructorSpy", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" } - } - ], - "typeName": "ConstructorSpy" + ] + } } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" + ] + } + }, + { + "id": 12345, + "name": "Success", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "typeParameters": [ + { + "id": 12346, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "tuple", + "elements": [ + { + "type": "namedTupleMember", + "name": "error", + "isOptional": false, + "element": { + "type": "intrinsic", + "name": "undefined" + } }, { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + "type": "namedTupleMember", + "name": "value", + "isOptional": false, + "element": { + "type": "reference", + "target": 12346, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } } ] } }, { - "name": "spy", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 932, - "col": 0, - "byteIndex": 27094 + "id": 12365, + "name": "isErrorObject", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true }, - "declarationKind": "export", - "jsDoc": { - "doc": "Wraps a instance method with a Spy.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport {\n assertSpyCall,\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\n\nconst obj = {\n method(a: number, b: number): number {\n return a + b;\n },\n};\n\nconst methodSpy = spy(obj, \"method\");\n\nobj.method(1, 2);\nobj.method(3, 4);\n\nassertSpyCalls(methodSpy, 2);\n\n// asserts each call made to the spy function.\nassertSpyCall(methodSpy, 0, { args: [1, 2], returned: 3 });\nassertSpyCall(methodSpy, 1, { args: [3, 4], returned: 7 });\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The type of the instance to spy the method of." - }, - { - "kind": "template", - "name": "Prop", - "doc": "The property to spy." - }, + "comment": { + "summary": [ { - "kind": "param", - "name": "self", - "doc": "The instance to spy." - }, - { - "kind": "param", - "name": "property", - "doc": "The property of the method to spy." - }, - { - "kind": "return", - "doc": "The spy function." + "kind": "text", + "text": "Check if a value is an error object" } ] }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "self", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + "type": { + "type": "reflection", + "declaration": { + "id": 12366, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12367, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12368, + "name": "x", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "predicate", + "name": "x", + "asserts": false, + "targetType": { + "type": "reference", + "target": 12358, + "name": "ErrorObject", + "package": "@probitas-test/probitas" + } } } - }, - { - "kind": "identifier", - "name": "property", - "optional": false, - "tsType": { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" + ] + } + }, + "defaultValue": "..." + }, + { + "id": 12319, + "name": "alter", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12320, + "name": "alter", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Alter the error of a function if an error is thrown." } - } - } - ], - "returnType": { - "repr": "MethodSpy", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The result of the function." + } + ] }, { - "repr": "GetParametersFromProp", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" - } - } - ], - "typeName": "GetParametersFromProp" - } + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "The value of alt." + } + ] }, { - "repr": "GetReturnFromProp", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { assertThrows } from \"@std/assert\";\nimport { alter } from \"@core/errorutil/alter\";\n\nconsole.log(alter(() => 1, \"err2\")); // 1\nassertThrows(() => alter(() => { throw \"err1\" }, \"err2\"), \"err2\"); // \"err2\" is thrown\n```" + } + ] + } + ] + }, + "typeParameters": [ + { + "id": 12321, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 12322, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 12323, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function to execute." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12324, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" + "id": 12325, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": 12321, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } } - ], - "typeName": "GetReturnFromProp" + ] } } - ], - "typeName": "MethodSpy" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" - }, - { - "name": "Prop", - "constraint": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "keyof", - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + }, + { + "id": 12326, + "name": "alt", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to throw if an error is thrown." } - } - } - } + ] + }, + "type": { + "type": "reference", + "target": 12322, + "name": "E", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12321, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - ] - } + } + ] }, { - "name": "spy", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 943, - "col": 0, - "byteIndex": 27279 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "funcOrConstOrSelf", - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - } - ], - "typeParams": [] - } + "id": 12327, + "name": "alterElse", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12328, + "name": "alterElse", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Alter the error of a function if an error is thrown." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The result of the function." } - }, - { - "repr": "", - "kind": "parenthesized", - "parenthesized": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - "params": [ + ] + }, + { + "tag": "@throws", + "content": [ + { + "kind": "text", + "text": "The result of the modifier function." + } + ] + }, + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { assertThrows } from \"@std/assert\";\nimport { alterElse } from \"@core/errorutil/alter-else\";\n\nconsole.log(alterElse(() => 1, () => \"err\")); // 1\nassertThrows(() => alterElse(() => { throw \"err\" }, (err) => \"new \" + err), \"new err\"); // \"new err\" is thrown\n```" + } + ] + } + ] + }, + "typeParameters": [ + { + "id": 12329, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 12330, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 12331, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function to execute." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12332, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12333, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": 12329, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 12334, + "name": "elseFn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 12335, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12336, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } + "id": 12337, + "name": "err", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" } } ], - "typeParams": [] + "type": { + "type": "reference", + "target": 12330, + "name": "E", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } } - } - }, - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } + ] } - ] + } } + ], + "type": { + "type": "reference", + "target": 12329, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ] + }, + { + "id": 12109, + "name": "assertSpyCall", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12110, + "name": "assertSpyCall", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a spy is called as expected." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { assertSpyCall, spy } from \"@std/testing/mock\";\n\nconst func = spy((a: number, b: number) => a + b);\n\nfunc(3, 4);\nfunc(5, 6);\n\n// asserts each call made to the spy function.\nassertSpyCall(func, 0, { args: [3, 4], returned: 7 });\nassertSpyCall(func, 1, { args: [5, 6], returned: 11 });\n```" + } + ] + } + ] }, - { - "kind": "identifier", - "name": "property", - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "keyof", - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + "typeParameters": [ + { + "id": 12111, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the spy function." + } + ] + } + }, + { + "id": 12112, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the spy function." } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } + }, + { + "id": 12113, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the spy function." + } + ] + } } - } - ], - "returnType": { - "repr": "SpyLike", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } + ], + "parameters": [ + { + "id": 12114, + "name": "spy", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The spy to check" + } + ] }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } + "type": { + "type": "reference", + "target": 12280, + "typeArguments": [ + { + "type": "reference", + "target": 12111, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12112, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12113, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "SpyLike", + "package": "@probitas-test/probitas" + } + }, + { + "id": 12115, + "name": "callIndex", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The index of the call to check" + } + ] }, - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "type": { + "type": "intrinsic", + "name": "number" } - ], - "typeName": "SpyLike" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" - }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + }, + { + "id": 12116, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected spy call." + } + ] + }, + "type": { + "type": "reference", + "target": 12305, + "typeArguments": [ + { + "type": "reference", + "target": 12111, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12112, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12113, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "ExpectedSpyCall", + "package": "@probitas-test/probitas" } } - }, - { - "name": "Return" + ], + "type": { + "type": "intrinsic", + "name": "void" } - ] - } + } + ] }, { - "name": "Stub", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 970, - "col": 0, - "byteIndex": 28088 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "An instance method replacement that records all calls made to it." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "MethodSpy", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + "id": 12125, + "name": "assertSpyCallArg", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12126, + "name": "assertSpyCallArg", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a spy is called with a specific arg as expected." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { assertSpyCallArg, spy } from \"@std/testing/mock\";\n\nconst func = spy((a: number, b: number) => a + b);\n\nfunc(3, 4);\nfunc(5, 6);\n\n// asserts each call made to the spy function.\nassertSpyCallArg(func, 0, 0, 3);\nassertSpyCallArg(func, 0, 1, 4);\nassertSpyCallArg(func, 1, 0, 5);\nassertSpyCallArg(func, 1, 1, 6);\n```" } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The actual argument." } - }, - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" + ] + } + ] + }, + "typeParameters": [ + { + "id": 12127, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the spy function." } + ] + } + }, + { + "id": 12128, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the spy function." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } - ], - "typeName": "MethodSpy" - } - } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "fake", - "jsDoc": { - "doc": "The function that is used instead of the original." + } }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 979, - "col": 2, - "byteIndex": 28393 + { + "id": 12129, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the spy function." + } + ] + } }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" + { + "id": 12130, + "name": "ExpectedArg", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected type of the argument for the spy to be called." } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } + ] + } + } + ], + "parameters": [ + { + "id": 12131, + "name": "spy", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The spy to check." + } + ] + }, + "type": { + "type": "reference", + "target": 12280, + "typeArguments": [ + { + "type": "reference", + "target": 12127, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } + "type": "reference", + "target": 12128, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12129, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } ], - "typeParams": [] + "name": "SpyLike", + "package": "@probitas-test/probitas" } }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + { + "id": 12132, + "name": "callIndex", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The index of the call to check." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + { + "id": 12133, + "name": "argIndex", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The index of the arguments to check." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - } - }, - { - "name": "Return", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + }, + { + "id": 12134, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected argument." + } + ] + }, + "type": { + "type": "reference", + "target": 12130, + "name": "ExpectedArg", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12130, + "name": "ExpectedArg", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - ] - } + } + ] }, { - "name": "stub", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1011, - "col": 0, - "byteIndex": 29165 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Replaces an instance method with a Stub with empty implementation.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { stub, assertSpyCalls } from \"@std/testing/mock\";\n\nconst obj = {\n method() {\n // some inconventient feature for testing\n },\n};\n\nconst methodStub = stub(obj, \"method\");\n\nfor (const _ of Array(5)) {\n obj.method();\n}\n\nassertSpyCalls(methodStub, 5);\n```\n\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the instance to replace a method of." - }, - { - "kind": "template", - "name": "Prop", - "doc": "The property of the instance to replace." - }, - { - "kind": "param", - "name": "self", - "doc": "The instance to replace a method of." - }, - { - "kind": "param", - "name": "property", - "doc": "The property of the instance to replace." - }, - { - "kind": "return", - "doc": "The stub function which replaced the original." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "self", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "identifier", - "name": "property", - "optional": false, - "tsType": { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" + "id": 12135, + "name": "assertSpyCallArgs", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12136, + "name": "assertSpyCallArgs", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that an spy is called with a specific range of args as expected.\nIf a start and end index is not provided, the expected will be compared against all args.\nIf a start is provided without an end index, the expected will be compared against all args from the start index to the end.\nThe end index is not included in the range of args that are compared." } - } - } - ], - "returnType": { - "repr": "Stub", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, + ], + "blockTags": [ { - "repr": "GetParametersFromProp", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" - } - } - ], - "typeName": "GetParametersFromProp" - } + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { assertSpyCallArgs, spy } from \"@std/testing/mock\";\n\nconst func = spy((a: number, b: number) => a + b);\n\nfunc(3, 4);\nfunc(5, 6);\n\n// asserts each call made to the spy function.\nassertSpyCallArgs(func, 0, [3, 4]);\nassertSpyCallArgs(func, 1, [5, 6]);\n```" + } + ] }, { - "repr": "GetReturnFromProp", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" - } - } - ], - "typeName": "GetReturnFromProp" - } - } - ], - "typeName": "Stub" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" - }, - { - "name": "Prop", - "constraint": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "keyof", - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The actual arguments." } - } + ] } - } - } - ] - } - }, - { - "name": "stub", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1044, - "col": 0, - "byteIndex": 30095 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Replaces an instance method with a Stub with the given implementation.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { stub } from \"@std/testing/mock\";\nimport { assertEquals } from \"@std/assert\";\n\nconst obj = {\n method(): number {\n return Math.random();\n },\n};\n\nconst methodStub = stub(obj, \"method\", () => 0.5);\n\nassertEquals(obj.method(), 0.5);\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the instance to replace a method of." - }, - { - "kind": "template", - "name": "Prop", - "doc": "The property of the instance to replace." - }, - { - "kind": "param", - "name": "self", - "doc": "The instance to replace a method of." - }, - { - "kind": "param", - "name": "property", - "doc": "The property of the instance to replace." - }, - { - "kind": "param", - "name": "func", - "doc": "The fake implementation of the function." + ] }, - { - "kind": "return", - "doc": "The stub function which replaced the original." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "self", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "identifier", - "name": "property", - "optional": false, - "tsType": { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" - } - } - }, - { - "kind": "identifier", - "name": "func", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "GetReturnFromProp", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" - } - } - ], - "typeName": "GetReturnFromProp" - } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, + "typeParameters": [ + { + "id": 12137, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "GetParametersFromProp", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" - } - } - ], - "typeName": "GetParametersFromProp" - } - } + "kind": "text", + "text": "The self type of the spy function." } - ], - "typeParams": [] + ] } - } - } - ], - "returnType": { - "repr": "Stub", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "GetParametersFromProp", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" - } - } - ], - "typeName": "GetParametersFromProp" - } + }, + { + "id": 12138, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the spy function." + } + ] }, - { - "repr": "GetReturnFromProp", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Prop", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Prop" - } - } - ], - "typeName": "GetReturnFromProp" + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } - ], - "typeName": "Stub" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" - }, - { - "name": "Prop", - "constraint": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "keyof", - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + }, + { + "id": 12139, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the spy function." } - } + ] } - } - } - ] - } - }, - { - "name": "stub", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1055, - "col": 0, - "byteIndex": 30379 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "self", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } - }, - { - "kind": "identifier", - "name": "property", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "keyof", - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + }, + { + "id": 12140, + "name": "ExpectedArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected type of the arguments for the spy to be called." } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } } - }, - { - "kind": "identifier", - "name": "func", - "optional": true, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" + ], + "parameters": [ + { + "id": 12141, + "name": "spy", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The spy to check." } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - } + ] + }, + "type": { + "type": "reference", + "target": 12280, + "typeArguments": [ + { + "type": "reference", + "target": 12137, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } + "type": "reference", + "target": 12138, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12139, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } ], - "typeParams": [] + "name": "SpyLike", + "package": "@probitas-test/probitas" } - } - } - ], - "returnType": { - "repr": "Stub", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } + }, + { + "id": 12142, + "name": "callIndex", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The index of the call to check." + } + ] }, - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "type": { + "type": "intrinsic", + "name": "number" } - ], - "typeName": "Stub" + }, + { + "id": 12143, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected arguments." + } + ] + }, + "type": { + "type": "reference", + "target": 12140, + "name": "ExpectedArgs", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12140, + "name": "ExpectedArgs", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" - }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + { + "id": 12144, + "name": "assertSpyCallArgs", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that an spy is called with a specific range of args as expected.\nIf a start and end index is not provided, the expected will be compared against all args.\nIf a start is provided without an end index, the expected will be compared against all args from the start index to the end.\nThe end index is not included in the range of args that are compared." } - } - }, - { - "name": "Return" - } - ] - } - }, - { - "name": "assertSpyCalls", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1174, - "col": 0, - "byteIndex": 33311 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Asserts that a spy is called as much as expected and no more.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { assertSpyCalls, spy } from \"@std/testing/mock\";\n\nconst func = spy();\n\nfunc();\nfunc();\n\nassertSpyCalls(func, 2);\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the spy function." - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the spy function." - }, - { - "kind": "template", - "name": "Return", - "doc": "The return type of the spy function." - }, - { - "kind": "param", - "name": "spy", - "doc": "The spy to check" - }, - { - "kind": "param", - "name": "expectedCalls", - "doc": "The number of the expected calls." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "spy", - "optional": false, - "tsType": { - "repr": "SpyLike", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, + "kind": "code", + "text": "```ts\nimport { assertSpyCallArgs, spy } from \"@std/testing/mock\";\n\nconst func = spy((...args) => {});\n\nfunc(0, 1, 2, 3, 4, 5);\n\nassertSpyCallArgs(func, 0, 3, [3, 4, 5]);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "kind": "text", + "text": "The actual arguments." } - ], - "typeName": "SpyLike" + ] } - } - }, - { - "kind": "identifier", - "name": "expectedCalls", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" + ] }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "typeParameters": [ + { + "id": 12145, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the spy function." + } + ] } - } - }, - { - "name": "Return" - } - ] - } - }, - { - "name": "ExpectedSpyCall", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1195, - "col": 0, - "byteIndex": 33842 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Call information recorded by a spy." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "args", - "jsDoc": { - "doc": "Arguments passed to a function when called." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1204, - "col": 2, - "byteIndex": 34113 }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [ - { - "repr": "", - "kind": "rest", - "rest": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - } - }, - { - "repr": "", - "kind": "rest", - "rest": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + { + "id": 12146, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the spy function." } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } - ] - }, - "typeParams": [] - }, - { - "name": "self", - "jsDoc": { - "doc": "The instance that a method was called on." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1206, - "col": 2, - "byteIndex": 34198 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" } }, - "typeParams": [] - }, - { - "name": "returned", - "jsDoc": { - "doc": "The value that was returned by a function.\nIf you expect a promise to reject, expect error instead." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1211, - "col": 2, - "byteIndex": 34335 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" + { + "id": 12147, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the spy function." + } + ] } }, - "typeParams": [] - }, - { - "name": "error", - "jsDoc": { - "doc": "The expected thrown error." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1213, - "col": 2, - "byteIndex": 34392 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "Class", - "jsDoc": { - "doc": "The class for the error that was thrown by a function." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1216, - "col": 4, - "byteIndex": 34512 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" - } - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - } - ], - "typeParams": [] - } - }, - "typeParams": [] - }, + { + "id": 12148, + "name": "ExpectedArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ { - "name": "msgIncludes", - "jsDoc": { - "doc": "Part of the message for the error that was thrown by a function." - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1218, - "col": 4, - "byteIndex": 34631 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": "The expected type of the arguments for the spy to be called." } - ], - "callSignatures": [], - "indexSignatures": [] + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "parameters": [ + { + "id": 12149, + "name": "spy", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The spy to check." + } + ] + }, + "type": { + "type": "reference", + "target": 12280, + "typeArguments": [ + { + "type": "reference", + "target": 12145, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12146, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12147, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "SpyLike", + "package": "@probitas-test/probitas" } }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + { + "id": 12150, + "name": "callIndex", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The index of the call to check." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - } - }, - { - "name": "Return", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "assertSpyCall", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1259, - "col": 0, - "byteIndex": 35656 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Asserts that a spy is called as expected.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { assertSpyCall, spy } from \"@std/testing/mock\";\n\nconst func = spy((a: number, b: number) => a + b);\n\nfunc(3, 4);\nfunc(5, 6);\n\n// asserts each call made to the spy function.\nassertSpyCall(func, 0, { args: [3, 4], returned: 7 });\nassertSpyCall(func, 1, { args: [5, 6], returned: 11 });\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the spy function." - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the spy function." - }, - { - "kind": "template", - "name": "Return", - "doc": "The return type of the spy function." - }, - { - "kind": "param", - "name": "spy", - "doc": "The spy to check" - }, - { - "kind": "param", - "name": "callIndex", - "doc": "The index of the call to check" - }, - { - "kind": "param", - "name": "expected", - "doc": "The expected spy call." + }, + { + "id": 12151, + "name": "argsStart", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The start index of the arguments to check. If not specified, it checks the arguments from the beignning." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 12152, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected arguments." + } + ] + }, + "type": { + "type": "reference", + "target": 12148, + "name": "ExpectedArgs", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12148, + "name": "ExpectedArgs", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "spy", - "optional": false, - "tsType": { - "repr": "SpyLike", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, + }, + { + "id": 12153, + "name": "assertSpyCallArgs", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that an spy is called with a specific range of args as expected.\nIf a start and end index is not provided, the expected will be compared against all args.\nIf a start is provided without an end index, the expected will be compared against all args from the start index to the end.\nThe end index is not included in the range of args that are compared." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, + "kind": "code", + "text": "```ts\nimport { assertSpyCallArgs, spy } from \"@std/testing/mock\";\n\nconst func = spy((...args) => {});\n\nfunc(0, 1, 2, 3, 4, 5);\n\nassertSpyCallArgs(func, 0, 3, 4, [3]);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "kind": "text", + "text": "The actual arguments" } - ], - "typeName": "SpyLike" + ] } - } + ] }, - { - "kind": "identifier", - "name": "callIndex", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "typeParameters": [ + { + "id": 12154, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the spy function." + } + ] + } + }, + { + "id": 12155, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the spy function." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 12156, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the spy function." + } + ] + } + }, + { + "id": 12157, + "name": "ExpectedArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected type of the arguments for the spy to be called." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } } - }, - { - "kind": "identifier", - "name": "expected", - "optional": true, - "tsType": { - "repr": "ExpectedSpyCall", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "parameters": [ + { + "id": 12158, + "name": "spy", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } + "kind": "text", + "text": "The spy to check" + } + ] + }, + "type": { + "type": "reference", + "target": 12280, + "typeArguments": [ + { + "type": "reference", + "target": 12154, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } + "type": "reference", + "target": 12155, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "type": "reference", + "target": 12156, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } ], - "typeName": "ExpectedSpyCall" + "name": "SpyLike", + "package": "@probitas-test/probitas" } - } - } - ], - "returnType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" - }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + }, + { + "id": 12159, + "name": "callIndex", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The index of the call to check" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - } - }, - { - "name": "Return" + }, + { + "id": 12160, + "name": "argsStart", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The start index of the arguments to check. If not specified, it checks the arguments from the beignning." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 12161, + "name": "argsEnd", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The end index of the arguments to check. If not specified, it checks the arguments until the end." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 12162, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected arguments." + } + ] + }, + "type": { + "type": "reference", + "target": 12157, + "name": "ExpectedArgs", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12157, + "name": "ExpectedArgs", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - ] - } + } + ] }, { + "id": 12117, "name": "assertSpyCallAsync", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1358, - "col": 0, - "byteIndex": 38384 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Asserts that an async spy is called as expected.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { assertSpyCallAsync, spy } from \"@std/testing/mock\";\n\nconst func = spy((a: number, b: number) => new Promise((resolve) => {\n setTimeout(() => resolve(a + b), 100)\n}));\n\nawait func(3, 4);\nawait func(5, 6);\n\n// asserts each call made to the spy function.\nawait assertSpyCallAsync(func, 0, { args: [3, 4], returned: 7 });\nawait assertSpyCallAsync(func, 1, { args: [5, 6], returned: 11 });\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the spy function." - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the spy function." - }, - { - "kind": "template", - "name": "Return", - "doc": "The return type of the spy function." - }, - { - "kind": "param", - "name": "spy", - "doc": "The spy to check" - }, - { - "kind": "param", - "name": "callIndex", - "doc": "The index of the call to check" + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12118, + "name": "assertSpyCallAsync", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that an async spy is called as expected." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { assertSpyCallAsync, spy } from \"@std/testing/mock\";\n\nconst func = spy((a: number, b: number) => new Promise((resolve) => {\n setTimeout(() => resolve(a + b), 100)\n}));\n\nawait func(3, 4);\nawait func(5, 6);\n\n// asserts each call made to the spy function.\nawait assertSpyCallAsync(func, 0, { args: [3, 4], returned: 7 });\nawait assertSpyCallAsync(func, 1, { args: [5, 6], returned: 11 });\n```" + } + ] + } + ] }, - { - "kind": "param", - "name": "expected", - "doc": "The expected spy call." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "spy", - "optional": false, - "tsType": { - "repr": "SpyLike", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } + "typeParameters": [ + { + "id": 12119, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the spy function." + } + ] + } + }, + { + "id": 12120, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the spy function." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 12121, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the spy function." + } + ] + } + } + ], + "parameters": [ + { + "id": 12122, + "name": "spy", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The spy to check" + } + ] + }, + "type": { + "type": "reference", + "target": 12280, + "typeArguments": [ + { + "type": "reference", + "target": 12119, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } + "type": "reference", + "target": 12120, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - } - ], - "typeName": "Promise" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12121, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" } ], - "typeName": "SpyLike" + "name": "SpyLike", + "package": "@probitas-test/probitas" } - } - }, - { - "kind": "identifier", - "name": "callIndex", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": true, - "tsType": { - "repr": "ExpectedSpyCall", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + }, + { + "id": 12123, + "name": "callIndex", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } + "kind": "text", + "text": "The index of the call to check" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 12124, + "name": "expected", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The expected spy call." + } + ] + }, + "type": { + "type": "reference", + "target": 12305, + "typeArguments": [ + { + "type": "reference", + "target": 12119, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } + "type": "reference", + "target": 12120, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "repr": "", - "kind": "union", - "union": [ + "type": "union", + "types": [ { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - } - ], - "typeName": "Promise" - } + "type": "reference", + "target": 12121, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12121, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" } ] } ], - "typeName": "ExpectedSpyCall" + "name": "ExpectedSpyCall", + "package": "@probitas-test/probitas" } } - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "type": "intrinsic", + "name": "void" } ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" - }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - }, - { - "name": "Return" + "name": "Promise", + "package": "typescript" } - ] - } + } + ] }, { - "name": "assertSpyCallArg", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1459, - "col": 0, - "byteIndex": 41165 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Asserts that a spy is called with a specific arg as expected.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { assertSpyCallArg, spy } from \"@std/testing/mock\";\n\nconst func = spy((a: number, b: number) => a + b);\n\nfunc(3, 4);\nfunc(5, 6);\n\n// asserts each call made to the spy function.\nassertSpyCallArg(func, 0, 0, 3);\nassertSpyCallArg(func, 0, 1, 4);\nassertSpyCallArg(func, 1, 0, 5);\nassertSpyCallArg(func, 1, 1, 6);\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the spy function." - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the spy function." - }, - { - "kind": "template", - "name": "Return", - "doc": "The return type of the spy function." - }, - { - "kind": "template", - "name": "ExpectedArg", - "doc": "The expected type of the argument for the spy to be called." - }, - { - "kind": "param", - "name": "spy", - "doc": "The spy to check." - }, - { - "kind": "param", - "name": "callIndex", - "doc": "The index of the call to check." - }, - { - "kind": "param", - "name": "argIndex", - "doc": "The index of the arguments to check." - }, - { - "kind": "param", - "name": "expected", - "doc": "The expected argument." + "id": 12102, + "name": "assertSpyCalls", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12103, + "name": "assertSpyCalls", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Asserts that a spy is called as much as expected and no more." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { assertSpyCalls, spy } from \"@std/testing/mock\";\n\nconst func = spy();\n\nfunc();\nfunc();\n\nassertSpyCalls(func, 2);\n```" + } + ] + } + ] }, - { - "kind": "return", - "doc": "The actual argument." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "spy", - "optional": false, - "tsType": { - "repr": "SpyLike", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } + "typeParameters": [ + { + "id": 12104, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the spy function." + } + ] + } + }, + { + "id": 12105, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the spy function." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 12106, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the spy function." + } + ] + } + } + ], + "parameters": [ + { + "id": 12107, + "name": "spy", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The spy to check" + } + ] + }, + "type": { + "type": "reference", + "target": 12280, + "typeArguments": [ + { + "type": "reference", + "target": 12104, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } + "type": "reference", + "target": 12105, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "type": "reference", + "target": 12106, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } ], - "typeName": "SpyLike" + "name": "SpyLike", + "package": "@probitas-test/probitas" } - } - }, - { - "kind": "identifier", - "name": "callIndex", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "argIndex", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "ExpectedArg", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArg" + }, + { + "id": 12108, + "name": "expectedCalls", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of the expected calls." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "void" } - ], - "returnType": { - "repr": "ExpectedArg", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArg" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" + } + ] + }, + { + "id": 12338, + "name": "attempt", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12339, + "name": "attempt", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Attempt to execute a function and return a Result." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A Result where T is the return type of the function and E is the error type." + } + ] + }, + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { attempt } from \"@core/errorutil/attempt\";\n\nconsole.log(attempt(() => 1)); // [undefined, 1]\nconsole.log(attempt(() => { throw \"err\" })); // [\"err\", undefined]\n```" + } + ] + } + ] }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "typeParameters": [ + { + "id": 12340, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 12341, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 12342, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function to execute." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12343, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12344, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": 12340, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ] + } } } - }, - { - "name": "Return" - }, - { - "name": "ExpectedArg" + ], + "type": { + "type": "reference", + "target": 12349, + "typeArguments": [ + { + "type": "reference", + "target": 12340, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12341, + "name": "E", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "Result", + "package": "@probitas-test/probitas" } - ] - } + } + ] }, { - "name": "assertSpyCallArgs", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1505, - "col": 0, - "byteIndex": 42644 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Asserts that an spy is called with a specific range of args as expected.\nIf a start and end index is not provided, the expected will be compared against all args.\nIf a start is provided without an end index, the expected will be compared against all args from the start index to the end.\nThe end index is not included in the range of args that are compared.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { assertSpyCallArgs, spy } from \"@std/testing/mock\";\n\nconst func = spy((a: number, b: number) => a + b);\n\nfunc(3, 4);\nfunc(5, 6);\n\n// asserts each call made to the spy function.\nassertSpyCallArgs(func, 0, [3, 4]);\nassertSpyCallArgs(func, 1, [5, 6]);\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the spy function." - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the spy function." - }, - { - "kind": "template", - "name": "Return", - "doc": "The return type of the spy function." - }, - { - "kind": "template", - "name": "ExpectedArgs", - "doc": "The expected type of the arguments for the spy to be called." - }, - { - "kind": "param", - "name": "spy", - "doc": "The spy to check." - }, - { - "kind": "param", - "name": "callIndex", - "doc": "The index of the call to check." - }, - { - "kind": "param", - "name": "expected", - "doc": "The expected arguments." - }, - { - "kind": "return", - "doc": "The actual arguments." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "spy", - "optional": false, - "tsType": { - "repr": "SpyLike", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, - { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, + "id": 12422, + "name": "expect", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12423, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" } - ], - "typeName": "SpyLike" + ] } - } - }, - { - "kind": "identifier", - "name": "callIndex", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + ] }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "ExpectedArgs", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArgs" + "typeParameters": [ + { + "id": 12424, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 12453, + "name": "HttpResponse", + "package": "@probitas-test/client-http" + } + } + ], + "parameters": [ + { + "id": 12425, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/expect.d.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12424, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "NotAny", + "package": "@probitas-test/expect" } } - } - ], - "returnType": { - "repr": "ExpectedArgs", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArgs" + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/http.d.ts", + "qualifiedName": "HttpResponseExpectation" + }, + "name": "HttpResponseExpectation", + "package": "@probitas-test/expect" } }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" - }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + { + "id": 12426, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." } - } - }, - { - "name": "Return" + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] + } + ] }, - { - "name": "ExpectedArgs", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "typeParameters": [ + { + "id": 12427, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 12449, + "name": "ConnectRpcResponse", + "package": "@probitas-test/client-connectrpc" + } + } + ], + "parameters": [ + { + "id": 12428, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/expect.d.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12427, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "NotAny", + "package": "@probitas-test/expect" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/connectrpc.d.ts", + "qualifiedName": "ConnectRpcResponseExpectation" + }, + "name": "ConnectRpcResponseExpectation", + "package": "@probitas-test/expect" } - ] - } - }, - { - "name": "assertSpyCallArgs", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1542, - "col": 0, - "byteIndex": 44005 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Asserts that an spy is called with a specific range of args as expected.\nIf a start and end index is not provided, the expected will be compared against all args.\nIf a start is provided without an end index, the expected will be compared against all args from the start index to the end.\nThe end index is not included in the range of args that are compared.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { assertSpyCallArgs, spy } from \"@std/testing/mock\";\n\nconst func = spy((...args) => {});\n\nfunc(0, 1, 2, 3, 4, 5);\n\nassertSpyCallArgs(func, 0, 3, [3, 4, 5]);\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the spy function." - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the spy function." - }, - { - "kind": "template", - "name": "Return", - "doc": "The return type of the spy function." - }, - { - "kind": "template", - "name": "ExpectedArgs", - "doc": "The expected type of the arguments for the spy to be called." - }, - { - "kind": "param", - "name": "spy", - "doc": "The spy to check." - }, - { - "kind": "param", - "name": "callIndex", - "doc": "The index of the call to check." - }, - { - "kind": "param", - "name": "argsStart", - "doc": "The start index of the arguments to check. If not specified, it checks the arguments from the beignning." - }, - { - "kind": "param", - "name": "expected", - "doc": "The expected arguments." - }, - { - "kind": "return", - "doc": "The actual arguments." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "spy", - "optional": false, - "tsType": { - "repr": "SpyLike", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, + }, + { + "id": 12429, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] + } + ] + }, + "typeParameters": [ + { + "id": 12430, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 12451, + "name": "GraphqlResponse", + "package": "@probitas-test/client-graphql" + } + } + ], + "parameters": [ + { + "id": 12431, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/expect.d.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "type": "reference", + "target": 12430, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true } ], - "typeName": "SpyLike" + "name": "NotAny", + "package": "@probitas-test/expect" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/graphql.d.ts", + "qualifiedName": "GraphqlResponseExpectation" + }, + "name": "GraphqlResponseExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 12432, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] + } + ] }, - { - "kind": "identifier", - "name": "callIndex", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "argsStart", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "ExpectedArgs", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArgs" + "typeParameters": [ + { + "id": 12433, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 12460, + "name": "SqlQueryResult", + "package": "@probitas-test/client-sql" + } + } + ], + "parameters": [ + { + "id": 12434, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/expect.d.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12433, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "NotAny", + "package": "@probitas-test/expect" } } - } - ], - "returnType": { - "repr": "ExpectedArgs", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArgs" + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/sql.d.ts", + "qualifiedName": "SqlQueryResultExpectation" + }, + "name": "SqlQueryResultExpectation", + "package": "@probitas-test/expect" } }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" + { + "id": 12435, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] + } + ] }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "typeParameters": [ + { + "id": 12436, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 12458, + "name": "RedisResult", + "package": "@probitas-test/client-redis" + } + } + ], + "parameters": [ + { + "id": 12437, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/expect.d.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12436, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "NotAny", + "package": "@probitas-test/expect" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/redis.d.ts", + "qualifiedName": "RedisExpectation" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12436, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "RedisExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 12438, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] + } + ] }, - { - "name": "Return" - }, - { - "name": "ExpectedArgs", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "typeParameters": [ + { + "id": 12439, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 12455, + "name": "MongoResult", + "package": "@probitas-test/client-mongodb" + } + } + ], + "parameters": [ + { + "id": 12440, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/expect.d.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12439, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "NotAny", + "package": "@probitas-test/expect" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/mongodb.d.ts", + "qualifiedName": "MongoExpectation" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12439, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "MongoExpectation", + "package": "@probitas-test/expect" } - ] - } - }, - { - "name": "assertSpyCallArgs", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1581, - "col": 0, - "byteIndex": 45497 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Asserts that an spy is called with a specific range of args as expected.\nIf a start and end index is not provided, the expected will be compared against all args.\nIf a start is provided without an end index, the expected will be compared against all args from the start index to the end.\nThe end index is not included in the range of args that are compared.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { assertSpyCallArgs, spy } from \"@std/testing/mock\";\n\nconst func = spy((...args) => {});\n\nfunc(0, 1, 2, 3, 4, 5);\n\nassertSpyCallArgs(func, 0, 3, 4, [3]);\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the spy function." - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the spy function." - }, - { - "kind": "template", - "name": "Return", - "doc": "The return type of the spy function." - }, - { - "kind": "template", - "name": "ExpectedArgs", - "doc": "The expected type of the arguments for the spy to be called." - }, - { - "kind": "param", - "name": "spy", - "doc": "The spy to check" + }, + { + "id": 12441, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] + } + ] }, - { - "kind": "param", - "name": "callIndex", - "doc": "The index of the call to check" + "typeParameters": [ + { + "id": 12442, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 12457, + "name": "RabbitMqResult", + "package": "@probitas-test/client-rabbitmq" + } + } + ], + "parameters": [ + { + "id": 12443, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/expect.d.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12442, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "NotAny", + "package": "@probitas-test/expect" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/rabbitmq.d.ts", + "qualifiedName": "RabbitMqExpectation" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12442, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "RabbitMqExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 12444, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] + } + ] }, - { - "kind": "param", - "name": "argsStart", - "doc": "The start index of the arguments to check. If not specified, it checks the arguments from the beignning." + "typeParameters": [ + { + "id": 12445, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": 12462, + "name": "SqsResult", + "package": "@probitas-test/client-sqs" + } + } + ], + "parameters": [ + { + "id": 12446, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/expect.d.ts", + "qualifiedName": "NotAny" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12445, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "NotAny", + "package": "@probitas-test/expect" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/sqs.d.ts", + "qualifiedName": "SqsExpectation" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12445, + "name": "T", + "package": "@probitas-test/expect", + "refersToTypeParameter": true + } + ], + "name": "SqsExpectation", + "package": "@probitas-test/expect" + } + }, + { + "id": 12447, + "name": "expect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Unified expect function that dispatches to the appropriate expectation function\nbased on the type of the input object." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { expect } from \"./expect.ts\";\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\nexpect(\"hello world\").toContain(\"world\");\nexpect({ a: 1, b: 2 }).toMatchObject({ a: 1 });\n```" + } + ] + } + ] }, - { - "kind": "param", - "name": "argsEnd", - "doc": "The end index of the arguments to check. If not specified, it checks the arguments until the end." + "parameters": [ + { + "id": 12448, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/expect", + "packagePath": "dist/anything.d.ts", + "qualifiedName": "AnythingExpectation" + }, + "name": "AnythingExpectation", + "package": "@probitas-test/expect" + } + } + ] + }, + { + "id": 12355, + "name": "fromErrorObject", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12356, + "name": "fromErrorObject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert an error object to an error" + } + ] }, - { - "kind": "param", - "name": "expected", - "doc": "The expected arguments." + "parameters": [ + { + "id": 12357, + "name": "obj", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12358, + "name": "ErrorObject", + "package": "@probitas-test/probitas" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ] + }, + { + "id": 12028, + "name": "mockSession", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12029, + "name": "mockSession", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates a session that tracks all mocks created before it's restored.\nIf a callback is provided, it restores all mocks created within it." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { mockSession, restore, stub } from \"@std/testing/mock\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\nconst id = mockSession();\n\nstub(globalThis, \"setTimeout\");\n\nassertNotEquals(globalThis.setTimeout, setTimeout);\n\nrestore(id);\n\nassertEquals(globalThis.setTimeout, setTimeout);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The id of the created session." + } + ] + } + ] }, - { - "kind": "return", - "doc": "The actual arguments" + "type": { + "type": "intrinsic", + "name": "number" } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "spy", - "optional": false, - "tsType": { - "repr": "SpyLike", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, + }, + { + "id": 12030, + "name": "mockSession", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates a session that tracks all mocks created before it's restored.\nIf a callback is provided, it restores all mocks created within it." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, + "kind": "code", + "text": "```ts\nimport { mockSession, restore, stub } from \"@std/testing/mock\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\nconst session = mockSession(() => {\n stub(globalThis, \"setTimeout\");\n assertNotEquals(globalThis.setTimeout, setTimeout);\n});\n\nsession();\n\nassertEquals(globalThis.setTimeout, setTimeout); // stub is restored\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "kind": "text", + "text": "The function to execute the session." } - ], - "typeName": "SpyLike" + ] } - } + ] }, - { - "kind": "identifier", - "name": "callIndex", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "typeParameters": [ + { + "id": 12031, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the function." + } + ] + } + }, + { + "id": 12032, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the function." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 12033, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the function." + } + ] + } } - }, - { - "kind": "identifier", - "name": "argsStart", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "parameters": [ + { + "id": 12034, + "name": "func", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function to be used for the created session." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12035, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12036, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12037, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12031, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12038, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12032, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12033, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ] + } + } } - }, - { - "kind": "identifier", - "name": "argsEnd", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "type": { + "type": "reflection", + "declaration": { + "id": 12039, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12040, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12041, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12031, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12042, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12032, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12033, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ] } + } + } + ] + }, + { + "id": 12043, + "name": "mockSessionAsync", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12044, + "name": "mockSessionAsync", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates an async session that tracks all mocks created before the promise resolves." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { mockSessionAsync, restore, stub } from \"@std/testing/mock\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\nconst session = mockSessionAsync(async () => {\n stub(globalThis, \"setTimeout\");\n assertNotEquals(globalThis.setTimeout, setTimeout);\n});\n\nawait session();\n\nassertEquals(globalThis.setTimeout, setTimeout); // stub is restored\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The return value of the function." + } + ] + } + ] }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "ExpectedArgs", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArgs" + "typeParameters": [ + { + "id": 12045, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the function." + } + ] + } + }, + { + "id": 12046, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the function." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 12047, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the function." + } + ] } } + ], + "parameters": [ + { + "id": 12048, + "name": "func", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12049, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12050, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12051, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12045, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12052, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12046, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12047, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 12053, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12054, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12055, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12045, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12056, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12046, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12047, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } } - ], - "returnType": { - "repr": "ExpectedArgs", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArgs" + } + ] + }, + { + "id": 12369, + "name": "raise", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12370, + "name": "raise", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Throw an error.\n\nThis is function thus can be used as an expression.\n\n" + }, + { + "kind": "code", + "text": "```typescript\nimport { raise } from \"@core/errorutil/raise\";\n\nconst fn = () => raise(new Error(\"fail\"));\n```" + } + ] + }, + "parameters": [ + { + "id": 12371, + "name": "err", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "intrinsic", + "name": "never" + } + } + ] + }, + { + "id": 12200, + "name": "resolvesNext", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12201, + "name": "resolvesNext", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates a function that resolves the awaited iterable values. Any awaited iterable values that are errors will be thrown." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { resolvesNext } from \"@std/testing/mock\";\nimport { assertEquals, assertRejects } from \"@std/assert\";\n\nconst func = resolvesNext([1, 2, new Error(\"foo\"), 3]);\nassertEquals(await func(), 1);\nassertEquals(await func(), 2);\nassertRejects(() => func(), Error, \"foo\");\nassertEquals(await func(), 3);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A function that resolves the awaited iterable values" + } + ] + } + ] + }, + "typeParameters": [ + { + "id": 12202, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The type of each item of the iterable" + } + ] + } + }, + { + "id": 12203, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the returned function" + } + ] + }, + "default": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 12204, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The type of arguments of the returned function" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 12205, + "name": "iterable", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The iterable to use" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + }, + { + "type": "reference", + "target": 12202, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + }, + { + "type": "reference", + "target": 12202, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + ] + }, + { + "type": "intrinsic", + "name": "any" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Iterable", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2018.asynciterable.d.ts", + "qualifiedName": "AsyncIterable" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + }, + { + "type": "reference", + "target": 12202, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + }, + { + "type": "reference", + "target": 12202, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + ] + }, + { + "type": "intrinsic", + "name": "any" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "AsyncIterable", + "package": "typescript" + } + ] + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 12206, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12207, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12208, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12203, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12209, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12204, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 12202, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self" + } + ] + }, + { + "id": 12057, + "name": "restore", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12058, + "name": "restore", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Restores all mocks registered in the current session that have not already been restored.\nIf an id is provided, it will restore all mocks registered in the session associed with that id that have not already been restored." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { mockSession, restore, stub } from \"@std/testing/mock\";\nimport { assertEquals, assertNotEquals } from \"@std/assert\";\n\nconst setTimeout = globalThis.setTimeout;\n\nstub(globalThis, \"setTimeout\");\n\nassertNotEquals(globalThis.setTimeout, setTimeout);\n\nrestore();\n\nassertEquals(globalThis.setTimeout, setTimeout);\n```" + } + ] + } + ] }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "parameters": [ + { + "id": 12059, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The id of the session to restore. If not provided, all mocks registered in the current session are restored." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 12171, + "name": "returnsArg", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12172, + "name": "returnsArg", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates a function that returns one of its arguments." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { returnsArg } from \"@std/testing/mock\";\nimport { assertEquals } from \"@std/assert\";\n\nconst func = returnsArg(1);\nassertEquals(func(1, 2, 3), 2);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A function that returns one of its arguments." + } + ] + } + ] }, - { - "name": "Return" + "typeParameters": [ + { + "id": 12173, + "name": "Arg", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The type of returned argument." + } + ] + } + }, + { + "id": 12174, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the returned function." + } + ] + }, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 12175, + "name": "idx", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The index of the arguments to use." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 12176, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12177, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12178, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12174, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12179, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 12173, + "name": "Arg", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 12173, + "name": "Arg", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + } + } + } + ] + }, + { + "id": 12180, + "name": "returnsArgs", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12181, + "name": "returnsArgs", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates a function that returns its arguments or a subset of them. If end is specified, it will return arguments up to but not including the end." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { returnsArgs } from \"@std/testing/mock\";\nimport { assertEquals } from \"@std/assert\";\n\nconst func = returnsArgs();\nassertEquals(func(1, 2, 3), [1, 2, 3]);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A function that returns its arguments or a subset of them." + } + ] + } + ] }, - { - "name": "ExpectedArgs", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "typeParameters": [ + { + "id": 12182, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the returned function" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 12183, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the returned function" + } + ] + }, + "default": { + "type": "intrinsic", + "name": "any" } } + ], + "parameters": [ + { + "id": 12184, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The start index of the arguments to return. Default is 0." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + }, + { + "id": 12185, + "name": "end", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The end index of the arguments to return." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 12186, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12187, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12188, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12183, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12189, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12182, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12182, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ] + } } - ] - } + } + ] }, { - "name": "assertSpyCallArgs", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1593, - "col": 0, - "byteIndex": 45753 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "spy", - "optional": false, - "tsType": { - "repr": "SpyLike", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" - } - }, + "id": 12190, + "name": "returnsNext", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12191, + "name": "returnsNext", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates a function that returns the iterable values. Any iterable values that are errors will be thrown." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } - }, + "kind": "code", + "text": "```ts\nimport { returnsNext } from \"@std/testing/mock\";\nimport { assertEquals, assertThrows } from \"@std/assert\";\n\nconst func = returnsNext([1, 2, new Error(\"foo\"), 3]);\nassertEquals(func(), 1);\nassertEquals(func(), 2);\nassertThrows(() => func(), Error, \"foo\");\nassertEquals(func(), 3);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + "kind": "text", + "text": "A function that returns the iterable values" } - ], - "typeName": "SpyLike" + ] } - } - }, - { - "kind": "identifier", - "name": "callIndex", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + ] }, - { - "kind": "identifier", - "name": "argsStart", - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - { - "repr": "ExpectedArgs", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArgs" + "typeParameters": [ + { + "id": 12192, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The type of each item of the iterable" + } + ] + } + }, + { + "id": 12193, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the returned function" + } + ] + }, + "default": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 12194, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the returned function" } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } - ] + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } } - }, - { - "kind": "identifier", - "name": "argsEnd", - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "number", - "kind": "keyword", - "keyword": "number" + ], + "parameters": [ + { + "id": 12195, + "name": "values", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The iterable values" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + }, + { + "type": "reference", + "target": 12192, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ] + } + ], + "name": "Iterable", + "package": "typescript" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 12196, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ { - "repr": "ExpectedArgs", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArgs" + "id": 12197, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12198, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12193, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12199, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12194, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12192, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } } ] } - }, - { - "kind": "identifier", - "name": "expected", - "optional": true, - "tsType": { - "repr": "ExpectedArgs", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArgs" - } - } - } - ], - "returnType": { - "repr": "ExpectedArgs", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ExpectedArgs" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "ExpectedArgs", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - }, - { - "name": "Return" - }, - { - "name": "Self" } - ] - } + } + ] }, { + "id": 12163, "name": "returnsThis", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1640, - "col": 0, - "byteIndex": 47025 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Creates a function that returns the instance the method was called on.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { returnsThis } from \"@std/testing/mock\";\nimport { assertEquals } from \"@std/assert\";\n\nconst func = returnsThis();\nconst obj = { func };\nassertEquals(obj.func(), obj);\n```\n" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the returned function." - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the returned function." + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12164, + "name": "returnsThis", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates a function that returns the instance the method was called on." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { returnsThis } from \"@std/testing/mock\";\nimport { assertEquals } from \"@std/assert\";\n\nconst func = returnsThis();\nconst obj = { func };\nassertEquals(obj.func(), obj);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A function that returns the instance the method was called on." + } + ] + } + ] }, - { - "kind": "return", - "doc": "A function that returns the instance the method was called on." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [], - "returnType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + "typeParameters": [ + { + "id": 12165, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the returned function." + } + ] + }, + "default": { + "type": "intrinsic", + "name": "any" } }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + { + "id": 12166, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the returned function." } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 12167, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12168, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12169, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12165, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12170, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12166, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12165, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } } + ] + } + } + } + ] + }, + { + "id": 12404, + "name": "scenario", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12405, + "name": "scenario", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new scenario builder with a fluent API.\n\nThis is the primary entry point for defining scenarios. It returns a builder\nthat provides a type-safe, chainable API for constructing test scenarios." } ], - "typeParams": [] - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "New " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioBuilderInit", + "target": { + "packageName": "@probitas-test/builder", + "packagePath": "dist/scenario_builder.d.ts", + "qualifiedName": "ScenarioBuilderInit" + } + }, + { + "kind": "text", + "text": " instance ready for chaining" + } + ] + }, + { + "tag": "@remarks", + "content": [ + { + "kind": "text", + "text": "The builder pattern enables:\n- **Type-safe chaining**: Return values flow through steps with full type inference\n- **Resource management**: Automatic lifecycle handling with Disposable support\n- **Flexible configuration**: Override defaults at scenario or step level" + } + ] + }, + { + "tag": "@example", + "name": "Basic scenario with type-safe step chaining", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock user service for example\nconst createUser = (_data: { email: string }) =>\n Promise.resolve({ id: \"user-123\" });\nconst verifyEmail = (_userId: string) => Promise.resolve();\n\nexport default scenario(\"User Registration\")\n .step(\"Create user\", async () => {\n const user = await createUser({ email: \"test@example.com\" });\n return { userId: user.id };\n })\n .step(\"Verify email\", async (ctx) => {\n // ctx.previous is typed as { userId: string }\n await verifyEmail(ctx.previous.userId);\n })\n .build();\n```" + } + ] + }, + { + "tag": "@example", + "name": "Scenario with tags for filtering", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\nscenario(\"Payment Integration\", {\n tags: [\"integration\", \"payment\", \"slow\"],\n stepOptions: { timeout: 60000 } // 1 minute timeout for all steps\n})\n .step(\"Process payment\", async () => {\n return { success: true };\n })\n .build();\n\n// Run with: probitas run -s \"tag:payment\"\n```" + } + ] + }, + { + "tag": "@example", + "name": "Scenario with resources and setup", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\n\n// Mock Database for example\nconst Database = {\n connect: () =>\n Promise.resolve({\n rollback: () => {},\n insert: (_data: { id: number }) => {},\n query: (_sql: string) => [{ id: 1 }],\n }),\n};\n\nscenario(\"Database Test\")\n .resource(\"db\", async () => await Database.connect())\n .setup((ctx) => {\n // Run migrations\n return () => ctx.resources.db.rollback();\n })\n .step(\"Insert data\", (ctx) => ctx.resources.db.insert({ id: 1 }))\n .step(\"Query data\", (ctx) => ctx.resources.db.query(\"SELECT * FROM users\"))\n .build();\n```" + } + ] + }, + { + "tag": "@see", + "content": [ + { + "kind": "text", + "text": " - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioBuilderInit", + "target": { + "packageName": "@probitas-test/builder", + "packagePath": "dist/scenario_builder.d.ts", + "qualifiedName": "ScenarioBuilderInit" + } + }, + { + "kind": "text", + "text": " for available builder methods" + }, + { + "kind": "text", + "text": "\n" + }, + { + "kind": "text", + "text": " - " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "BuilderScenarioOptions" + }, + { + "kind": "text", + "text": " for configuration options" + }, + { + "kind": "text", + "text": "\n" + } + ] + } + ] }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "parameters": [ + { + "id": 12406, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Human-readable scenario name (shown in test reports)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + { + "id": 12407, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Optional configuration for tags, timeouts, and retry behavior" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioOptions" + }, + "name": "ScenarioOptions", + "package": "@probitas-test/core" } } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/builder", + "packagePath": "dist/scenario_builder.d.ts", + "qualifiedName": "ScenarioBuilderInit" + }, + "name": "ScenarioBuilderInit", + "package": "@probitas-test/builder" } - ] - } + } + ] }, { - "name": "returnsArg", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1668, - "col": 0, - "byteIndex": 47772 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Creates a function that returns one of its arguments.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { returnsArg } from \"@std/testing/mock\";\nimport { assertEquals } from \"@std/assert\";\n\nconst func = returnsArg(1);\nassertEquals(func(1, 2, 3), 2);\n```\n" - }, - { - "kind": "template", - "name": "Arg", - "doc": "The type of returned argument." - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the returned function." - }, - { - "kind": "param", - "name": "idx", - "doc": "The index of the arguments to use." + "id": 12060, + "name": "spy", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12061, + "name": "spy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates a spy function." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport {\n assertSpyCall,\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\n\nconst func = spy();\n\nfunc();\nfunc(1);\nfunc(2, 3);\n\nassertSpyCalls(func, 3);\n\n// asserts each call made to the spy function.\nassertSpyCall(func, 0, { args: [] });\nassertSpyCall(func, 1, { args: [1] });\nassertSpyCall(func, 2, { args: [2, 3] });\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The spy function." + } + ] + } + ] }, - { - "kind": "return", - "doc": "A function that returns one of its arguments." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "idx", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "returnType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Arg", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Arg" + "typeParameters": [ + { + "id": 12062, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the function." + } + ] + }, + "default": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 12063, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the function." } - }, - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } - ] + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + { + "id": 12064, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the function." } - } + ] + }, + "default": { + "type": "intrinsic", + "name": "undefined" + } + } + ], + "type": { + "type": "reference", + "target": 12222, + "typeArguments": [ + { + "type": "reference", + "target": 12062, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "Arg", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Arg" - } - } - } + "type": "reference", + "target": 12063, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12064, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } ], - "typeParams": [] + "name": "Spy", + "package": "@probitas-test/probitas" } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Arg" - }, - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "returnsArgs", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1698, - "col": 0, - "byteIndex": 48709 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Creates a function that returns its arguments or a subset of them. If end is specified, it will return arguments up to but not including the end.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { returnsArgs } from \"@std/testing/mock\";\nimport { assertEquals } from \"@std/assert\";\n\nconst func = returnsArgs();\nassertEquals(func(1, 2, 3), [1, 2, 3]);\n```\n" - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the returned function" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the returned function" - }, - { - "kind": "param", - "name": "start", - "doc": "The start index of the arguments to return. Default is 0." - }, - { - "kind": "param", - "name": "end", - "doc": "The end index of the arguments to return." - }, - { - "kind": "return", - "doc": "A function that returns its arguments or a subset of them." - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "start", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + { + "id": 12065, + "name": "spy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a spy function with the given implementation." } - }, - "right": "0", - "tsType": null + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport {\n assertSpyCall,\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\n\nconst func = spy((a: number, b: number) => a + b);\n\nfunc(3, 4);\nfunc(5, 6);\n\nassertSpyCalls(func, 2);\n\n// asserts each call made to the spy function.\nassertSpyCall(func, 0, { args: [3, 4], returned: 7 });\nassertSpyCall(func, 1, { args: [5, 6], returned: 11 });\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The wrapped function." + } + ] + } + ] }, - { - "kind": "identifier", - "name": "end", - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "returnType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" + "typeParameters": [ + { + "id": 12066, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the function to wrap" + } + ] } }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + { + "id": 12067, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the function to wrap" } - } + ] }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" - } + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" } } - ], - "typeParams": [] - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + }, + { + "id": 12068, + "name": "Return", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The return type of the function to wrap" + } + ] } } - }, - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - }, - { - "name": "returnsNext", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1732, - "col": 0, - "byteIndex": 49725 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Creates a function that returns the iterable values. Any iterable values that are errors will be thrown.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { returnsNext } from \"@std/testing/mock\";\nimport { assertEquals, assertThrows } from \"@std/assert\";\n\nconst func = returnsNext([1, 2, new Error(\"foo\"), 3]);\nassertEquals(func(), 1);\nassertEquals(func(), 2);\nassertThrows(() => func(), Error, \"foo\");\nassertEquals(func(), 3);\n```\n" - }, - { - "kind": "template", - "name": "Return", - "doc": "The type of each item of the iterable" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the returned function" - }, - { - "kind": "template", - "name": "Args", - "doc": "The arguments type of the returned function" - }, - { - "kind": "param", - "name": "values", - "doc": "The iterable values" - }, - { - "kind": "return", - "doc": "A function that returns the iterable values" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "values", - "optional": false, - "tsType": { - "repr": "Iterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" + ], + "parameters": [ + { + "id": 12069, + "name": "func", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The function to wrap" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12070, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12071, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12072, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12066, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12073, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 12067, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } } + ], + "type": { + "type": "reference", + "target": 12068, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - ] - } - ], - "typeName": "Iterable" + } + ] + } } } + ], + "type": { + "type": "reference", + "target": 12222, + "typeArguments": [ + { + "type": "reference", + "target": 12066, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12067, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12068, + "name": "Return", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "Spy", + "package": "@probitas-test/probitas" } - ], - "returnType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" + }, + { + "id": 12074, + "name": "spy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a spy constructor." } - }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport {\n assertSpyCall,\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\n\nclass Foo {\n constructor(value: string) {}\n};\n\nconst Constructor = spy(Foo);\n\nnew Constructor(\"foo\");\nnew Constructor(\"bar\");\n\nassertSpyCalls(Constructor, 2);\n\n// asserts each call made to the spy function.\nassertSpyCall(Constructor, 0, { args: [\"foo\"] });\nassertSpyCall(Constructor, 1, { args: [\"bar\"] });\n```" } - } + ] }, { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The wrapped constructor." } - } + ] } - ], - "typeParams": [] - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Return" - }, - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + ] }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "typeParameters": [ + { + "id": 12075, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The type of the instance of the class." + } + ] } }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + { + "id": 12076, + "name": "Args", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The arguments type of the constructor" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } } } - } - ] - } - }, - { - "name": "resolvesNext", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/std_testing/mock.ts", - "line": 1780, - "col": 0, - "byteIndex": 51132 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Creates a function that resolves the awaited iterable values. Any awaited iterable values that are errors will be thrown.\n", - "tags": [ - { - "kind": "example", - "doc": "Usage\n```ts\nimport { resolvesNext } from \"@std/testing/mock\";\nimport { assertEquals, assertRejects } from \"@std/assert\";\n\nconst func = resolvesNext([1, 2, new Error(\"foo\"), 3]);\nassertEquals(await func(), 1);\nassertEquals(await func(), 2);\nassertRejects(() => func(), Error, \"foo\");\nassertEquals(await func(), 3);\n```\n" - }, - { - "kind": "template", - "name": "Return", - "doc": "The type of each item of the iterable" - }, - { - "kind": "template", - "name": "Self", - "doc": "The self type of the returned function" - }, - { - "kind": "template", - "name": "Args", - "doc": "The type of arguments of the returned function" - }, - { - "kind": "param", - "name": "iterable", - "doc": "The iterable to use" - }, - { - "kind": "return", - "doc": "A function that resolves the awaited iterable values" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "iterable", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Iterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" - } - }, - { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" - } - } - ] - } - ], - "typeName": "Promise" - } - } - ] - } - ], - "typeName": "Iterable" + ], + "parameters": [ + { + "id": 12077, + "name": "constructor", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The constructor to spy." } - }, - { - "repr": "AsyncIterable", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" - } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 12078, + "name": "__type", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 12079, + "name": "constructor", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 12080, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true }, - { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } - }, - { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" - } - } - ] - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": 12076, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - ] + } + ], + "type": { + "type": "reference", + "target": 12075, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - ], - "typeName": "AsyncIterable" + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": 12254, + "typeArguments": [ + { + "type": "reference", + "target": 12075, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12076, + "name": "Args", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "ConstructorSpy", + "package": "@probitas-test/probitas" + } + }, + { + "id": 12081, + "name": "spy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Wraps a instance method with a Spy." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport {\n assertSpyCall,\n assertSpyCalls,\n spy,\n} from \"@std/testing/mock\";\n\nconst obj = {\n method(a: number, b: number): number {\n return a + b;\n },\n};\n\nconst methodSpy = spy(obj, \"method\");\n\nobj.method(1, 2);\nobj.method(3, 4);\n\nassertSpyCalls(methodSpy, 2);\n\n// asserts each call made to the spy function.\nassertSpyCall(methodSpy, 0, { args: [1, 2], returned: 3 });\nassertSpyCall(methodSpy, 1, { args: [3, 4], returned: 7 });\n```" } - } - ] - } - } - ], - "returnType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Return", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Return" - } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The spy function." } - ], - "typeName": "Promise" + ] + } + ] + }, + "typeParameters": [ + { + "id": 12082, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The type of the instance to spy the method of." + } + ] } }, - "params": [ - { - "kind": "identifier", - "name": "this", - "optional": false, - "tsType": { - "repr": "Self", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Self" + { + "id": 12083, + "name": "Prop", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The property to spy." } - } + ] }, - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "Args", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Args" + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "symbol" } - } + ] } - ], - "typeParams": [] - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "Return" - }, - { - "name": "Self", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } - }, - { - "name": "Args", - "constraint": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ], + "parameters": [ + { + "id": 12084, + "name": "self", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The instance to spy." + } + ] + }, + "type": { + "type": "reference", + "target": 12082, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } }, - "default": { - "repr": "", - "kind": "array", - "array": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + { + "id": 12085, + "name": "property", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The property of the method to spy." + } + ] + }, + "type": { + "type": "reference", + "target": 12083, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12238, + "typeArguments": [ + { + "type": "reference", + "target": 12082, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": -1, + "typeArguments": [ + { + "type": "reference", + "target": 12082, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12083, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "GetParametersFromProp", + "package": "@probitas-test/probitas" + }, + { + "type": "reference", + "target": -1, + "typeArguments": [ + { + "type": "reference", + "target": 12082, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12083, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "GetReturnFromProp", + "package": "@probitas-test/probitas" } - } + ], + "name": "MethodSpy", + "package": "@probitas-test/probitas" } - ] - } + } + ] }, { - "name": "alter", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/alter.ts", - "line": 18, - "col": 0, - "byteIndex": 500 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Alter the error of a function if an error is thrown.\n", - "tags": [ - { - "kind": "param", - "name": "fn", - "doc": "- The function to execute." - }, - { - "kind": "param", - "name": "alt", - "doc": "- The value to throw if an error is thrown." - }, - { - "kind": "return", - "doc": "The result of the function." - }, - { - "kind": "throws", - "type": null, - "doc": "The value of alt." - }, - { - "kind": "example", - "doc": "```ts\nimport { assertThrows } from \"@std/assert\";\nimport { alter } from \"@core/errorutil/alter\";\n\nconsole.log(alter(() => 1, \"err2\")); // 1\nassertThrows(() => alter(() => { throw \"err1\" }, \"err2\"), \"err2\"); // \"err2\" is thrown\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "id": 12086, + "name": "stub", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12087, + "name": "stub", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Replaces an instance method with a Stub with empty implementation." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { stub, assertSpyCalls } from \"@std/testing/mock\";\n\nconst obj = {\n method() {\n // some inconventient feature for testing\n },\n};\n\nconst methodStub = stub(obj, \"method\");\n\nfor (const _ of Array(5)) {\n obj.method();\n}\n\nassertSpyCalls(methodStub, 5);\n```" } - }, - "params": [], - "typeParams": [] + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The stub function which replaced the original." + } + ] } - } + ] }, - { - "kind": "identifier", - "name": "alt", - "optional": false, - "tsType": { - "repr": "E", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "E" + "typeParameters": [ + { + "id": 12088, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the instance to replace a method of." + } + ] } - } - } - ], - "returnType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T" - }, - { - "name": "E" - } - ] - } - }, - { - "name": "alterElse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/alter_else.ts", - "line": 18, - "col": 0, - "byteIndex": 571 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Alter the error of a function if an error is thrown.\n", - "tags": [ - { - "kind": "param", - "name": "fn", - "doc": "- The function to execute." - }, - { - "kind": "param", - "name": "modifier", - "doc": "- The function to execute if an error is thrown." - }, - { - "kind": "return", - "doc": "The result of the function." - }, - { - "kind": "throws", - "type": null, - "doc": "The result of the modifier function." - }, - { - "kind": "example", - "doc": "```ts\nimport { assertThrows } from \"@std/assert\";\nimport { alterElse } from \"@core/errorutil/alter-else\";\n\nconsole.log(alterElse(() => 1, () => \"err\")); // 1\nassertThrows(() => alterElse(() => { throw \"err\" }, (err) => \"new \" + err), \"new err\"); // \"new err\" is thrown\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + }, + { + "id": 12089, + "name": "Prop", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The property of the instance to replace." } - }, - "params": [], - "typeParams": [] + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "symbol" + } + ] } } - }, - { - "kind": "identifier", - "name": "elseFn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "E", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "E" + ], + "parameters": [ + { + "id": 12090, + "name": "self", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The instance to replace a method of." } - }, - "params": [ - { - "kind": "identifier", - "name": "err", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + ] + }, + "type": { + "type": "reference", + "target": 12088, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12091, + "name": "property", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The property of the instance to replace." + } + ] + }, + "type": { + "type": "reference", + "target": 12089, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12284, + "typeArguments": [ + { + "type": "reference", + "target": 12088, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": -1, + "typeArguments": [ + { + "type": "reference", + "target": 12088, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12089, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } ], - "typeParams": [] + "name": "GetParametersFromProp", + "package": "@probitas-test/probitas" + }, + { + "type": "reference", + "target": -1, + "typeArguments": [ + { + "type": "reference", + "target": 12088, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12089, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "GetReturnFromProp", + "package": "@probitas-test/probitas" } - } - } - ], - "returnType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + ], + "name": "Stub", + "package": "@probitas-test/probitas" } }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T" + { + "id": 12092, + "name": "stub", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Replaces an instance method with a Stub with the given implementation." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { stub } from \"@std/testing/mock\";\nimport { assertEquals } from \"@std/assert\";\n\nconst obj = {\n method(): number {\n return Math.random();\n },\n};\n\nconst methodStub = stub(obj, \"method\", () => 0.5);\n\nassertEquals(obj.method(), 0.5);\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The stub function which replaced the original." + } + ] + } + ] }, - { - "name": "E" - } - ] - } - }, - { - "name": "Success", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/attempt.ts", - "line": 1, - "col": 0, - "byteIndex": 0 - }, - "declarationKind": "export", - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [ - { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" - }, + "typeParameters": [ { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ] - }, - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "Failure", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/attempt.ts", - "line": 2, - "col": 0, - "byteIndex": 55 - }, - "declarationKind": "export", - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "tuple", - "tuple": [ - { - "repr": "E", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "E" + "id": 12093, + "name": "Self", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The self type of the instance to replace a method of." + } + ] } }, { - "repr": "undefined", - "kind": "keyword", - "keyword": "undefined" + "id": 12094, + "name": "Prop", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The property of the instance to replace." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "symbol" + } + ] + } } - ] - }, - "typeParams": [ - { - "name": "E" - } - ] - } - }, - { - "name": "Result", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/attempt.ts", - "line": 3, - "col": 0, - "byteIndex": 110 - }, - "declarationKind": "export", - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Success", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ], + "parameters": [ + { + "id": 12095, + "name": "self", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The instance to replace a method of." } - ], - "typeName": "Success" + ] + }, + "type": { + "type": "reference", + "target": 12093, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } }, { - "repr": "Failure", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 12096, + "name": "property", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ { - "repr": "E", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "E" - } + "kind": "text", + "text": "The property of the instance to replace." } - ], - "typeName": "Failure" + ] + }, + "type": { + "type": "reference", + "target": 12094, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - } - ] - }, - "typeParams": [ - { - "name": "T" - }, - { - "name": "E" - } - ] - } - }, - { - "name": "attempt", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/attempt.ts", - "line": 19, - "col": 0, - "byteIndex": 579 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Attempt to execute a function and return a Result.\n", - "tags": [ - { - "kind": "param", - "name": "fn", - "doc": "- The function to execute." - }, - { - "kind": "return", - "doc": "A Result where T is the return type of the function and E is the error type.\n" - }, - { - "kind": "example", - "doc": "```ts\nimport { attempt } from \"@core/errorutil/attempt\";\n\nconsole.log(attempt(() => 1)); // [undefined, 1]\nconsole.log(attempt(() => { throw \"err\" })); // [\"err\", undefined]\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + }, + { + "id": 12097, + "name": "func", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The fake implementation of the function." } - }, - "params": [], - "typeParams": [] - } - } - } - ], - "returnType": { - "repr": "Result", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + ] }, - { - "repr": "E", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "E" + "type": { + "type": "reflection", + "declaration": { + "id": 12098, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12099, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12100, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12093, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + }, + { + "id": 12101, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": -1, + "typeArguments": [ + { + "type": "reference", + "target": 12093, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12094, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "GetParametersFromProp", + "package": "@probitas-test/probitas" + } + } + ], + "type": { + "type": "reference", + "target": -1, + "typeArguments": [ + { + "type": "reference", + "target": 12093, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12094, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "GetReturnFromProp", + "package": "@probitas-test/probitas" + } + } + ] } } - ], - "typeName": "Result" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T" - }, - { - "name": "E", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } - } - ] - } - }, - { - "name": "ErrorObject", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/error_object.ts", - "line": 9, - "col": 0, - "byteIndex": 326 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "An error object is a serializable representation of an error" - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "proto", - "jsDoc": { - "doc": "The name of the error prototype" - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/error_object.ts", - "line": 13, - "col": 2, - "byteIndex": 405 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "name", - "jsDoc": { - "doc": "The name of the error" - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/error_object.ts", - "line": 17, - "col": 2, - "byteIndex": 461 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, + ], + "type": { + "type": "reference", + "target": 12284, + "typeArguments": [ { - "name": "message", - "jsDoc": { - "doc": "The error message" - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/error_object.ts", - "line": 21, - "col": 2, - "byteIndex": 512 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": "reference", + "target": 12093, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true }, { - "name": "stack", - "jsDoc": { - "doc": "The error stack" - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/error_object.ts", - "line": 25, - "col": 2, - "byteIndex": 564 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "type": "reference", + "target": -1, + "typeArguments": [ + { + "type": "reference", + "target": 12093, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12094, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + ], + "name": "GetParametersFromProp", + "package": "@probitas-test/probitas" }, { - "name": "attributes", - "jsDoc": { - "doc": "Additional attributes" - }, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/error_object.ts", - "line": 29, - "col": 2, - "byteIndex": 621 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - }, - "typeParams": [] - } - }, - { - "name": "isErrorObject", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/error_object.ts", - "line": 35, - "col": 13, - "byteIndex": 722 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if a value is an error object" - }, - "kind": "variable", - "variableDef": { - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "x is ErrorObject", - "kind": "typePredicate", - "typePredicate": { - "asserts": false, - "param": { - "type": "identifier", - "name": "x" - }, - "type": { - "repr": "ErrorObject", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorObject" + "type": "reference", + "target": -1, + "typeArguments": [ + { + "type": "reference", + "target": 12093, + "name": "Self", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 12094, + "name": "Prop", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - } - } - }, - "params": [ - { - "kind": "identifier", - "name": "x", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } + ], + "name": "GetReturnFromProp", + "package": "@probitas-test/probitas" } ], - "typeParams": [] + "name": "Stub", + "package": "@probitas-test/probitas" } - }, - "kind": "const" - } + } + ] }, { + "id": 12352, "name": "toErrorObject", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/error_object.ts", - "line": 46, - "col": 0, - "byteIndex": 950 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Convert an error to an error object" - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "err", - "optional": false, - "tsType": { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12353, + "name": "toErrorObject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert an error to an error object" } - } - } - ], - "returnType": { - "repr": "ErrorObject", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorObject" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "fromErrorObject", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/error_object.ts", - "line": 60, - "col": 0, - "byteIndex": 1232 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Convert an error object to an error" - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "obj", - "optional": false, - "tsType": { - "repr": "ErrorObject", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorObject" + ] + }, + "parameters": [ + { + "id": 12354, + "name": "err", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" } } + ], + "type": { + "type": "reference", + "target": 12358, + "name": "ErrorObject", + "package": "@probitas-test/probitas" } - ], - "returnType": { - "repr": "Error", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Error" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "raise", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/raise.ts", - "line": 12, - "col": 0, - "byteIndex": 211 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Throw an error.\n\nThis is function thus can be used as an expression.\n\n```typescript\nimport { raise } from \"@core/errorutil/raise\";\n\nconst fn = () => raise(new Error(\"fail\"));\n```" - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "err", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "returnType": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + } + ] }, { + "id": 12372, "name": "tryOr", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/try_or.ts", - "line": 11, - "col": 0, - "byteIndex": 266 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Try to execute a function and return the result or a default value if an error occurs.\n\n```ts\nimport { tryOr } from \"@core/errorutil/try-or\";\n\nconsole.log(tryOr(() => 1, 2)); // 1\nconsole.log(tryOr(() => { throw \"err\"; }, 2)); // 2\n```" - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - "params": [], - "typeParams": [] + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12373, + "name": "tryOr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Try to execute a function and return the result or a default value if an error occurs.\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { tryOr } from \"@core/errorutil/try-or\";\n\nconsole.log(tryOr(() => 1, 2)); // 1\nconsole.log(tryOr(() => { throw \"err\"; }, 2)); // 2\n```" } - } + ] }, - { - "kind": "identifier", - "name": "orValue", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + "typeParameters": [ + { + "id": 12374, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 12375, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 12376, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12377, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": 12374, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ] + } } - } - } - ], - "returnType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T" + }, + { + "id": 12378, + "name": "orValue", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 12374, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 12374, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - ] - } + } + ] }, { + "id": 12379, "name": "tryOrElse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/try_or_else.ts", - "line": 11, - "col": 0, - "byteIndex": 325 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Try to execute a function and return the result or execute another function and return its result if an error occurs.\n\n```ts\nimport { tryOrElse } from \"@core/errorutil/try-or-else\";\n\nconsole.log(tryOrElse(() => 1, () => 2)); // 1\nconsole.log(tryOrElse(() => { throw \"err\" }, () => 2)); // 2\n```" - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "fn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - "params": [], - "typeParams": [] + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12380, + "name": "tryOrElse", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Try to execute a function and return the result or execute another function and return its result if an error occurs.\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { tryOrElse } from \"@core/errorutil/try-or-else\";\n\nconsole.log(tryOrElse(() => 1, () => 2)); // 1\nconsole.log(tryOrElse(() => { throw \"err\" }, () => 2)); // 2\n```" } - } + ] }, - { - "kind": "identifier", - "name": "elseFn", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - "params": [ - { - "kind": "identifier", - "name": "err", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "typeParameters": [ + { + "id": 12381, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 12382, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 12383, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12384, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "type": { + "type": "reference", + "target": 12381, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } } - } - ], - "typeParams": [] + ] + } } - } - } - ], - "returnType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "UnimplementedError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/unimplemented.ts", - "line": 5, - "col": 0, - "byteIndex": 132 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error indicating that this part is unimplemented." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - "right": "unimplemented", - "tsType": null + }, + { + "id": 12385, + "name": "elseFn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 12386, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "signatures": [ + { + "id": 12387, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "parameters": [ + { + "id": 12388, + "name": "err", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "reference", + "target": 12381, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true + } + } + ] + } } - ], - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/unimplemented.ts", - "line": 6, - "col": 2, - "byteIndex": 182 } + ], + "type": { + "type": "reference", + "target": 12381, + "name": "T", + "package": "@probitas-test/probitas", + "refersToTypeParameter": true } - ], - "properties": [], - "indexSignatures": [], - "methods": [], - "extends": "Error", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ] }, { + "id": 12389, "name": "unimplemented", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/unimplemented.ts", - "line": 36, - "col": 0, - "byteIndex": 855 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Function indicating that this part is unimplemented.\n\nFor example, defining a mock object with `unimplemented` function should look like this:\n\n```ts\nimport { unimplemented } from \"@core/errorutil/unimplemented\";\n\ntype Service = {\n get(id: string): Promise;\n set(id: string, item: string): Promise;\n};\n\nconst _mock: Service = {\n get: () => unimplemented(),\n set: () => unimplemented(),\n};\n```" - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - "right": "unimplemented", - "tsType": null - } - ], - "returnType": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "UnreachableError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/unreachable.ts", - "line": 5, - "col": 0, - "byteIndex": 130 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error indicating that this part is unreachable." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "args", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/unreachable.ts", - "line": 8, - "col": 2, - "byteIndex": 207 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12390, + "name": "unimplemented", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function indicating that this part is unimplemented.\n\nFor example, defining a mock object with " + }, + { + "kind": "code", + "text": "`unimplemented`" + }, + { + "kind": "text", + "text": " function should look like this:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { unimplemented } from \"@core/errorutil/unimplemented\";\n\ntype Service = {\n get(id: string): Promise;\n set(id: string, item: string): Promise;\n};\n\nconst _mock: Service = {\n get: () => unimplemented(),\n set: () => unimplemented(),\n};\n```" } - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "args", - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/unreachable.ts", - "line": 6, - "col": 2, - "byteIndex": 178 + ] + }, + "parameters": [ + { + "id": 12391, + "name": "message", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"unimplemented\"" } + ], + "type": { + "type": "intrinsic", + "name": "never" } - ], - "indexSignatures": [], - "methods": [], - "extends": "Error", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + } + ] }, { + "id": 12396, "name": "unreachable", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/2.0.0/src/_vendor/core_errorutil/unreachable.ts", - "line": 70, - "col": 0, - "byteIndex": 1592 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Function indicating that this part is unreachable.\n\nFor example, the following code passed type checking.\n\n```ts\nimport { unreachable } from \"@core/errorutil/unreachable\";\n\ntype Animal = \"dog\" | \"cat\";\n\nfunction say(animal: Animal): void {\n switch (animal) {\n case \"dog\":\n console.log(\"dog\");\n break;\n case \"cat\":\n console.log(\"dog\");\n break;\n default:\n unreachable(animal);\n }\n}\nsay(\"dog\");\n```\n\nBut the following code because a case for \"bird\" is missing.\n\n```ts\nimport { unreachable } from \"@core/errorutil/unreachable\";\n\ntype Animal = \"dog\" | \"cat\" | \"bird\";\n\nfunction say(animal: Animal): void {\n switch (animal) {\n case \"dog\":\n console.log(\"dog\");\n break;\n case \"cat\":\n console.log(\"dog\");\n break;\n default: {\n // The line below causes a type error if we uncomment it.\n // error: TS2345 [ERROR]: Argument of type 'string' is not assignable to parameter of type 'never'.\n //unreachable(animal);\n }\n }\n}\nsay(\"dog\");\n```" - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 12397, + "name": "unreachable", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function indicating that this part is unreachable.\n\nFor example, the following code passed type checking.\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { unreachable } from \"@core/errorutil/unreachable\";\n\ntype Animal = \"dog\" | \"cat\";\n\nfunction say(animal: Animal): void {\n switch (animal) {\n case \"dog\":\n console.log(\"dog\");\n break;\n case \"cat\":\n console.log(\"dog\");\n break;\n default:\n unreachable(animal);\n }\n}\nsay(\"dog\");\n```" + }, + { + "kind": "text", + "text": "\n\nBut the following code because a case for \"bird\" is missing.\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { unreachable } from \"@core/errorutil/unreachable\";\n\ntype Animal = \"dog\" | \"cat\" | \"bird\";\n\nfunction say(animal: Animal): void {\n switch (animal) {\n case \"dog\":\n console.log(\"dog\");\n break;\n case \"cat\":\n console.log(\"dog\");\n break;\n default: {\n // The line below causes a type error if we uncomment it.\n // error: TS2345 [ERROR]: Argument of type 'string' is not assignable to parameter of type 'never'.\n //unreachable(animal);\n }\n }\n}\nsay(\"dog\");\n```" + } + ] + }, + "parameters": [ + { + "id": 12398, "name": "args", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "never", - "kind": "keyword", - "keyword": "never" + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } } } + ], + "type": { + "type": "intrinsic", + "name": "never" } - ], - "returnType": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/probitas", + "packageVersion": "2.0.2" } diff --git a/data/api/reporter.json b/data/api/reporter.json index 4cfb9c4..3bca9f1 100644 --- a/data/api/reporter.json +++ b/data/api/reporter.json @@ -1,918 +1,1351 @@ { - "name": "reporter", - "specifier": "@probitas/reporter", - "version": "0.7.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/probitas-test/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 JSONReporter} - JSON output for machine-readable results\n", - "exports": [ - { - "name": "ListReporterOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/list_reporter.ts", - "line": 39, - "col": 0, - "byteIndex": 1156 + "schemaVersion": "2.0", + "id": 16558, + "name": "@probitas-test/reporter", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "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 " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "Reporter" + }, + { + "kind": "text", + "text": "\ninterface from " + }, + { + "kind": "code", + "text": "`@probitas-test/runner`" + }, + { + "kind": "text", + "text": " and can be passed to " }, - "declarationKind": "export", - "jsDoc": { - "doc": "Options for ListReporter initialization." + { + "kind": "code", + "text": "`ScenarioRunner.run()`" }, - "kind": "interface", - "interfaceDef": { - "extends": [ + { + "kind": "text", + "text": ".\n\n## Links\n\n- [GitHub Repository](https://github.com/probitas-test/probitas)\n- [@probitas-test/probitas](https://www.npmjs.com/package/@probitas-test/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas-test/runner](https://www.npmjs.com/package/@probitas-test/runner) | Uses reporters for output |\n| [probitas](https://github.com/probitas-test/probitas) | CLI that uses these reporters |\n\n## Available Reporters\n\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ListReporter", + "target": 16563 + }, + { + "kind": "text", + "text": " - Detailed hierarchical output showing scenario and step names\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "JSONReporter", + "target": 16600 + }, + { + "kind": "text", + "text": " - JSON output for machine-readable results" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Using ListReporter (default for CLI)", + "content": [ { - "repr": "WriterOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "WriterOptions" - } + "kind": "code", + "text": "```ts\nimport { ListReporter } from \"@probitas-test/reporter\";\n\nconst reporter = new ListReporter();\nvoid reporter;\n\n// Output example when used with ScenarioRunner:\n// ● User Registration\n// ✓ Create user (15ms)\n// ✓ Verify email (23ms)\n// ● API Integration\n// ✓ Authenticate (45ms)\n// ✗ Fetch data (102ms)\n// Error: Connection timeout\n```" } - ], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "theme", - "jsDoc": { - "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.7.2/list_reporter.ts", - "line": 44, - "col": 2, - "byteIndex": 1351 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "Theme", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Theme" - } - }, - "typeParams": [] - }, - { - "name": "cwd", - "jsDoc": { - "doc": "Base directory for making paths relative in output.\nIf not provided, absolute paths are displayed as-is." - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/list_reporter.ts", - "line": 49, - "col": 2, - "byteIndex": 1495 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ListReporter", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/list_reporter.ts", - "line": 84, - "col": 0, - "byteIndex": 2442 + ] }, - "declarationKind": "export", - "jsDoc": { - "doc": "Reporter that outputs test results in a flat list format.\n\nFeatures:\n- Real-time per-step output as tests execute\n- Status indicators (✓ passed, ✗ failed, ⊘ skipped)\n- Origin location information\n- Execution timing for each step\n- Skip reasons for conditional skips\n- Error messages and stack traces for failures\n- Summary statistics\n- Semantic coloring via Theme\n", - "tags": [ + { + "tag": "@example", + "name": "Using JSONReporter for programmatic analysis", + "content": [ { - "kind": "example", - "doc": "```ts\nimport { ListReporter } from \"@probitas-test/reporter\";\n\nconst reporter = new ListReporter();\nvoid reporter;\n\n// Output:\n// ✓ Login scenario > Step that passes (test.ts:15) [10.000ms]\n// ✓ Login scenario > Another step (test.ts:20) [5.000ms]\n// ✗ Payment scenario > Process payment (test.ts:50) [25.000ms]\n// Error: Insufficient funds\n// at checkout (test.ts:52)\n//\n// Summary\n// ✓ 1 scenarios passed\n// ✗ 1 scenarios failed\n```" + "kind": "code", + "text": "```ts\nimport { JSONReporter } from \"@probitas-test/reporter\";\n\nconst reporter = new JSONReporter();\nvoid reporter;\n\n// Output: JSON object with full run details\n```" } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + { + "tag": "@example", + "name": "Configuring reporter options", + "content": [ { - "jsDoc": { - "doc": "Create a new ListReporter.\n", - "tags": [ + "kind": "code", + "text": "```ts\nimport { ListReporter } from \"@probitas-test/reporter\";\n\nconst reporter = new ListReporter({\n output: Deno.stdout.writable, // Write to stdout instead of stderr\n});\nvoid reporter;\n```" + } + ] + } + ] + }, + "children": [ + { + "id": 16600, + "name": "JSONReporter", + "variant": "declaration", + "kind": 128, + "flags": {}, + "children": [ + { + "id": 16601, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 16602, + "name": "JSONReporter", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", + "id": 16603, "name": "options", - "doc": "- Configuration (output stream, theme, cwd)" + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 16598, + "name": "JSONReporterOptions", + "package": "@probitas-test/reporter" + }, + "defaultValue": "{}" } - ] - }, - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "ListReporterOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ListReporterOptions" - } - } - }, - "right": "[UNSUPPORTED]", - "tsType": null + ], + "type": { + "type": "reference", + "target": 16600, + "name": "JSONReporter", + "package": "@probitas-test/reporter" } - ], - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/list_reporter.ts", - "line": 94, - "col": 2, - "byteIndex": 2659 } - } - ], - "properties": [], - "indexSignatures": [], - "methods": [ - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "onStepEnd", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "scenario", - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } + ] + }, + { + "id": 16611, + "name": "onRunEnd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 16612, + "name": "onRunEnd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when test run completes" } - }, - { - "kind": "identifier", - "name": "step", - "optional": false, - "tsType": { - "repr": "StepMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepMetadata" - } - } - }, - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "StepResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepResult" - } - } - } - ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + ] }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/list_reporter.ts", - "line": 139, - "col": 2, - "byteIndex": 3802 - } - }, - { - "jsDoc": { - "doc": "Called when run ends - output summary\n", - "tags": [ + "parameters": [ { - "kind": "param", - "name": "summary", - "doc": "The execution summary" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "onRunEnd", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "identifier", + "id": 16613, "name": "scenarios", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } - } + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" } } } }, { - "kind": "identifier", + "id": 16614, "name": "result", - "optional": false, - "tsType": { - "repr": "RunResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RunResult" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/runner", + "packagePath": "dist/types/run.d.ts", + "qualifiedName": "RunResult" + }, + "name": "RunResult", + "package": "@probitas-test/runner" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/list_reporter.ts", - "line": 200, - "col": 2, - "byteIndex": 5887 - } - } - ], - "extends": null, - "implements": [ - { - "repr": "Reporter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Reporter" - } - } - ], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "JSONReporterOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/json_reporter.ts", - "line": 19, - "col": 0, - "byteIndex": 419 - }, - "declarationKind": "export", - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "WriterOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "WriterOptions" - } - } - ], - "constructors": [], - "methods": [], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "JSONReporter", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/json_reporter.ts", - "line": 21, - "col": 0, - "byteIndex": 482 - }, - "declarationKind": "export", - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "assign", - "left": { - "kind": "identifier", - "name": "options", - "optional": false, - "tsType": { - "repr": "JSONReporterOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "JSONReporterOptions" - } - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" }, - "right": "[UNSUPPORTED]", - "tsType": null + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onRunEnd" } - ], - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/json_reporter.ts", - "line": 24, - "col": 2, - "byteIndex": 552 } + ], + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onRunEnd" } - ], - "properties": [], - "indexSignatures": [], - "methods": [ - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "onRunStart", - "kind": "method", - "functionDef": { - "params": [ + }, + { + "id": 16608, + "name": "onRunStart", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 16609, + "name": "onRunStart", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when the test run starts, before any scenarios execute." + } + ] + }, + "parameters": [ { - "kind": "identifier", + "id": 16610, "name": "scenarios", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } - } + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" } } } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/json_reporter.ts", - "line": 32, - "col": 2, - "byteIndex": 750 + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onRunStart" + } } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "onRunEnd", - "kind": "method", - "functionDef": { - "params": [ + ], + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onRunStart" + } + }, + { + "id": 16618, + "name": "onScenarioEnd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 16619, + "name": "onScenarioEnd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when scenario completes" + } + ] + }, + "parameters": [ { - "kind": "identifier", - "name": "scenarios", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } - } - } - } + "id": 16620, + "name": "scenario", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" } }, { - "kind": "identifier", + "id": 16621, "name": "result", - "optional": false, - "tsType": { - "repr": "RunResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RunResult" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/runner", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioResult" + }, + "name": "ScenarioResult", + "package": "@probitas-test/runner" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/json_reporter.ts", - "line": 41, - "col": 2, - "byteIndex": 911 + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onScenarioEnd" + } } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "onScenarioStart", - "kind": "method", - "functionDef": { - "params": [ + ], + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onScenarioEnd" + } + }, + { + "id": 16615, + "name": "onScenarioStart", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 16616, + "name": "onScenarioStart", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when a scenario begins execution." + } + ] + }, + "parameters": [ { - "kind": "identifier", + "id": 16617, "name": "scenario", - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/json_reporter.ts", - "line": 52, - "col": 2, - "byteIndex": 1105 + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onScenarioStart" + } } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "onScenarioEnd", - "kind": "method", - "functionDef": { - "params": [ + ], + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onScenarioStart" + } + }, + { + "id": 16626, + "name": "onStepEnd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 16627, + "name": "onStepEnd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when step completes (passed, failed, or skipped).\n\nThe result contains status-specific information:\n- If status is \"passed\": contains " + }, + { + "kind": "code", + "text": "`value`" + }, + { + "kind": "text", + "text": " from step execution\n- If status is \"failed\" or \"skipped\": contains " + }, + { + "kind": "code", + "text": "`error`" + }, + { + "kind": "text", + "text": " information" + } + ] + }, + "parameters": [ { - "kind": "identifier", + "id": 16628, "name": "scenario", - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16629, + "name": "step", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepMetadata" + }, + "name": "StepMetadata", + "package": "@probitas-test/core" } }, { - "kind": "identifier", + "id": 16630, "name": "result", - "optional": false, - "tsType": { - "repr": "ScenarioResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioResult" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/runner", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepResult" + }, + "name": "StepResult", + "package": "@probitas-test/runner" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/json_reporter.ts", - "line": 59, - "col": 2, - "byteIndex": 1254 + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onStepEnd" + } } - }, - { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "onStepStart", - "kind": "method", - "functionDef": { - "params": [ + ], + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onStepEnd" + } + }, + { + "id": 16622, + "name": "onStepStart", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 16623, + "name": "onStepStart", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when step starts" + } + ] + }, + "parameters": [ { - "kind": "identifier", + "id": 16624, "name": "scenario", - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" } }, { - "kind": "identifier", + "id": 16625, "name": "step", - "optional": false, - "tsType": { - "repr": "StepMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepMetadata" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepMetadata" + }, + "name": "StepMetadata", + "package": "@probitas-test/core" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/json_reporter.ts", - "line": 70, - "col": 2, - "byteIndex": 1450 + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onStepStart" + } } + ], + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onStepStart" + } + } + ], + "implementedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/runner", + "packagePath": "dist/types/reporter.d.ts", + "qualifiedName": "Reporter" }, + "name": "Reporter", + "package": "@probitas-test/runner" + } + ] + }, + { + "id": 16563, + "name": "ListReporter", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "onStepEnd", - "kind": "method", - "functionDef": { - "params": [ + "kind": "text", + "text": "Reporter that outputs test results in a flat list format.\n\nFeatures:\n- Real-time per-step output as tests execute\n- Status indicators (✓ passed, ✗ failed, ⊘ skipped)\n- Origin location information\n- Execution timing for each step\n- Skip reasons for conditional skips\n- Error messages and stack traces for failures\n- Summary statistics\n- Semantic coloring via Theme" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { ListReporter } from \"@probitas-test/reporter\";\n\nconst reporter = new ListReporter();\nvoid reporter;\n\n// Output:\n// ✓ Login scenario > Step that passes (test.ts:15) [10.000ms]\n// ✓ Login scenario > Another step (test.ts:20) [5.000ms]\n// ✗ Payment scenario > Process payment (test.ts:50) [25.000ms]\n// Error: Insufficient funds\n// at checkout (test.ts:52)\n//\n// Summary\n// ✓ 1 scenarios passed\n// ✗ 1 scenarios failed\n```" + } + ] + } + ] + }, + "children": [ + { + "id": 16564, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 16565, + "name": "ListReporter", + "variant": "signature", + "kind": 16384, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new ListReporter." + } + ] + }, + "parameters": [ { - "kind": "identifier", - "name": "scenario", - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } + "id": 16566, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Configuration (output stream, theme, cwd)" + } + ] + }, + "type": { + "type": "reference", + "target": 16559, + "name": "ListReporterOptions", + "package": "@probitas-test/reporter" + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "target": 16563, + "name": "ListReporter", + "package": "@probitas-test/reporter" + } + } + ] + }, + { + "id": 16594, + "name": "onRunEnd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 16595, + "name": "onRunEnd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when run ends - output summary" } - }, + ] + }, + "parameters": [ { - "kind": "identifier", - "name": "step", - "optional": false, - "tsType": { - "repr": "StepMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepMetadata" + "id": 16596, + "name": "scenarios", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } } } }, { - "kind": "identifier", + "id": 16597, "name": "result", - "optional": false, - "tsType": { - "repr": "StepResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepResult" - } + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/runner", + "packagePath": "dist/types/run.d.ts", + "qualifiedName": "RunResult" + }, + "name": "RunResult", + "package": "@probitas-test/runner" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/json_reporter.ts", - "line": 81, - "col": 2, - "byteIndex": 1636 + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onRunEnd" + } } + ], + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onRunEnd" } - ], - "extends": null, - "implements": [ - { - "repr": "Reporter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Reporter" + }, + { + "id": 16589, + "name": "onStepEnd", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 16590, + "name": "onStepEnd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when step completes (passed, failed, or skipped).\n\nThe result contains status-specific information:\n- If status is \"passed\": contains " + }, + { + "kind": "code", + "text": "`value`" + }, + { + "kind": "text", + "text": " from step execution\n- If status is \"failed\" or \"skipped\": contains " + }, + { + "kind": "code", + "text": "`error`" + }, + { + "kind": "text", + "text": " information" + } + ] + }, + "parameters": [ + { + "id": 16591, + "name": "scenario", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16592, + "name": "step", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepMetadata" + }, + "name": "StepMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16593, + "name": "result", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/runner", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepResult" + }, + "name": "StepResult", + "package": "@probitas-test/runner" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + }, + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onStepEnd" + } } + ], + "implementationOf": { + "type": "reference", + "target": -1, + "name": "Reporter.onStepEnd" } - ], - "typeParams": [], - "superTypeParams": [] - } + } + ], + "implementedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/runner", + "packagePath": "dist/types/reporter.d.ts", + "qualifiedName": "Reporter" + }, + "name": "Reporter", + "package": "@probitas-test/runner" + } + ] }, { - "name": "ReporterOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/types.ts", - "line": 28, - "col": 0, - "byteIndex": 626 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration options for reporter initialization.\n", - "tags": [ - { - "kind": "example", - "doc": "Basic usage\n```ts\nimport { ListReporter } from \"@probitas-test/reporter\";\n\nconst reporter = new ListReporter({\n output: Deno.stdout.writable\n});\nvoid reporter;\n```\n" + "id": 16598, + "name": "JSONReporterOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 16599, + "name": "output", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Output stream for writing results." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nDeno.stderr.writable\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "WritableStream" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "WritableStream", + "package": "typescript" }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "WriterOptions.output" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/reporter", + "packagePath": "writer.ts", + "qualifiedName": "WriterOptions" + }, + "name": "WriterOptions", + "package": "@probitas-test/reporter" + } + ] + }, + { + "id": 16559, + "name": "ListReporterOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "Custom output stream (using a buffer)\n```ts\nimport { ListReporter } from \"@probitas-test/reporter\";\nimport { Buffer } from \"@std/streams\";\n\nconst buffer = new Buffer();\nconst reporter = new ListReporter({\n output: buffer.writable\n});\nvoid reporter;\n```" + "kind": "text", + "text": "Options for ListReporter initialization." } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "output", - "jsDoc": { - "doc": "Output stream for writing results.\n", - "tags": [ - { - "kind": "unsupported", - "value": "@default Deno.stderr.writable" - } - ] - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/types.ts", - "line": 34, - "col": 2, - "byteIndex": 755 + "children": [ + { + "id": 16561, + "name": "cwd", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base directory for making paths relative in output.\nIf not provided, absolute paths are displayed as-is." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 16562, + "name": "output", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Output stream for writing results." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nDeno.stderr.writable\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "WritableStream" }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "WritableStream", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "WritableStream" + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "WritableStream", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "WriterOptions.output" + } + }, + { + "id": 16560, + "name": "theme", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Custom theme for styling output.\nIf not provided, uses defaultTheme (or noColorTheme if Deno.noColor is set)." } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/theme.d.ts", + "qualifiedName": "Theme" }, - "typeParams": [] + "name": "Theme", + "package": "@probitas-test/core" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "@probitas-test/reporter", + "packagePath": "writer.ts", + "qualifiedName": "WriterOptions" }, + "name": "WriterOptions", + "package": "@probitas-test/reporter" + } + ] + }, + { + "id": 16631, + "name": "ReporterOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ { - "name": "theme", - "jsDoc": { - "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.7.2/types.ts", - "line": 42, - "col": 2, - "byteIndex": 961 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Theme", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Theme" + "kind": "text", + "text": "Configuration options for reporter initialization." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Basic usage", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { ListReporter } from \"@probitas-test/reporter\";\n\nconst reporter = new ListReporter({\n output: Deno.stdout.writable\n});\nvoid reporter;\n```" } - }, - "typeParams": [] + ] }, { - "name": "cwd", - "jsDoc": { - "doc": "Base directory for making paths relative in output.\n\nIf provided, absolute paths in source locations will be displayed\nrelative to this directory." - }, - "location": { - "filename": "https://jsr.io/@probitas/reporter/0.7.2/types.ts", - "line": 50, - "col": 2, - "byteIndex": 1166 + "tag": "@example", + "name": "Custom output stream (using a buffer)", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { ListReporter } from \"@probitas-test/reporter\";\nimport { Buffer } from \"@std/streams\";\n\nconst buffer = new Buffer();\nconst reporter = new ListReporter({\n output: buffer.writable\n});\nvoid reporter;\n```" + } + ] + } + ] + }, + "children": [ + { + "id": 16634, + "name": "cwd", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Base directory for making paths relative in output.\n\nIf provided, absolute paths in source locations will be displayed\nrelative to this directory." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 16632, + "name": "output", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Output stream for writing results." + } + ], + "blockTags": [ + { + "tag": "@default", + "content": [ + { + "kind": "code", + "text": "```ts\nDeno.stderr.writable\n```" + } + ] + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "WritableStream" }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "WritableStream", + "package": "typescript" + } + }, + { + "id": 16633, + "name": "theme", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Custom theme for styling output.\n\nIf not provided, uses " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "defaultTheme" + }, + { + "kind": "text", + "text": " (or " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "noColorTheme" + }, + { + "kind": "text", + "text": "\nif " + }, + { + "kind": "code", + "text": "`Deno.noColor`" + }, + { + "kind": "text", + "text": " is true)." + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/theme.d.ts", + "qualifiedName": "Theme" }, - "typeParams": [] + "name": "Theme", + "package": "@probitas-test/core" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] } - ] + ], + "packageName": "@probitas-test/reporter", + "packageVersion": "0.7.3" } diff --git a/data/api/runner.json b/data/api/runner.json index b7b2af5..e32d32c 100644 --- a/data/api/runner.json +++ b/data/api/runner.json @@ -1,2696 +1,3300 @@ { - "name": "runner", - "specifier": "@probitas/runner", - "version": "0.5.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/probitas-test/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/core](https://jsr.io/@probitas/core) | 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 StepTimeoutError} - Thrown when a step exceeds its timeout\n- {@linkcode ScenarioTimeoutError} - Thrown when a scenario exceeds its timeout\n", - "exports": [ - { - "name": "Skip", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/skip.ts", - "line": 76, - "col": 0, - "byteIndex": 2108 + "schemaVersion": "2.0", + "id": 16635, + "name": "@probitas-test/runner", + "variant": "project", + "kind": 1, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Test execution and orchestration engine for Probitas scenarios.\n\nThis package provides the " }, - "declarationKind": "export", - "jsDoc": { - "doc": "Exception class for conditionally skipping scenario execution.\n\nThrow `Skip` from any step, setup, or resource fn to skip the\nentire scenario. Skipped scenarios are counted separately in the\nsummary and don't count as failures.\n\nCommon use cases:\n- Feature flags or environment checks\n- Prerequisites not met\n- Platform-specific tests\n- Temporary test disabling with clear reason\n", - "tags": [ - { - "kind": "example", - "doc": "Skip based on environment\n```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst def = scenario(\"Production Only\")\n .step(\"Check environment\", () => {\n if (process.env.ENV !== \"production\") {\n throw new Skip(\"Only runs in production\");\n }\n })\n .step(\"Production test\", () => {\n console.log(\"Running in production\");\n })\n .build();\nconsole.log(def.name);\n```\n" - }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioRunner" + }, + { + "kind": "text", + "text": " class that executes\nscenario definitions built with " + }, + { + "kind": "code", + "text": "`@probitas-test/builder`" + }, + { + "kind": "text", + "text": ". 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/probitas-test/probitas)\n- [@probitas-test/probitas](https://www.npmjs.com/package/@probitas-test/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas-test/builder](https://www.npmjs.com/package/@probitas-test/builder) | Build scenario definitions to execute |\n| [@probitas-test/core](https://www.npmjs.com/package/@probitas-test/core) | Core type definitions |\n| [@probitas-test/reporter](https://www.npmjs.com/package/@probitas-test/reporter) | Output formatters for results |\n| [probitas](https://github.com/probitas-test/probitas) | CLI that uses these reporters |\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- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioRunner" + }, + { + "kind": "text", + "text": " - Main class for executing scenarios\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "Skip", + "target": 16706 + }, + { + "kind": "text", + "text": " - Exception class to skip scenarios conditionally\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "Reporter", + "target": 16636 + }, + { + "kind": "text", + "text": " - Interface for observing test execution events\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "RunOptions", + "target": 16670 + }, + { + "kind": "text", + "text": " - Configuration options for test runs\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "RunResult", + "target": 16660 + }, + { + "kind": "text", + "text": " - Aggregated results from a test run\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioResult", + "target": 16683 + }, + { + "kind": "text", + "text": " - Result from executing a single scenario\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "StepResult", + "target": 16695 + }, + { + "kind": "text", + "text": " - Result from executing a single step\n\n## Error Types\n\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "StepTimeoutError", + "target": 16763 + }, + { + "kind": "text", + "text": " - Thrown when a step exceeds its timeout\n- " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioTimeoutError", + "target": 16741 + }, + { + "kind": "text", + "text": " - Thrown when a scenario exceeds its timeout" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Basic usage", + "content": [ { - "kind": "example", - "doc": "Skip based on resource availability\n```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst Database = { connect: async () => ({ query: (sql: string) => sql }) };\n\nconst def = scenario(\"Database Test\")\n .resource(\"db\", async () => {\n try {\n return await Database.connect();\n } catch {\n throw new Skip(\"Database not available\");\n }\n })\n .step(\"Query data\", (ctx) => ctx.resources.db.query(\"SELECT 1\"))\n .build();\nconsole.log(def.name);\n```\n" - }, + "kind": "code", + "text": "```ts\nimport { Runner } from \"@probitas-test/runner\";\nimport type { Reporter } from \"@probitas-test/runner\";\nimport type { ScenarioDefinition } from \"@probitas-test/core\";\n\nconst loadScenarios = (_patterns: string[]): ScenarioDefinition[] => [];\n\nconst reporter: Reporter = {};\nconst scenarios = loadScenarios([\"./tests/*.probitas.ts\"]);\nconst runner = new Runner(reporter);\n\nconst summary = await runner.run(scenarios, {\n maxConcurrency: 4, // Run 4 scenarios in parallel\n maxFailures: 5, // Stop after 5 failures\n});\n\nconsole.log(`Passed: ${summary.passed}, Failed: ${summary.failed}`);\n```" + } + ] + }, + { + "tag": "@example", + "name": "Using Skip for conditional execution", + "content": [ { - "kind": "example", - "doc": "Skip with feature flag\n```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst def = scenario(\"Beta Feature\")\n .step(\"Check feature flag\", (ctx) => {\n if (!ctx.store.get(\"betaEnabled\")) {\n throw new Skip(\"Beta feature not enabled\");\n }\n })\n .build();\nconsole.log(def.name);\n```" + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst tryConnect = (): { query(sql: string): Promise } | null => null;\n\nconst def = scenario(\"Database Integration Test\")\n .resource(\"db\", () => {\n const connection = tryConnect();\n if (!connection) {\n throw new Skip(\"Database not available\");\n }\n return connection;\n })\n .step(\"Run queries\", async (ctx) => {\n // This only runs if database is available\n await ctx.resources.db.query(\"SELECT 1\");\n })\n .build();\nconsole.log(def.name);\n```" } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + { + "tag": "@example", + "name": "Implementing a custom reporter", + "content": [ { - "jsDoc": { - "doc": "Create a Skip exception.\n", - "tags": [ - { - "kind": "param", - "name": "reason", - "doc": "- Optional explanation for why the scenario was skipped.\nDisplayed in test reports alongside the scenario name.\n" - }, - { - "kind": "example", - "doc": "```ts\nimport { Skip } from \"@probitas-test/runner\";\n\nconst skip1 = new Skip(); // message: \"Skipped\", reason: undefined\nconst skip2 = new Skip(\"Not on Windows\"); // message: \"Not on Windows\", reason: \"Not on Windows\"\nconsole.log(skip1.message, skip2.reason);\n```" - } - ] - }, - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "reason", - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/skip.ts", - "line": 101, - "col": 2, - "byteIndex": 2928 - } + "kind": "code", + "text": "```ts\nimport type { Reporter, ScenarioResult, RunResult } from \"@probitas-test/runner\";\nimport type { ScenarioMetadata } from \"@probitas-test/core\";\n\nclass MinimalReporter implements Reporter {\n onScenarioEnd(scenario: ScenarioMetadata, result: ScenarioResult) {\n const icon = result.status === \"passed\" ? \"+\" : \"-\";\n console.log(`${icon} ${scenario.name}`);\n }\n\n onRunEnd(_scenarios: readonly ScenarioMetadata[], summary: RunResult) {\n console.log(`\\n${summary.passed}/${summary.total} passed`);\n }\n}\nconsole.log(MinimalReporter);\n```" } - ], - "properties": [ + ] + }, + { + "tag": "@example", + "name": "Cancelling a test run", + "content": [ { - "jsDoc": { - "doc": "Human-readable reason for skipping.\n\nWhen provided, this reason is displayed in test reports.\nIf not provided, defaults to `undefined` (the error message\nwill still show \"Skipped\")." - }, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "reason", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/skip.ts", - "line": 84, - "col": 2, - "byteIndex": 2362 - } + "kind": "code", + "text": "```ts\nimport { Runner } from \"@probitas-test/runner\";\nimport type { Reporter } from \"@probitas-test/runner\";\nimport type { ScenarioDefinition } from \"@probitas-test/core\";\n\nconst reporter: Reporter = {};\nconst scenarios: ScenarioDefinition[] = [];\n\nconst controller = new AbortController();\nconst runner = new Runner(reporter);\n\n// Cancel after 30 seconds\nconst timeoutId = setTimeout(() => controller.abort(), 30000);\n\nconst summary = await runner.run(scenarios, {\n signal: controller.signal,\n});\nclearTimeout(timeoutId);\nconsole.log(summary);\n```" } - ], - "indexSignatures": [], - "methods": [], - "extends": "Error", - "implements": [], - "typeParams": [], - "superTypeParams": [] + ] } - }, + ] + }, + "children": [ { + "id": 16711, "name": "Runner", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/runner.ts", - "line": 42, - "col": 0, - "byteIndex": 1288 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Top-level test runner that orchestrates execution of multiple scenarios.\n\nThe Runner manages:\n- Parallel execution with concurrency control (`maxConcurrency`)\n- Early stopping on failures (`maxFailures`)\n- Test lifecycle events through the Reporter interface\n- Aggregated results in RunResult\n", - "tags": [ + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Top-level test runner that orchestrates execution of multiple scenarios.\n\nThe Runner manages:\n- Parallel execution with concurrency control (" + }, + { + "kind": "code", + "text": "`maxConcurrency`" + }, + { + "kind": "text", + "text": ")\n- Early stopping on failures (" + }, + { + "kind": "code", + "text": "`maxFailures`" + }, + { + "kind": "text", + "text": ")\n- Test lifecycle events through the Reporter interface\n- Aggregated results in RunResult" + } + ], + "blockTags": [ { - "kind": "example", - "doc": "```ts\nimport { Runner } from \"@probitas-test/runner\";\nimport type { Reporter } from \"@probitas-test/runner\";\nimport type { ScenarioDefinition } from \"@probitas-test/core\";\n\nconst reporter: Reporter = {};\nconst scenarios: ScenarioDefinition[] = [];\nconst runner = new Runner(reporter);\n\nconst result = await runner.run(scenarios, {\n maxConcurrency: 4,\n maxFailures: 1,\n});\nconsole.log(result);\n```" + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { Runner } from \"@probitas-test/runner\";\nimport type { Reporter } from \"@probitas-test/runner\";\nimport type { ScenarioDefinition } from \"@probitas-test/core\";\n\nconst reporter: Reporter = {};\nconst scenarios: ScenarioDefinition[] = [];\nconst runner = new Runner(reporter);\n\nconst result = await runner.run(scenarios, {\n maxConcurrency: 4,\n maxFailures: 1,\n});\nconsole.log(result);\n```" + } + ] } ] }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "jsDoc": { - "doc": "Create a new Runner with the given reporter.\n", - "tags": [ + "children": [ + { + "id": 16712, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 16713, + "name": "Runner", + "variant": "signature", + "kind": 16384, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a new Runner with the given reporter." + } + ] + }, + "parameters": [ { - "kind": "param", + "id": 16714, "name": "reporter", - "doc": "- Reporter instance for lifecycle events" - } - ] - }, - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "reporter", - "optional": false, - "tsType": { - "repr": "Reporter", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Reporter" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Reporter instance for lifecycle events" + } + ] + }, + "type": { + "type": "reference", + "target": 16636, + "name": "Reporter", + "package": "@probitas-test/runner" } - }, - "readonly": true + } + ], + "type": { + "type": "reference", + "target": 16711, + "name": "Runner", + "package": "@probitas-test/runner" } - ], - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/runner.ts", - "line": 48, - "col": 2, - "byteIndex": 1441 } + ] + }, + { + "id": 16715, + "name": "reporter", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Reporter instance for lifecycle events" + } + ] + }, + "type": { + "type": "reference", + "target": 16636, + "name": "Reporter", + "package": "@probitas-test/runner" } - ], - "properties": [], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Execute all scenarios and return aggregated results.\n\nEmits events through the Reporter:\n1. `onRunStart` - Before execution starts\n2. For each scenario (concurrently):\n - Delegates to ScenarioRunner for scenario-level execution\n - ScenarioRunner emits scenario and step level events\n3. `onRunEnd` - After all scenarios complete with RunResult\n", - "tags": [ - { - "kind": "param", - "name": "scenarios", - "doc": "- Scenarios to execute" - }, - { - "kind": "param", - "name": "options", - "doc": "- Execution options (maxConcurrency, maxFailures, signal)" - }, - { - "kind": "return", - "doc": "Aggregated results with pass/fail/skip counts" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "run", - "kind": "method", - "functionDef": { - "params": [ + }, + { + "id": 16716, + "name": "run", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "signatures": [ + { + "id": 16717, + "name": "run", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execute all scenarios and return aggregated results.\n\nEmits events through the Reporter:\n1. " + }, + { + "kind": "code", + "text": "`onRunStart`" + }, + { + "kind": "text", + "text": " - Before execution starts\n2. For each scenario (concurrently):\n - Delegates to ScenarioRunner for scenario-level execution\n - ScenarioRunner emits scenario and step level events\n3. " + }, + { + "kind": "code", + "text": "`onRunEnd`" + }, + { + "kind": "text", + "text": " - After all scenarios complete with RunResult" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "Aggregated results with pass/fail/skip counts" + } + ] + } + ] + }, + "parameters": [ { - "kind": "identifier", + "id": 16718, "name": "scenarios", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ScenarioDefinition", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioDefinition" - } - } + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Scenarios to execute" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioDefinition" + }, + "name": "ScenarioDefinition", + "package": "@probitas-test/core" } } } }, { - "kind": "identifier", + "id": 16719, "name": "options", - "optional": true, - "tsType": { - "repr": "RunOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RunOptions" - } + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execution options (maxConcurrency, maxFailures, signal)" + } + ] + }, + "type": { + "type": "reference", + "target": 16670, + "name": "RunOptions", + "package": "@probitas-test/runner" } } ], - "returnType": { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RunResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RunResult" - } - } - ], - "typeName": "Promise" - } - }, - "hasBody": true, - "isAsync": true, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/runner.ts", - "line": 64, - "col": 2, - "byteIndex": 2074 - } - } - ], - "extends": null, - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "toScenarioMetadata", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/metadata.ts", - "line": 22, - "col": 0, - "byteIndex": 475 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Convert ScenarioDefinition to serializable ScenarioMetadata\n\nRemoves the `fn` property from each step to make the result JSON-serializable." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "scenario", - "optional": false, - "tsType": { - "repr": "ScenarioDefinition", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioDefinition" - } - } - } - ], - "returnType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "toStepMetadata", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/metadata.ts", - "line": 37, - "col": 0, - "byteIndex": 822 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Convert StepDefinition to serializable StepMetadata\n\nRemoves the `fn` property to make the result JSON-serializable." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "step", - "optional": false, - "tsType": { - "repr": "StepDefinition", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepDefinition" + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 16660, + "name": "RunResult", + "package": "@probitas-test/runner" + } + ], + "name": "Promise", + "package": "typescript" } } - } - ], - "returnType": { - "repr": "StepMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepMetadata" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } + ] + } + ] }, { + "id": 16741, "name": "ScenarioTimeoutError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 83, - "col": 0, - "byteIndex": 2423 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a scenario execution times out.\n\nContains structured information about the timeout including\nthe scenario name, timeout duration, total elapsed time,\nand optionally the step being executed when timeout occurred." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "scenarioName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "timeoutMs", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "elapsedMs", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "", - "kind": "intersection", - "intersection": [ - { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - }, - { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "currentStepName", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 96, - "col": 6, - "byteIndex": 2817 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "currentStepIndex", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 97, - "col": 6, - "byteIndex": 2849 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - ] - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 91, - "col": 2, - "byteIndex": 2695 - } - } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 84, - "col": 2, - "byteIndex": 2475 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "scenarioName", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 85, - "col": 2, - "byteIndex": 2526 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "timeoutMs", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 86, - "col": 2, - "byteIndex": 2559 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "elapsedMs", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 87, - "col": 2, - "byteIndex": 2589 - } - }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "currentStepName", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 88, - "col": 2, - "byteIndex": 2619 - } - }, + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": true, - "isAbstract": false, - "isStatic": false, - "name": "currentStepIndex", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 89, - "col": 2, - "byteIndex": 2656 - } + "kind": "text", + "text": "Error thrown when a scenario execution times out.\n\nContains structured information about the timeout including\nthe scenario name, timeout duration, total elapsed time,\nand optionally the step being executed when timeout occurred." } - ], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Creates an AbortSignal that aborts with ScenarioTimeoutError after the specified timeout.\n", - "tags": [ + ] + }, + "children": [ + { + "id": 16748, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 16749, + "name": "ScenarioTimeoutError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ { - "kind": "param", - "name": "timeout", - "doc": "- Timeout duration in milliseconds" + "id": 16750, + "name": "scenarioName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "kind": "param", - "name": "params", - "doc": "- Scenario information for the error" + "id": 16751, + "name": "timeoutMs", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } }, { - "kind": "return", - "doc": "AbortSignal with Disposable interface for cleanup" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": true, - "name": "timeoutSignal", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "timeout", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "id": 16752, + "name": "elapsedMs", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" } }, { - "kind": "identifier", - "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "scenarioName", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 131, - "col": 6, - "byteIndex": 3924 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "id": 16753, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + }, + { + "type": "reflection", + "declaration": { + "id": 16754, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 16756, + "name": "currentStepIndex", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16755, + "name": "currentStepName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] } - ], - "callSignatures": [], - "indexSignatures": [] - } + } + ] } } ], - "returnType": { - "repr": "", - "kind": "intersection", - "intersection": [ - { - "repr": "AbortSignal", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortSignal" - } - }, - { - "repr": "Disposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Disposable" - } - } - ] + "type": { + "type": "reference", + "target": 16741, + "name": "ScenarioTimeoutError", + "package": "@probitas-test/runner" }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 128, - "col": 2, - "byteIndex": 3861 + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" } - ], - "extends": "Error", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } - }, - { - "name": "StepTimeoutError", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 7, - "col": 0, - "byteIndex": 198 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Error thrown when a step execution times out.\n\nContains structured information about the timeout including\nthe step name, timeout duration, retry context, and total elapsed time." - }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ - { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "stepName", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "timeoutMs", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "attemptNumber", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "elapsedMs", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "options", - "optional": true, - "tsType": { - "repr": "ErrorOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ErrorOptions" - } - } - } - ], - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 14, - "col": 2, - "byteIndex": 417 - } + }, + { + "id": 16762, + "name": "currentStepIndex", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "properties": [ - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "isOverride": true, - "name": "name", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 8, - "col": 2, - "byteIndex": 246 - } + }, + { + "id": 16761, + "name": "currentStepName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "stepName", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 9, - "col": 2, - "byteIndex": 293 - } + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 16760, + "name": "elapsedMs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "timeoutMs", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 10, - "col": 2, - "byteIndex": 322 - } + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16757, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "attemptNumber", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 11, - "col": 2, - "byteIndex": 352 - } + "type": { + "type": "literal", + "value": "ScenarioTimeoutError" }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "elapsedMs", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 12, - "col": 2, - "byteIndex": 386 - } + "defaultValue": "\"ScenarioTimeoutError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.name" } - ], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Creates an AbortSignal that aborts with StepTimeoutError after the specified timeout.\n", - "tags": [ - { - "kind": "param", - "name": "timeout", - "doc": "- Timeout duration in milliseconds" - }, - { - "kind": "param", - "name": "params", - "doc": "- Step information for the error" - }, - { - "kind": "return", - "doc": "AbortSignal with Disposable interface for cleanup" - } - ] - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": true, - "name": "timeoutSignal", - "kind": "method", - "functionDef": { - "params": [ + }, + { + "id": 16758, + "name": "scenarioName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 16759, + "name": "timeoutMs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16742, + "name": "timeoutSignal", + "variant": "declaration", + "kind": 2048, + "flags": { + "isStatic": true + }, + "signatures": [ + { + "id": 16743, + "name": "timeoutSignal", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates an AbortSignal that aborts with ScenarioTimeoutError after the specified timeout." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "AbortSignal with Disposable interface for cleanup" + } + ] + } + ] + }, + "parameters": [ { - "kind": "identifier", + "id": 16744, "name": "timeout", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout duration in milliseconds" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } }, { - "kind": "identifier", + "id": 16745, "name": "params", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "stepName", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 45, - "col": 6, - "byteIndex": 1340 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Scenario information for the error" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 16746, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ { - "name": "attemptNumber", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 46, - "col": 6, - "byteIndex": 1364 - }, - "params": [], - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "id": 16747, + "name": "scenarioName", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "callSignatures": [], - "indexSignatures": [] + ] } } } ], - "returnType": { - "repr": "", - "kind": "intersection", - "intersection": [ + "type": { + "type": "intersection", + "types": [ { - "repr": "AbortSignal", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortSignal" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" }, { - "repr": "Disposable", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Disposable" - } + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "Disposable" + }, + "name": "Disposable", + "package": "typescript" } ] - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/errors.ts", - "line": 42, - "col": 2, - "byteIndex": 1277 + } } - } - ], - "extends": "Error", - "implements": [], - "typeParams": [], - "superTypeParams": [] - } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] }, { - "name": "Reporter", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/reporter.ts", - "line": 13, - "col": 0, - "byteIndex": 481 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Reporter interface for receiving test execution events.\n\nAll callbacks receive serializable metadata types (ScenarioMetadata, StepMetadata)\ninstead of definition types, enabling use across process/thread boundaries\n(e.g., Web Workers)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ + "id": 16706, + "name": "Skip", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "name": "onRunStart", - "jsDoc": { - "doc": "Called when the test run starts, before any scenarios execute." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/reporter.ts", - "line": 17, - "col": 2, - "byteIndex": 591 - }, - "params": [ - { - "kind": "identifier", - "name": "scenarios", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } - } - } - } - } - } - ], - "optional": true, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - } - ] - }, - "typeParams": [] + "kind": "text", + "text": "Exception class for conditionally skipping scenario execution.\n\nThrow " }, { - "name": "onRunEnd", - "jsDoc": { - "doc": "Called when test run completes" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/reporter.ts", - "line": 22, - "col": 2, - "byteIndex": 717 - }, - "params": [ - { - "kind": "identifier", - "name": "scenarios", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } - } - } - } - } - }, + "kind": "code", + "text": "`Skip`" + }, + { + "kind": "text", + "text": " from any step, setup, or resource fn to skip the\nentire scenario. Skipped scenarios are counted separately in the\nsummary and don't count as failures.\n\nCommon use cases:\n- Feature flags or environment checks\n- Prerequisites not met\n- Platform-specific tests\n- Temporary test disabling with clear reason" + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Skip based on environment", + "content": [ { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "RunResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RunResult" - } - } + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst def = scenario(\"Production Only\")\n .step(\"Check environment\", () => {\n if (process.env.ENV !== \"production\") {\n throw new Skip(\"Only runs in production\");\n }\n })\n .step(\"Production test\", () => {\n console.log(\"Running in production\");\n })\n .build();\nconsole.log(def.name);\n```" } - ], - "optional": true, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - } - ] - }, - "typeParams": [] + ] }, { - "name": "onScenarioStart", - "jsDoc": { - "doc": "Called when a scenario begins execution." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/reporter.ts", - "line": 30, - "col": 2, - "byteIndex": 883 - }, - "params": [ - { - "kind": "identifier", - "name": "scenario", - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } - } + "tag": "@example", + "name": "Skip based on resource availability", + "content": [ + { + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst Database = { connect: async () => ({ query: (sql: string) => sql }) };\n\nconst def = scenario(\"Database Test\")\n .resource(\"db\", async () => {\n try {\n return await Database.connect();\n } catch {\n throw new Skip(\"Database not available\");\n }\n })\n .step(\"Query data\", (ctx) => ctx.resources.db.query(\"SELECT 1\"))\n .build();\nconsole.log(def.name);\n```" } - ], - "optional": true, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - } - ] - }, - "typeParams": [] + ] }, { - "name": "onScenarioEnd", - "jsDoc": { - "doc": "Called when scenario completes" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/reporter.ts", - "line": 35, - "col": 2, - "byteIndex": 1002 - }, - "params": [ - { - "kind": "identifier", - "name": "scenario", - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } - } - }, + "tag": "@example", + "name": "Skip with feature flag", + "content": [ { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "ScenarioResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioResult" - } - } + "kind": "code", + "text": "```ts\nimport { scenario } from \"@probitas-test/builder\";\nimport { Skip } from \"@probitas-test/runner\";\n\nconst def = scenario(\"Beta Feature\")\n .step(\"Check feature flag\", (ctx) => {\n if (!ctx.store.get(\"betaEnabled\")) {\n throw new Skip(\"Beta feature not enabled\");\n }\n })\n .build();\nconsole.log(def.name);\n```" } - ], - "optional": true, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + ] + } + ] + }, + "children": [ + { + "id": 16707, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 16708, + "name": "Skip", + "variant": "signature", + "kind": 16384, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Create a Skip exception." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "kind": "code", + "text": "```ts\nimport { Skip } from \"@probitas-test/runner\";\n\nconst skip1 = new Skip(); // message: \"Skipped\", reason: undefined\nconst skip2 = new Skip(\"Not on Windows\"); // message: \"Not on Windows\", reason: \"Not on Windows\"\nconsole.log(skip1.message, skip2.reason);\n```" } - ], - "typeName": "Promise" - } - } - ] - }, - "typeParams": [] - }, - { - "name": "onStepStart", - "jsDoc": { - "doc": "Called when step starts" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/reporter.ts", - "line": 43, - "col": 2, - "byteIndex": 1149 - }, - "params": [ - { - "kind": "identifier", - "name": "scenario", - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" + ] } - } + ] }, - { - "kind": "identifier", - "name": "step", - "optional": false, - "tsType": { - "repr": "StepMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepMetadata" - } - } - } - ], - "optional": true, - "returnType": { - "repr": "", - "kind": "union", - "union": [ + "parameters": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "id": 16709, + "name": "reason", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ { - "repr": "void", - "kind": "keyword", - "keyword": "void" + "kind": "text", + "text": "Optional explanation for why the scenario was skipped.\n Displayed in test reports alongside the scenario name." } - ], - "typeName": "Promise" + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } } - ] - }, - "typeParams": [] + ], + "type": { + "type": "reference", + "target": 16706, + "name": "Skip", + "package": "@probitas-test/runner" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + }, + { + "id": 16710, + "name": "reason", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "onStepEnd", - "jsDoc": { - "doc": "Called when step completes (passed, failed, or skipped).\n\nThe result contains status-specific information:\n- If status is \"passed\": contains `value` from step execution\n- If status is \"failed\" or \"skipped\": contains `error` information" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/reporter.ts", - "line": 55, - "col": 2, - "byteIndex": 1521 - }, - "params": [ - { - "kind": "identifier", - "name": "scenario", - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" - } - } + "comment": { + "summary": [ + { + "kind": "text", + "text": "Human-readable reason for skipping.\n\nWhen provided, this reason is displayed in test reports.\nIf not provided, defaults to " }, { - "kind": "identifier", - "name": "step", - "optional": false, - "tsType": { - "repr": "StepMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepMetadata" - } - } + "kind": "code", + "text": "`undefined`" }, { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "StepResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepResult" - } - } + "kind": "text", + "text": " (the error message\nwill still show \"Skipped\")." } - ], - "optional": true, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - { - "repr": "Promise", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "void", - "kind": "keyword", - "keyword": "void" - } - ], - "typeName": "Promise" - } - } - ] - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "string" } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] }, { - "name": "RunResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 36, - "col": 0, - "byteIndex": 862 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Summary of all scenario executions in a test run.\n\nProvides aggregate statistics and detailed results for the entire run.\nPassed to {@linkcode Reporter.onRunEnd} after all scenarios complete.\n", - "tags": [ + "id": 16763, + "name": "StepTimeoutError", + "variant": "declaration", + "kind": 128, + "flags": {}, + "comment": { + "summary": [ { - "kind": "example", - "doc": "```ts\nimport type { RunResult } from \"@probitas-test/runner\";\n\nconst summary: RunResult = {\n total: 10,\n passed: 8,\n failed: 1,\n skipped: 1,\n duration: 5432,\n scenarios: []\n};\n\nconsole.log(`${summary.passed}/${summary.total} passed`);\n// → \"8/10 passed\"\n```" + "kind": "text", + "text": "Error thrown when a step execution times out.\n\nContains structured information about the timeout including\nthe step name, timeout duration, retry context, and total elapsed time." } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "total", - "jsDoc": { - "doc": "Total number of scenarios in the run" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 38, - "col": 2, - "byteIndex": 939 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "passed", - "jsDoc": { - "doc": "Number of scenarios that passed" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 41, - "col": 2, - "byteIndex": 1007 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "failed", - "jsDoc": { - "doc": "Number of scenarios that failed" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 44, - "col": 2, - "byteIndex": 1076 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "children": [ + { + "id": 16771, + "name": "constructor", + "variant": "declaration", + "kind": 512, + "flags": {}, + "signatures": [ + { + "id": 16772, + "name": "StepTimeoutError", + "variant": "signature", + "kind": 16384, + "flags": {}, + "parameters": [ + { + "id": 16773, + "name": "stepName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 16774, + "name": "timeoutMs", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16775, + "name": "attemptNumber", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16776, + "name": "elapsedMs", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16777, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2022.error.d.ts", + "qualifiedName": "ErrorOptions" + }, + "name": "ErrorOptions", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": 16763, + "name": "StepTimeoutError", + "package": "@probitas-test/runner" + }, + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + } + ], + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.constructor", + "package": "typescript" + } + }, + { + "id": 16781, + "name": "attemptNumber", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16782, + "name": "elapsedMs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16778, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "StepTimeoutError" + }, + "defaultValue": "\"StepTimeoutError\"", + "overwrites": { + "type": "reference", + "target": -1, + "name": "Error.name" + } + }, + { + "id": 16779, + "name": "stepName", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 16780, + "name": "timeoutMs", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16764, + "name": "timeoutSignal", + "variant": "declaration", + "kind": 2048, + "flags": { + "isStatic": true + }, + "signatures": [ + { + "id": 16765, + "name": "timeoutSignal", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates an AbortSignal that aborts with StepTimeoutError after the specified timeout." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "AbortSignal with Disposable interface for cleanup" + } + ] + } + ] + }, + "parameters": [ + { + "id": 16766, + "name": "timeout", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout duration in milliseconds" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16767, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Step information for the error" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 16768, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 16770, + "name": "attemptNumber", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16769, + "name": "stepName", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.esnext.disposable.d.ts", + "qualifiedName": "Disposable" + }, + "name": "Disposable", + "package": "typescript" + } + ] + } + } + ] + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + ] + }, + { + "id": 16636, + "name": "Reporter", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Reporter interface for receiving test execution events.\n\nAll callbacks receive serializable metadata types (ScenarioMetadata, StepMetadata)\ninstead of definition types, enabling use across process/thread boundaries\n(e.g., Web Workers)." + } + ] + }, + "children": [ + { + "id": 16640, + "name": "onRunEnd", + "variant": "declaration", + "kind": 2048, + "flags": { + "isOptional": true + }, + "signatures": [ + { + "id": 16641, + "name": "onRunEnd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when test run completes" + } + ] + }, + "parameters": [ + { + "id": 16642, + "name": "scenarios", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + } + } + }, + { + "id": 16643, + "name": "result", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 16660, + "name": "RunResult", + "package": "@probitas-test/runner" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + ] + } + } + ] + }, + { + "id": 16637, + "name": "onRunStart", + "variant": "declaration", + "kind": 2048, + "flags": { + "isOptional": true + }, + "signatures": [ + { + "id": 16638, + "name": "onRunStart", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when the test run starts, before any scenarios execute." + } + ] + }, + "parameters": [ + { + "id": 16639, + "name": "scenarios", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + } + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + ] + } + } + ] + }, + { + "id": 16647, + "name": "onScenarioEnd", + "variant": "declaration", + "kind": 2048, + "flags": { + "isOptional": true + }, + "signatures": [ + { + "id": 16648, + "name": "onScenarioEnd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when scenario completes" + } + ] + }, + "parameters": [ + { + "id": 16649, + "name": "scenario", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16650, + "name": "result", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 16683, + "name": "ScenarioResult", + "package": "@probitas-test/runner" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + ] + } + } + ] + }, + { + "id": 16644, + "name": "onScenarioStart", + "variant": "declaration", + "kind": 2048, + "flags": { + "isOptional": true + }, + "signatures": [ + { + "id": 16645, + "name": "onScenarioStart", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when a scenario begins execution." + } + ] + }, + "parameters": [ + { + "id": 16646, + "name": "scenario", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + ] + } + } + ] + }, + { + "id": 16655, + "name": "onStepEnd", + "variant": "declaration", + "kind": 2048, + "flags": { + "isOptional": true + }, + "signatures": [ + { + "id": 16656, + "name": "onStepEnd", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when step completes (passed, failed, or skipped).\n\nThe result contains status-specific information:\n- If status is \"passed\": contains " + }, + { + "kind": "code", + "text": "`value`" + }, + { + "kind": "text", + "text": " from step execution\n- If status is \"failed\" or \"skipped\": contains " + }, + { + "kind": "code", + "text": "`error`" + }, + { + "kind": "text", + "text": " information" + } + ] + }, + "parameters": [ + { + "id": 16657, + "name": "scenario", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16658, + "name": "step", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepMetadata" + }, + "name": "StepMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16659, + "name": "result", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 16695, + "name": "StepResult", + "package": "@probitas-test/runner" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + ] + } + } + ] + }, + { + "id": 16651, + "name": "onStepStart", + "variant": "declaration", + "kind": 2048, + "flags": { + "isOptional": true + }, + "signatures": [ + { + "id": 16652, + "name": "onStepStart", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Called when step starts" + } + ] + }, + "parameters": [ + { + "id": 16653, + "name": "scenario", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16654, + "name": "step", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepMetadata" + }, + "name": "StepMetadata", + "package": "@probitas-test/core" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "void" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + ] + } + } + ] + } + ] + }, + { + "id": 16667, + "name": "RunFilter", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Filter configuration for selecting scenarios to run.\n\nAllows filtering scenarios by tags and/or name pattern.\nBoth conditions must match if both are specified (AND logic)." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Filter by tags", + "content": [ + { + "kind": "code", + "text": "```ts\nconst filter: RunFilter = {\n tags: [\"api\", \"integration\"] // Must have BOTH tags\n};\n```" + } + ] + }, + { + "tag": "@example", + "name": "Filter by name pattern", + "content": [ + { + "kind": "code", + "text": "```ts\nconst filter: RunFilter = {\n pattern: /login/i // Name must contain \"login\"\n};\n```" + } + ] + } + ] + }, + "children": [ + { + "id": 16669, + "name": "pattern", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Pattern to match against scenario name" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + ] + } + }, + { + "id": 16668, + "name": "tags", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Tags that scenarios must have (all must match)" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ] + }, + { + "id": 16670, + "name": "RunOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Configuration options for the scenario runner.\n\nControls execution behavior including concurrency, failure handling,\nand reporting." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Sequential execution with fail-fast", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RunOptions } from \"@probitas-test/runner\";\n\nconst options: RunOptions = {\n maxConcurrency: 1, // Run one at a time\n maxFailures: 1 // Stop after first failure\n};\nconsole.log(options);\n```" + } + ] + }, + { + "tag": "@example", + "name": "Parallel execution with limit", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RunOptions } from \"@probitas-test/runner\";\n\nconst options: RunOptions = {\n maxConcurrency: 4 // Run up to 4 scenarios at once\n};\nconsole.log(options);\n```" + } + ] + }, + { + "tag": "@example", + "name": "With stepOptions", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RunOptions } from \"@probitas-test/runner\";\n\nconst options: RunOptions = {\n stepOptions: {\n timeout: 60000,\n retry: { maxAttempts: 3, backoff: \"exponential\" }\n }\n};\nconsole.log(options);\n```" + } + ] + } + ] + }, + "children": [ + { + "id": 16671, + "name": "maxConcurrency", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum number of scenarios to run in parallel.\n\n- " + }, + { + "kind": "code", + "text": "`undefined`" + }, + { + "kind": "text", + "text": " or " + }, + { + "kind": "code", + "text": "`0`" + }, + { + "kind": "text", + "text": ": Unlimited (all scenarios run in parallel)\n- " + }, + { + "kind": "code", + "text": "`1`" + }, + { + "kind": "text", + "text": ": Sequential execution (one at a time)\n- " + }, + { + "kind": "code", + "text": "`n`" + }, + { + "kind": "text", + "text": ": Run up to n scenarios concurrently" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16672, + "name": "maxFailures", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Maximum number of failures before stopping the run.\n\n- " + }, + { + "kind": "code", + "text": "`undefined`" + }, + { + "kind": "text", + "text": ": Continue all scenarios regardless of failures\n- " + }, + { + "kind": "code", + "text": "`1`" + }, + { + "kind": "text", + "text": ": Fail-fast (stop immediately on first failure)\n- " + }, + { + "kind": "code", + "text": "`n`" + }, + { + "kind": "text", + "text": ": Stop after n failures" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16674, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Abort signal for external cancellation.\n\nWhen aborted, running scenarios complete but no new ones start.\nIf both " + }, + { + "kind": "code", + "text": "`timeout`" + }, + { + "kind": "text", + "text": " and " + }, + { + "kind": "code", + "text": "`signal`" + }, + { + "kind": "text", + "text": " are provided, either one can trigger cancellation." + } + ] }, - { - "name": "skipped", - "jsDoc": { - "doc": "Number of scenarios that were skipped" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 47, - "col": 2, - "byteIndex": 1151 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + } + }, + { + "id": 16675, + "name": "stepOptions", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true }, - { - "name": "duration", - "jsDoc": { - "doc": "Total execution time in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 50, - "col": 2, - "byteIndex": 1226 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Default step options applied when step uses default values.\n\nThese options override builder defaults but are themselves overridden\nby scenario-level or step-level options.\n\nPriority: step options > scenario.stepOptions > config.stepOptions > defaults" + } + ] }, - { - "name": "scenarios", - "jsDoc": { - "doc": "Detailed result for each scenario" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 53, - "col": 2, - "byteIndex": 1299 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ScenarioResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioResult" - } - } - } + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepOptions" + }, + "name": "StepOptions", + "package": "@probitas-test/core" + } + }, + { + "id": 16673, + "name": "timeout", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Timeout for scenario execution in milliseconds.\n\n- " + }, + { + "kind": "code", + "text": "`undefined`" + }, + { + "kind": "text", + "text": ": No timeout (unlimited execution time)\n- " + }, + { + "kind": "code", + "text": "`0`" + }, + { + "kind": "text", + "text": ": No timeout\n- " + }, + { + "kind": "code", + "text": "`n`" + }, + { + "kind": "text", + "text": ": Timeout after n milliseconds\n\nWhen timeout occurs, a " + }, + { + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioTimeoutError", + "target": 16741 + }, + { + "kind": "text", + "text": " is thrown.\nThis is independent from step-level timeouts." } - }, - "typeParams": [] + ] + }, + "type": { + "type": "intrinsic", + "name": "number" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + } + ] }, { - "name": "RunFilter", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 76, - "col": 0, - "byteIndex": 1825 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Filter configuration for selecting scenarios to run.\n\nAllows filtering scenarios by tags and/or name pattern.\nBoth conditions must match if both are specified (AND logic).\n", - "tags": [ + "id": 16660, + "name": "RunResult", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Summary of all scenario executions in a test run.\n\nProvides aggregate statistics and detailed results for the entire run.\nPassed to " + }, { - "kind": "example", - "doc": "Filter by tags\n```ts\nconst filter: RunFilter = {\n tags: [\"api\", \"integration\"] // Must have BOTH tags\n};\n```\n" + "kind": "inline-tag", + "tag": "@linkcode", + "text": "Reporter.onRunEnd", + "target": 16640 }, { - "kind": "example", - "doc": "Filter by name pattern\n```ts\nconst filter: RunFilter = {\n pattern: /login/i // Name must contain \"login\"\n};\n```" + "kind": "text", + "text": " after all scenarios complete." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { RunResult } from \"@probitas-test/runner\";\n\nconst summary: RunResult = {\n total: 10,\n passed: 8,\n failed: 1,\n skipped: 1,\n duration: 5432,\n scenarios: []\n};\n\nconsole.log(`${summary.passed}/${summary.total} passed`);\n// → \"8/10 passed\"\n```" + } + ] } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "tags", - "jsDoc": { - "doc": "Tags that scenarios must have (all must match)" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 78, - "col": 2, - "byteIndex": 1912 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } + "children": [ + { + "id": 16665, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Total execution time in milliseconds" } - }, - "typeParams": [] + ] }, - { - "name": "pattern", - "jsDoc": { - "doc": "Pattern to match against scenario name" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 81, - "col": 2, - "byteIndex": 1998 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - ] - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } + }, + { + "id": 16663, + "name": "failed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of scenarios that failed" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16662, + "name": "passed", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of scenarios that passed" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16666, + "name": "scenarios", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Detailed result for each scenario" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 16683, + "name": "ScenarioResult", + "package": "@probitas-test/runner" + } + } + } + }, + { + "id": 16664, + "name": "skipped", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of scenarios that were skipped" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16661, + "name": "total", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Total number of scenarios in the run" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] }, { - "name": "RunOptions", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 124, - "col": 0, - "byteIndex": 3009 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Configuration options for the scenario runner.\n\nControls execution behavior including concurrency, failure handling,\nand reporting.\n", - "tags": [ + "id": 16676, + "name": "ScenarioContext", + "variant": "declaration", + "kind": 256, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Runtime context for scenario execution.\n\nProvides access to scenario metadata, accumulated results, shared storage,\nand resources during scenario execution. This is the \"live\" counterpart\nto the static " + }, { - "kind": "example", - "doc": "Sequential execution with fail-fast\n```ts\nimport type { RunOptions } from \"@probitas-test/runner\";\n\nconst options: RunOptions = {\n maxConcurrency: 1, // Run one at a time\n maxFailures: 1 // Stop after first failure\n};\nconsole.log(options);\n```\n" + "kind": "inline-tag", + "tag": "@linkcode", + "text": "ScenarioDefinition" }, { - "kind": "example", - "doc": "Parallel execution with limit\n```ts\nimport type { RunOptions } from \"@probitas-test/runner\";\n\nconst options: RunOptions = {\n maxConcurrency: 4 // Run up to 4 scenarios at once\n};\nconsole.log(options);\n```\n" + "kind": "text", + "text": "." + } + ], + "blockTags": [ + { + "tag": "@typeParam", + "name": "Resources", + "content": [ + { + "kind": "text", + "text": "Record of available resource types" + } + ] }, { - "kind": "example", - "doc": "With stepOptions\n```ts\nimport type { RunOptions } from \"@probitas-test/runner\";\n\nconst options: RunOptions = {\n stepOptions: {\n timeout: 60000,\n retry: { maxAttempts: 3, backoff: \"exponential\" }\n }\n};\nconsole.log(options);\n```" + "tag": "@example", + "name": "ScenarioContext structure", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ScenarioContext } from \"@probitas-test/runner\";\n\n// ScenarioContext is created by the runner for each scenario execution\nconst ctx: ScenarioContext = {\n name: \"My Test\",\n tags: [\"api\", \"integration\"],\n results: [],\n store: new Map(),\n resources: {},\n signal: undefined,\n};\nconsole.log(`Running: ${ctx.name}`);\nconsole.log(`Tags: ${ctx.tags.join(\", \")}`);\nconsole.log(`Previous results: ${ctx.results.length}`);\n```" + } + ] } ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ - { - "name": "maxConcurrency", - "jsDoc": { - "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.5.7/types/run.ts", - "line": 132, - "col": 2, - "byteIndex": 3276 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "children": [ + { + "id": 16677, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Human-readable scenario name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 16681, + "name": "resources", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Named resources registered with " + }, + { + "kind": "code", + "text": "`.resource()`" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 16679, + "name": "results", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array of all exec step results so far" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + }, + { + "id": 16682, + "name": "signal", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Abort signal (fires on timeout or manual cancellation)" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.dom.d.ts", + "qualifiedName": "AbortSignal" + }, + "name": "AbortSignal", + "package": "typescript" + } + }, + { + "id": 16680, + "name": "store", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Shared key-value storage for cross-step communication" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "typescript", + "packagePath": "lib/lib.es2015.collection.d.ts", + "qualifiedName": "Map" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Map", + "package": "typescript" + } + }, + { + "id": 16678, + "name": "tags", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ] + }, + { + "id": 16683, + "name": "ScenarioResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "name": "maxFailures", - "jsDoc": { - "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.5.7/types/run.ts", - "line": 141, - "col": 2, - "byteIndex": 3545 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "text", + "text": "Result from executing a complete scenario.\n\nContains the overall scenario status, timing, all step results,\nand any error or skip reason. Passed to reporters and included\nin the final " }, { - "name": "timeout", - "jsDoc": { - "doc": "Timeout for scenario execution in milliseconds.\n\n- `undefined`: No timeout (unlimited execution time)\n- `0`: No timeout\n- `n`: Timeout after n milliseconds\n\nWhen timeout occurs, a {@linkcode ScenarioTimeoutError} is thrown.\nThis is independent from step-level timeouts." - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 153, - "col": 2, - "byteIndex": 3899 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "kind": "inline-tag", + "tag": "@linkcode", + "text": "RunResult", + "target": 16660 }, { - "name": "signal", - "jsDoc": { - "doc": "Abort signal for external cancellation.\n\nWhen aborted, running scenarios complete but no new ones start.\nIf both `timeout` and `signal` are provided, either one can trigger cancellation." - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 161, - "col": 2, - "byteIndex": 4147 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "AbortSignal", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortSignal" + "kind": "text", + "text": "." + } + ], + "blockTags": [ + { + "tag": "@example", + "name": "Passed scenario", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ScenarioResult } from \"@probitas-test/runner\";\n\nconst result: ScenarioResult = {\n metadata: { name: \"Login Flow\", tags: [], steps: [], origin: { path: \"\", line: 0 } },\n status: \"passed\",\n duration: 1250,\n steps: [{ metadata: { kind: \"step\", name: \"step1\", timeout: 30000, retry: { maxAttempts: 1, backoff: \"linear\" } }, status: \"passed\", value: null, duration: 100 }]\n};\nconsole.log(result);\n```" } - }, - "typeParams": [] + ] }, { - "name": "stepOptions", - "jsDoc": { - "doc": "Default step options applied when step uses default values.\n\nThese options override builder defaults but are themselves overridden\nby scenario-level or step-level options.\n\nPriority: step options > scenario.stepOptions > config.stepOptions > defaults" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/run.ts", - "line": 171, - "col": 2, - "byteIndex": 4472 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "StepOptions", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepOptions" + "tag": "@example", + "name": "Skipped scenario", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { ScenarioResult } from \"@probitas-test/runner\";\n\nconst result: ScenarioResult = {\n metadata: { name: \"Premium Feature\", tags: [], steps: [], origin: { path: \"\", line: 0 } },\n status: \"skipped\",\n duration: 5,\n steps: [],\n error: \"Feature flag not enabled\"\n};\nconsole.log(result);\n```" } - }, - "typeParams": [] + ] + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 16684, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 16687, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Total execution time in milliseconds (including setup/teardown)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16686, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Scenario metadata (serializable, without functions)" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16685, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "type": { + "type": "literal", + "value": "passed" + } + }, + { + "id": 16688, + "name": "steps", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Results from each executed step" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 16695, + "name": "StepResult", + "package": "@probitas-test/runner" + } + } + } + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 16689, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 16692, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Total execution time in milliseconds (including setup/teardown)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16694, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error if failed during resource/setup/teardown (not step errors)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + }, + { + "id": 16691, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Scenario metadata (serializable, without functions)" + } + ] + }, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16690, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Overall execution outcome" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "failed" + }, + { + "type": "literal", + "value": "skipped" + } + ] + } + }, + { + "id": 16693, + "name": "steps", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Results from each executed step" + } + ] + }, + "type": { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 16695, + "name": "StepResult", + "package": "@probitas-test/runner" + } + } + } + } + ] + } } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "ScenarioContext", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 40, - "col": 0, - "byteIndex": 1173 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Runtime context for scenario execution.\n\nProvides access to scenario metadata, accumulated results, shared storage,\nand resources during scenario execution. This is the \"live\" counterpart\nto the static {@linkcode ScenarioDefinition}.\n", - "tags": [ + "id": 16695, + "name": "StepResult", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "comment": { + "summary": [ { - "kind": "template", - "name": "Resources", - "doc": "- Record of available resource types\n" + "kind": "text", + "text": "Result from executing a single step.\n\nStepResult is a discriminated union type - the fields available depend on\nthe status:\n- \"passed\": Contains " }, { - "kind": "example", - "doc": "ScenarioContext structure\n```ts\nimport type { ScenarioContext } from \"@probitas-test/runner\";\n\n// ScenarioContext is created by the runner for each scenario execution\nconst ctx: ScenarioContext = {\n name: \"My Test\",\n tags: [\"api\", \"integration\"],\n results: [],\n store: new Map(),\n resources: {},\n signal: undefined,\n};\nconsole.log(`Running: ${ctx.name}`);\nconsole.log(`Tags: ${ctx.tags.join(\", \")}`);\nconsole.log(`Previous results: ${ctx.results.length}`);\n```" - } - ] - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [], - "properties": [ + "kind": "code", + "text": "`value`" + }, { - "name": "name", - "jsDoc": { - "doc": "Human-readable scenario name" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 42, - "col": 2, - "byteIndex": 1248 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] + "kind": "text", + "text": " (return value from step function)\n- \"failed\": Contains " }, { - "name": "tags", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 44, - "col": 2, - "byteIndex": 1274 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - } - }, - "typeParams": [] + "kind": "code", + "text": "`error`" }, { - "name": "results", - "jsDoc": { - "doc": "Array of all exec step results so far" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 47, - "col": 2, - "byteIndex": 1358 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - }, - "typeParams": [] + "kind": "text", + "text": " (exception that was thrown)\n- \"skipped\": Contains " }, { - "name": "store", - "jsDoc": { - "doc": "Shared key-value storage for cross-step communication" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 50, - "col": 2, - "byteIndex": 1453 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Map", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Map" - } - }, - "typeParams": [] + "kind": "code", + "text": "`error`" }, { - "name": "resources", - "jsDoc": { - "doc": "Named resources registered with `.resource()`" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 53, - "col": 2, - "byteIndex": 1549 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - "typeParams": [] + "kind": "text", + "text": " (skip reason)\n\nThis type design ensures type-safe field access. Reporters should check\n" }, { - "name": "signal", - "jsDoc": { - "doc": "Abort signal (fires on timeout or manual cancellation)" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 56, - "col": 2, - "byteIndex": 1661 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "AbortSignal", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "AbortSignal" - } - }, - "typeParams": [] + "kind": "code", + "text": "`result.status`" + }, + { + "kind": "text", + "text": " to safely access status-specific fields." } ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "ScenarioResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 93, - "col": 0, - "byteIndex": 2781 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result from executing a complete scenario.\n\nContains the overall scenario status, timing, all step results,\nand any error or skip reason. Passed to reporters and included\nin the final {@linkcode RunResult}.\n", - "tags": [ + "blockTags": [ + { + "tag": "@example", + "name": "Passed step result", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { StepResult } from \"@probitas-test/runner\";\nimport type { StepMetadata } from \"@probitas-test/core\";\n\nconst metadata: StepMetadata = { kind: \"step\", name: \"Create user\", timeout: 30000, retry: { maxAttempts: 1, backoff: \"linear\" } };\nconst result: StepResult = {\n metadata,\n status: \"passed\",\n duration: 150,\n value: { userId: \"123\" }\n};\nconsole.log(result);\n```" + } + ] + }, { - "kind": "example", - "doc": "Passed scenario\n```ts\nimport type { ScenarioResult } from \"@probitas-test/runner\";\n\nconst result: ScenarioResult = {\n metadata: { name: \"Login Flow\", tags: [], steps: [], origin: { path: \"\", line: 0 } },\n status: \"passed\",\n duration: 1250,\n steps: [{ metadata: { kind: \"step\", name: \"step1\", timeout: 30000, retry: { maxAttempts: 1, backoff: \"linear\" } }, status: \"passed\", value: null, duration: 100 }]\n};\nconsole.log(result);\n```\n" + "tag": "@example", + "name": "Failed step result", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { StepResult } from \"@probitas-test/runner\";\nimport type { StepMetadata } from \"@probitas-test/core\";\n\nconst metadata: StepMetadata = { kind: \"step\", name: \"Validate input\", timeout: 30000, retry: { maxAttempts: 1, backoff: \"linear\" } };\nconst result: StepResult = {\n metadata,\n status: \"failed\",\n duration: 50,\n error: new Error(\"Invalid email format\")\n};\nconsole.log(result);\n```" + } + ] }, { - "kind": "example", - "doc": "Skipped scenario\n```ts\nimport type { ScenarioResult } from \"@probitas-test/runner\";\n\nconst result: ScenarioResult = {\n metadata: { name: \"Premium Feature\", tags: [], steps: [], origin: { path: \"\", line: 0 } },\n status: \"skipped\",\n duration: 5,\n steps: [],\n error: \"Feature flag not enabled\"\n};\nconsole.log(result);\n```" + "tag": "@example", + "name": "Skipped step result", + "content": [ + { + "kind": "code", + "text": "```ts\nimport type { StepResult } from \"@probitas-test/runner\";\nimport type { StepMetadata } from \"@probitas-test/core\";\n\nconst metadata: StepMetadata = { kind: \"step\", name: \"Optional step\", timeout: 30000, retry: { maxAttempts: 1, backoff: \"linear\" } };\nconst result: StepResult = {\n metadata,\n status: \"skipped\",\n duration: 0,\n error: \"Prerequisite not met\"\n};\nconsole.log(result);\n```" + } + ] } ] }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 94, - "col": 2, - "byteIndex": 2814 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "passed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "passed" - } - }, - "typeParams": [] + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 16696, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 16699, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "metadata", - "jsDoc": { - "doc": "Scenario metadata (serializable, without functions)" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 97, - "col": 2, - "byteIndex": 2905 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execution time in milliseconds" } - }, - "typeParams": [] - }, - { - "name": "duration", - "jsDoc": { - "doc": "Total execution time in milliseconds (including setup/teardown)" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 100, - "col": 2, - "byteIndex": 3018 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + ] }, - { - "name": "steps", - "jsDoc": { - "doc": "Results from each executed step" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 103, - "col": 2, - "byteIndex": 3089 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "StepResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepResult" - } - } - } - } - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" } - ], - "callSignatures": [], - "indexSignatures": [] - } - }, - { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "status", - "jsDoc": { - "doc": "Overall execution outcome" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 106, - "col": 2, - "byteIndex": 3171 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "failed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "failed" - } - }, - { - "repr": "skipped", - "kind": "literal", - "literal": { - "kind": "string", - "string": "skipped" - } - } - ] - }, - "typeParams": [] + }, + { + "id": 16698, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "metadata", - "jsDoc": { - "doc": "Scenario metadata (serializable, without functions)" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 109, - "col": 2, - "byteIndex": 3274 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ScenarioMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ScenarioMetadata" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Step metadata (serializable, without function)" } - }, - "typeParams": [] + ] }, - { - "name": "duration", - "jsDoc": { - "doc": "Total execution time in milliseconds (including setup/teardown)" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 112, - "col": 2, - "byteIndex": 3387 + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepMetadata" }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "name": "StepMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16697, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "steps", - "jsDoc": { - "doc": "Results from each executed step" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 115, - "col": 2, - "byteIndex": 3458 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "StepResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepResult" - } - } - } + "type": { + "type": "literal", + "value": "passed" + } + }, + { + "id": 16700, + "name": "value", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Return value from step function (only if status is \"passed\")" } - }, - "typeParams": [] + ] }, - { - "name": "error", - "jsDoc": { - "doc": "Error if failed during resource/setup/teardown (not step errors)" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/scenario.ts", - "line": 118, - "col": 2, - "byteIndex": 3574 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "unknown" } - ], - "callSignatures": [], - "indexSignatures": [] - } + } + ] } - ] - }, - "typeParams": [] - } - }, - { - "name": "StepResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/step.ts", - "line": 69, - "col": 0, - "byteIndex": 2128 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Result from executing a single step.\n\nStepResult is a discriminated union type - the fields available depend on\nthe status:\n- \"passed\": Contains `value` (return value from step function)\n- \"failed\": Contains `error` (exception that was thrown)\n- \"skipped\": Contains `error` (skip reason)\n\nThis type design ensures type-safe field access. Reporters should check\n`result.status` to safely access status-specific fields.\n", - "tags": [ - { - "kind": "example", - "doc": "Passed step result\n```ts\nimport type { StepResult } from \"@probitas-test/runner\";\nimport type { StepMetadata } from \"@probitas-test/core\";\n\nconst metadata: StepMetadata = { kind: \"step\", name: \"Create user\", timeout: 30000, retry: { maxAttempts: 1, backoff: \"linear\" } };\nconst result: StepResult = {\n metadata,\n status: \"passed\",\n duration: 150,\n value: { userId: \"123\" }\n};\nconsole.log(result);\n```\n" - }, - { - "kind": "example", - "doc": "Failed step result\n```ts\nimport type { StepResult } from \"@probitas-test/runner\";\nimport type { StepMetadata } from \"@probitas-test/core\";\n\nconst metadata: StepMetadata = { kind: \"step\", name: \"Validate input\", timeout: 30000, retry: { maxAttempts: 1, backoff: \"linear\" } };\nconst result: StepResult = {\n metadata,\n status: \"failed\",\n duration: 50,\n error: new Error(\"Invalid email format\")\n};\nconsole.log(result);\n```\n" }, { - "kind": "example", - "doc": "Skipped step result\n```ts\nimport type { StepResult } from \"@probitas-test/runner\";\nimport type { StepMetadata } from \"@probitas-test/core\";\n\nconst metadata: StepMetadata = { kind: \"step\", name: \"Optional step\", timeout: 30000, retry: { maxAttempts: 1, backoff: \"linear\" } };\nconst result: StepResult = {\n metadata,\n status: \"skipped\",\n duration: 0,\n error: \"Prerequisite not met\"\n};\nconsole.log(result);\n```" - } - ] - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/step.ts", - "line": 70, - "col": 2, - "byteIndex": 2157 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "passed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "passed" - } - }, - "typeParams": [] + "type": "reflection", + "declaration": { + "id": 16701, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 16704, + "name": "duration", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "metadata", - "jsDoc": { - "doc": "Step metadata (serializable, without function)" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/step.ts", - "line": 73, - "col": 2, - "byteIndex": 2243 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "StepMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepMetadata" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Execution time in milliseconds" } - }, - "typeParams": [] + ] }, - { - "name": "duration", - "jsDoc": { - "doc": "Execution time in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/step.ts", - "line": 76, - "col": 2, - "byteIndex": 2319 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 16705, + "name": "error", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "value", - "jsDoc": { - "doc": "Return value from step function (only if status is \"passed\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/step.ts", - "line": 79, - "col": 2, - "byteIndex": 2419 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] + "comment": { + "summary": [ + { + "kind": "text", + "text": "Error that caused failure (only if status is \"failed\")" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" } - ], - "callSignatures": [], - "indexSignatures": [] - } - }, - { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "status", - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/step.ts", - "line": 81, - "col": 2, - "byteIndex": 2452 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "failed", - "kind": "literal", - "literal": { - "kind": "string", - "string": "failed" - } - }, - { - "repr": "skipped", - "kind": "literal", - "literal": { - "kind": "string", - "string": "skipped" - } - } - ] - }, - "typeParams": [] + }, + { + "id": 16703, + "name": "metadata", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "metadata", - "jsDoc": { - "doc": "Step metadata (serializable, without function)" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/step.ts", - "line": 84, - "col": 2, - "byteIndex": 2550 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "StepMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "StepMetadata" + "comment": { + "summary": [ + { + "kind": "text", + "text": "Step metadata (serializable, without function)" } - }, - "typeParams": [] + ] }, - { - "name": "duration", - "jsDoc": { - "doc": "Execution time in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/step.ts", - "line": 87, - "col": 2, - "byteIndex": 2626 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepMetadata" }, - "typeParams": [] + "name": "StepMetadata", + "package": "@probitas-test/core" + } + }, + { + "id": 16702, + "name": "status", + "variant": "declaration", + "kind": 1024, + "flags": { + "isReadonly": true }, - { - "name": "error", - "jsDoc": { - "doc": "Error that caused failure (only if status is \"failed\")" - }, - "location": { - "filename": "https://jsr.io/@probitas/runner/0.5.7/types/step.ts", - "line": 90, - "col": 2, - "byteIndex": 2720 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "failed" + }, + { + "type": "literal", + "value": "skipped" + } + ] } - ], - "callSignatures": [], - "indexSignatures": [] - } + } + ] } - ] - }, - "typeParams": [] + } + ] } + }, + { + "id": 16735, + "name": "toScenarioMetadata", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 16736, + "name": "toScenarioMetadata", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert ScenarioDefinition to serializable ScenarioMetadata\n\nRemoves the " + }, + { + "kind": "code", + "text": "`fn`" + }, + { + "kind": "text", + "text": " property from each step to make the result JSON-serializable." + } + ] + }, + "parameters": [ + { + "id": 16737, + "name": "scenario", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioDefinition" + }, + "name": "ScenarioDefinition", + "package": "@probitas-test/core" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/scenario.d.ts", + "qualifiedName": "ScenarioMetadata" + }, + "name": "ScenarioMetadata", + "package": "@probitas-test/core" + } + } + ] + }, + { + "id": 16738, + "name": "toStepMetadata", + "variant": "declaration", + "kind": 64, + "flags": {}, + "signatures": [ + { + "id": 16739, + "name": "toStepMetadata", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert StepDefinition to serializable StepMetadata\n\nRemoves the " + }, + { + "kind": "code", + "text": "`fn`" + }, + { + "kind": "text", + "text": " property to make the result JSON-serializable." + } + ] + }, + "parameters": [ + { + "id": 16740, + "name": "step", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepDefinition" + }, + "name": "StepDefinition", + "package": "@probitas-test/core" + } + } + ], + "type": { + "type": "reference", + "target": { + "packageName": "@probitas-test/core", + "packagePath": "dist/types/step.d.ts", + "qualifiedName": "StepMetadata" + }, + "name": "StepMetadata", + "package": "@probitas-test/core" + } + } + ] } - ] + ], + "packageName": "@probitas-test/runner", + "packageVersion": "0.5.8" } diff --git a/flake.nix b/flake.nix index 79b8c0d..8a2b994 100644 --- a/flake.nix +++ b/flake.nix @@ -17,14 +17,10 @@ in { devShells.default = pkgs.mkShell { packages = with pkgs; [ - deno + nodejs pagefind probitas ]; - - shellHook = '' - export DENO_NO_UPDATE_CHECK=1 - ''; }; }); } diff --git a/package-lock.json b/package-lock.json index fcd0e82..8c2c5a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@tabler/icons": "^3.31.0", "@types/node": "^22.0.0", "pagefind": "^1.3.0", + "typedoc": "^0.28.20", "typescript": "^5.7.0", "vite": "^6.0.0" } @@ -612,6 +613,20 @@ "node": ">=18" } }, + "node_modules/@gerrit0/mini-shiki": { + "version": "3.23.0", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.23.0.tgz", + "integrity": "sha512-bEMORlG0cqdjVyCEuU0cDQbORWX+kYCeo0kV1lbxF5bt4r7SID2l9bqsxJEM0zndaxpOUT7riCyIVEuqq/Ynxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/engine-oniguruma": "^3.23.0", + "@shikijs/langs": "^3.23.0", + "@shikijs/themes": "^3.23.0", + "@shikijs/types": "^3.23.0", + "@shikijs/vscode-textmate": "^10.0.2" + } + }, "node_modules/@hono/node-server": { "version": "1.19.8", "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.8.tgz", @@ -1134,6 +1149,55 @@ "win32" ] }, + "node_modules/@shikijs/engine-oniguruma": { + "version": "3.23.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.23.0.tgz", + "integrity": "sha512-1nWINwKXxKKLqPibT5f4pAFLej9oZzQTsby8942OTlsJzOBZ0MWKiwzMsd+jhzu8YPCHAswGnnN1YtQfirL35g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "3.23.0", + "@shikijs/vscode-textmate": "^10.0.2" + } + }, + "node_modules/@shikijs/langs": { + "version": "3.23.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.23.0.tgz", + "integrity": "sha512-2Ep4W3Re5aB1/62RSYQInK9mM3HsLeB91cHqznAJMuylqjzNVAVCMnNWRHFtcNHXsoNRayP9z1qj4Sq3nMqYXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "3.23.0" + } + }, + "node_modules/@shikijs/themes": { + "version": "3.23.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.23.0.tgz", + "integrity": "sha512-5qySYa1ZgAT18HR/ypENL9cUSGOeI2x+4IvYJu4JgVJdizn6kG4ia5Q1jDEOi7gTbN4RbuYtmHh0W3eccOrjMA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "3.23.0" + } + }, + "node_modules/@shikijs/types": { + "version": "3.23.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.23.0.tgz", + "integrity": "sha512-3JZ5HXOZfYjsYSk0yPwBrkupyYSLpAE26Qc0HLghhZNGTZg/SKxXIIgoxOpmmeQP0RRSDJTk1/vPfw9tbw+jSQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4" + } + }, + "node_modules/@shikijs/vscode-textmate": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz", + "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", + "dev": true, + "license": "MIT" + }, "node_modules/@tabler/icons": { "version": "3.36.1", "resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-3.36.1.tgz", @@ -1152,17 +1216,33 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/hast": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz", + "integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, "node_modules/@types/node": { "version": "22.19.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.5.tgz", "integrity": "sha512-HfF8+mYcHPcPypui3w3mvzuIErlNOh2OAG+BCeBZCEwyiD5ls2SiCwEyT47OELtf7M3nHxBdu0FsmzdKxkN52Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~6.21.0" } }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true, + "license": "MIT" + }, "node_modules/@typescript-eslint/project-service": { "version": "8.52.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.52.0.tgz", @@ -1369,6 +1449,13 @@ "integrity": "sha512-7Z6/y3uFI5PRoKeorTOSXKcDj0MSasfNNltcslbFrPpcw6aXRUALq4IfJlaTRspiWIUOEZbrpM+iQGmCOiWe4A==", "license": "MIT" }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, "node_modules/ast-module-types": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/ast-module-types/-/ast-module-types-6.0.1.tgz", @@ -1755,7 +1842,6 @@ "resolved": "https://registry.npmjs.org/hono/-/hono-4.11.3.tgz", "integrity": "sha512-PmQi306+M/ct/m5s66Hrg+adPnkD5jiO6IjA7WhWw0gSBSo1EcRegwuI1deZ+wd5pzCGynCcn2DprnE4/yEV4w==", "license": "MIT", - "peer": true, "engines": { "node": ">=16.9.0" } @@ -1826,6 +1912,33 @@ "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", "license": "MIT" }, + "node_modules/linkify-it": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz", + "integrity": "sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/markdown-it" + } + ], + "license": "MIT", + "dependencies": { + "uc.micro": "^2.0.0" + } + }, + "node_modules/lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true, + "license": "MIT" + }, "node_modules/magic-string": { "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", @@ -1835,6 +1948,47 @@ "@jridgewell/sourcemap-codec": "^1.5.5" } }, + "node_modules/markdown-it": { + "version": "14.3.2", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.2.tgz", + "integrity": "sha512-sHHjZ5fJKlgrG4qns2YwVcdNep35h5fERrfkD2YNsb9UFk0UIHarbiTaHKVMlPuWAoiilyK8Fv/jAm11slsY7Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/markdown-it" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1", + "entities": "^4.5.0", + "linkify-it": "^5.0.2", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" + } + }, + "node_modules/markdown-it/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, "node_modules/marked": { "version": "17.0.1", "resolved": "https://registry.npmjs.org/marked/-/marked-17.0.1.tgz", @@ -1847,6 +2001,13 @@ "node": ">= 20" } }, + "node_modules/mdurl": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.1.0.tgz", + "integrity": "sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==", + "dev": true, + "license": "MIT" + }, "node_modules/minimatch": { "version": "9.0.5", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", @@ -1980,7 +2141,6 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -2007,7 +2167,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", @@ -2063,6 +2222,16 @@ "node": ">=18" } }, + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/quote-unquote": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/quote-unquote/-/quote-unquote-1.0.0.tgz", @@ -2182,12 +2351,74 @@ "typescript": ">=4.8.4" } }, + "node_modules/typedoc": { + "version": "0.28.20", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.20.tgz", + "integrity": "sha512-uSKqkh8Cr48vllnEy+jdaAgOeR6Y+QCBW7usgUsKj7gJEfR7stw9U/fE49LBnj2tPRKPY0c0EBJSWe9Appmplg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@gerrit0/mini-shiki": "^3.23.0", + "lunr": "^2.3.9", + "markdown-it": "^14.3.0", + "minimatch": "^10.2.5", + "yaml": "^2.9.0" + }, + "bin": { + "typedoc": "bin/typedoc" + }, + "engines": { + "node": ">= 18", + "pnpm": ">= 10" + }, + "peerDependencies": { + "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x || 5.9.x || 6.0.x" + } + }, + "node_modules/typedoc/node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/typedoc/node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/typedoc/node_modules/minimatch": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.8" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/typescript": { "version": "5.9.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -2196,6 +2427,13 @@ "node": ">=14.17" } }, + "node_modules/uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "dev": true, + "license": "MIT" + }, "node_modules/undici-types": { "version": "6.21.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", @@ -2277,6 +2515,22 @@ "optional": true } } + }, + "node_modules/yaml": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", + "dev": true, + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } } } } diff --git a/package.json b/package.json index 89df908..544209b 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "build": "vite build --mode client && vite build && npm run build:post", "build:post": "node scripts/post-build.js", "preview": "vite preview", - "generate-api": "deno run -A scripts/generate-api-docs.ts" + "test": "node --test 'tests/**/*_test.ts'", + "generate-api": "node scripts/generate-api-docs.ts" }, "dependencies": { "hono": "^4.7.0", @@ -19,6 +20,7 @@ "@tabler/icons": "^3.31.0", "@types/node": "^22.0.0", "pagefind": "^1.3.0", + "typedoc": "^0.28.20", "typescript": "^5.7.0", "vite": "^6.0.0" } diff --git a/public/content.css b/public/content.css index 2a10ead..be334ce 100644 --- a/public/content.css +++ b/public/content.css @@ -552,6 +552,7 @@ color: var(--text-muted); } +.npm-link, .jsr-link { display: flex; align-items: center; @@ -560,6 +561,7 @@ color: var(--accent-light); } +.npm-link i, .jsr-link i { font-size: 0.9rem; } @@ -1854,6 +1856,7 @@ padding: 0.2rem 0.5rem; } + .npm-link, .jsr-link { font-size: 0.75rem; } diff --git a/scripts/build.ts b/scripts/build.ts deleted file mode 100644 index 586680c..0000000 --- a/scripts/build.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Static Site Generation build script - * Uses Hono's official SSG helper - */ -import { defaultExtensionMap } from "hono/ssg"; -import { toSSG } from "hono/deno"; -import app from "../main.ts"; - -// Clean dist directory -try { - await Deno.remove("./dist", { recursive: true }); -} catch { - // Directory may not exist -} - -console.log("🏗️ Building static site..."); - -const result = await toSSG(app, { - dir: "./dist", - extensionMap: { - "application/json": "json", - "text/markdown": "md", - ...defaultExtensionMap, - }, -}); - -if (!result.success) { - console.error("❌ Build failed:", result.error); - Deno.exit(1); -} - -console.log(`✅ Generated ${result.files.length} files`); -for (const file of result.files) { - console.log(` ${file}`); -} - -// Post-process: Rename llms.txt.md to llms.txt -try { - await Deno.rename("./dist/llms.txt.md", "./dist/llms.txt"); - console.log("📝 Renamed llms.txt.md → llms.txt"); -} catch { - // File may not exist -} - -// Copy static assets -console.log("\n📦 Copying static assets..."); -await Deno.mkdir("./dist/static", { recursive: true }); - -for await (const entry of Deno.readDir("./static")) { - if (entry.isFile && entry.name !== ".DS_Store") { - await Deno.copyFile( - `./static/${entry.name}`, - `./dist/static/${entry.name}`, - ); - console.log(` static/${entry.name}`); - } -} - -// Generate search index with Pagefind -console.log("\n🔍 Generating search index..."); -const pagefindCmd = new Deno.Command("pagefind", { - args: ["--site", "dist"], - stdout: "inherit", - stderr: "inherit", -}); -const pagefindResult = await pagefindCmd.output(); -if (!pagefindResult.success) { - console.error("❌ Pagefind indexing failed"); - Deno.exit(1); -} - -console.log("\n🎉 Build complete!"); diff --git a/scripts/generate-api-docs.ts b/scripts/generate-api-docs.ts index fef46c3..a03b6d8 100644 --- a/scripts/generate-api-docs.ts +++ b/scripts/generate-api-docs.ts @@ -1,281 +1,258 @@ -#!/usr/bin/env -S deno run --allow-run --allow-write --allow-read --allow-net /** - * Generate API documentation from @probitas/* packages + * Generate API documentation from the @probitas-test/* npm packages * - * This script fetches the list of @probitas packages from JSR, - * runs `deno doc --json` for each package, and saves the output - * to data/api/ for use by the documentation site. + * This script lists the packages of the probitas-test npm organization, + * installs their latest versions into a temporary directory, runs TypeDoc + * on each package's entry point, and saves the resulting TypeDoc JSON to + * data/api/ for use by the documentation site. * * Usage: npm run generate-api */ -import type { - ApiDocsIndex, - DenoDocOutput, - DocNode, - ExportCounts, - PackageDoc, - PackageInfo, +import { execFile } from "node:child_process"; +import { cp, mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { promisify } from "node:util"; +import { + Application, + type JSONOutput, + LogLevel, + normalizePath, +} from "typedoc"; +import { + type ApiDocsIndex, + countExports, + isDocumentedExport, + type PackageInfo, + ReflectionKind, } from "../app/lib/api-docs.ts"; -const API_DIR = new URL("../data/api/", import.meta.url); +const API_DIR = fileURLToPath(new URL("../data/api/", import.meta.url)); +const SCOPE = "@probitas-test"; +const REGISTRY = "https://registry.npmjs.org"; -// Packages to exclude from API documentation. `client-deno-kv` and `scenario` -// stay listed on JSR but are no longer part of Probitas. -const EXCLUDED_PACKAGES = new Set(["cli", "client-deno-kv", "scenario"]); - -interface JsrPackage { - scope: string; +interface NpmPackage { + /** Package name without the scope (e.g., "client-http") */ name: string; - latestVersion: string; + version: string; } /** - * Fetch all @probitas packages from JSR API + * List the packages of the npm organization with their latest versions */ -async function fetchPackages(): Promise { - console.log("Fetching package list from JSR..."); - - const response = await fetch( - "https://jsr.io/api/scopes/probitas/packages", - ); +async function fetchPackages(): Promise { + console.log(`Fetching package list for ${SCOPE} from npm...`); + const response = await fetch(`${REGISTRY}/-/org/probitas-test/package`); if (!response.ok) { throw new Error(`Failed to fetch packages: ${response.status}`); } - - const data = await response.json(); - return data.items.map((item: JsrPackage) => ({ - scope: item.scope, - name: item.name, - latestVersion: item.latestVersion, - })); + const names = Object.keys(await response.json()) + .filter((name) => name.startsWith(`${SCOPE}/`)) + .map((name) => name.slice(SCOPE.length + 1)) + .sort(); + + const packages: NpmPackage[] = []; + for (const name of names) { + const latest = await fetch(`${REGISTRY}/${SCOPE}/${name}/latest`); + if (!latest.ok) { + throw new Error(`Failed to resolve ${SCOPE}/${name}: ${latest.status}`); + } + const { version } = await latest.json() as { version: string }; + packages.push({ name, version }); + } + return packages; } /** - * Run deno doc --json for a package + * Install the packages into a fresh directory so TypeDoc sees exactly the + * published files */ -async function getPackageDoc( - specifier: string, -): Promise { - const command = new Deno.Command("deno", { - args: ["doc", "--no-lock", "--json", specifier], - stdout: "piped", - stderr: "piped", - env: { - ...Deno.env.toObject(), - NO_COLOR: "1", - }, - }); - - const { code, stdout, stderr } = await command.output(); - - if (code !== 0) { - const errorText = new TextDecoder().decode(stderr); - console.error(` Failed to get docs for ${specifier}: ${errorText}`); - return null; - } - - const text = new TextDecoder().decode(stdout); - const output = JSON.parse(text); - // The site renders the version 1 schema (a flat `nodes` array). Newer Deno - // releases emit version 2, which nests symbols per module. - if (output.version !== 1 || !Array.isArray(output.nodes)) { - throw new Error( - `deno doc emitted JSON schema version ${output.version}; this script ` + - "needs version 1 (put Deno 2.6 first on PATH)", - ); - } - return output; +async function installPackages( + workDir: string, + packages: NpmPackage[], +): Promise { + console.log("Installing packages..."); + await writeFile( + path.join(workDir, "package.json"), + JSON.stringify({ private: true }), + ); + await promisify(execFile)( + "npm", + [ + "install", + "--ignore-scripts", + "--no-audit", + "--no-fund", + ...packages.map((pkg) => `${SCOPE}/${pkg.name}@${pkg.version}`), + ], + { cwd: workDir }, + ); } /** - * Extract module-level documentation + * Resolve the TypeScript source a package exposes as its main entry point + * + * The packages publish their sources next to the compiled output and point + * the `bun` condition at them; the sources carry the module documentation + * that the declaration files drop. */ -function extractModuleDoc(nodes: DocNode[]): string | undefined { - const moduleDoc = nodes.find((n) => n.kind === "moduleDoc"); - return moduleDoc?.jsDoc?.doc; +async function resolveEntryPoint(packageDir: string): Promise { + const manifest = JSON.parse( + await readFile(path.join(packageDir, "package.json"), "utf-8"), + ); + const main = manifest.exports?.["."]; + const entry = typeof main === "string" ? main : main?.bun ?? main?.types; + if (!entry) { + throw new Error(`${manifest.name} has no main entry point`); + } + return path.join(packageDir, entry); } /** - * Filter and process exports + * Run TypeDoc on a package and return its project JSON */ -function processExports(nodes: DocNode[]): DocNode[] { - return nodes.filter((node) => { - // Skip moduleDoc entries - if (node.kind === "moduleDoc") return false; - // Skip import re-exports without explicit declaration - if (node.kind === "import") return false; - // Skip private items - if (node.name.startsWith("_")) return false; - return true; +async function convertPackage( + workDir: string, + pkg: NpmPackage, +): Promise { + const packageDir = path.join(workDir, "node_modules", SCOPE, pkg.name); + const entryPoint = await resolveEntryPoint(packageDir); + + const tsconfig = path.join(workDir, `tsconfig.${pkg.name}.json`); + await writeFile( + tsconfig, + JSON.stringify({ + compilerOptions: { + target: "ESNext", + module: "ESNext", + moduleResolution: "bundler", + allowImportingTsExtensions: true, + noEmit: true, + skipLibCheck: true, + strict: true, + types: [], + }, + files: [entryPoint], + }), + ); + + const app = await Application.bootstrap({ + entryPoints: [entryPoint], + tsconfig, + name: `${SCOPE}/${pkg.name}`, + readme: "none", + disableSources: true, + // The published sources are not type-checked against every optional + // peer dependency; documentation does not need a clean compile. + skipErrorChecking: true, + excludeExternals: true, + // Other @probitas-test packages are part of the documented surface: a + // package re-exporting their symbols documents them as its own, the way + // users import them. + externalPattern: [`**/node_modules/!(${SCOPE})/**`], + excludePrivate: true, + excludeProtected: true, + excludeInternal: true, + logLevel: LogLevel.Warn, }); -} -/** - * Count exports by kind - */ -function countExports(exports: DocNode[]): ExportCounts { - return { - classes: exports.filter((n) => n.kind === "class").length, - interfaces: exports.filter((n) => n.kind === "interface").length, - functions: exports.filter((n) => n.kind === "function").length, - types: exports.filter((n) => n.kind === "typeAlias").length, - variables: exports.filter((n) => n.kind === "variable").length, - enums: exports.filter((n) => n.kind === "enum").length, - }; + const project = await app.convert(); + if (!project) { + throw new Error(`TypeDoc failed to convert ${SCOPE}/${pkg.name}`); + } + const json = app.serializer.projectToObject( + project, + normalizePath(workDir), + ); + json.packageVersion = pkg.version; + return json; } /** - * Generate documentation for a single package + * Drop what the site does not use + * + * Namespaces (e.g. `export * as client`) repeat other packages' whole API and + * are not rendered, and groups, categories, and the file registry only serve + * TypeDoc's own HTML theme. */ -async function generatePackageDoc(pkg: JsrPackage): Promise { - const specifier = `jsr:@${pkg.scope}/${pkg.name}@${pkg.latestVersion}`; - console.log(`Processing ${specifier}...`); - - const docOutput = await getPackageDoc(specifier); - if (!docOutput) return null; - - const moduleDoc = extractModuleDoc(docOutput.nodes); - const exports = processExports(docOutput.nodes); - +function trimProject( + json: JSONOutput.ProjectReflection, +): JSONOutput.ProjectReflection { + const { groups: _g, categories: _c, files: _f, symbolIdMap: _s, ...rest } = + json; return { - name: pkg.name, - specifier: `@${pkg.scope}/${pkg.name}`, - version: pkg.latestVersion, - moduleDoc, - exports, - }; + ...rest, + children: (json.children ?? []).filter((child) => + child.kind !== ReflectionKind.Namespace && + child.kind !== ReflectionKind.Module + ).map(stripGroups), + } as JSONOutput.ProjectReflection; } -/** - * Save package documentation to file - */ -async function savePackageDoc(doc: PackageDoc): Promise { - const filename = new URL(`${doc.name}.json`, API_DIR); - await Deno.writeTextFile( - filename, - JSON.stringify(doc, null, 2), - ); - console.log(` Saved ${doc.exports.length} exports to ${doc.name}.json`); +function stripGroups(value: T): T { + if (Array.isArray(value)) return value.map(stripGroups) as T; + if (value && typeof value === "object") { + const result: Record = {}; + for (const [key, child] of Object.entries(value)) { + if (key === "groups" || key === "categories") continue; + result[key] = stripGroups(child); + } + return result as T; + } + return value; } -/** - * Generate and save index file - */ -async function saveIndex(packages: PackageInfo[]): Promise { - const index: ApiDocsIndex = { - packages, - }; - - const filename = new URL("index.json", API_DIR); - await Deno.writeTextFile( - filename, - JSON.stringify(index, null, 2), - ); - console.log(`Saved index with ${packages.length} packages`); +async function writeJson( + dir: string, + file: string, + value: unknown, +): Promise { + await writeFile(path.join(dir, file), `${JSON.stringify(value, null, 2)}\n`); } -/** - * Main entry point - */ async function main(): Promise { - // Ensure output directory exists - await Deno.mkdir(API_DIR, { recursive: true }); - - // Fetch all packages - const packages = (await fetchPackages()).filter((pkg) => { - if (EXCLUDED_PACKAGES.has(pkg.name)) { - console.log(`Skipping ${pkg.name} (excluded)`); - return false; - } - return true; - }); + const packages = await fetchPackages(); console.log(`Found ${packages.length} packages\n`); - // Generate docs for each package - const packageInfos: PackageInfo[] = []; - const results: PackageDoc[] = []; - - await updatePackageDependencies(packages); - - for (const pkg of packages) { - const doc = await generatePackageDoc(pkg); - if (doc) { - results.push(doc); - packageInfos.push({ - name: doc.name, - specifier: doc.specifier, - version: doc.version, - exportCount: doc.exports.length, - counts: countExports(doc.exports), + const workDir = await mkdtemp(path.join(tmpdir(), "probitas-api-docs-")); + try { + await installPackages(workDir, packages); + + // Write everything aside first so that a failure leaves data/api intact + const outDir = path.join(workDir, "api"); + await mkdir(outDir); + + const infos: PackageInfo[] = []; + for (const pkg of packages) { + console.log(`Processing ${SCOPE}/${pkg.name}@${pkg.version}...`); + const project = trimProject(await convertPackage(workDir, pkg)); + await writeJson(outDir, `${pkg.name}.json`, project); + + const exports = (project.children ?? []).filter(isDocumentedExport); + infos.push({ + name: pkg.name, + specifier: `${SCOPE}/${pkg.name}`, + version: pkg.version, + exportCount: exports.length, + counts: countExports(exports), }); + console.log(` Saved ${exports.length} exports to ${pkg.name}.json`); } - } - console.log(`\nGenerated docs for ${results.length} packages`); - - // Save individual package docs - for (const doc of results) { - await savePackageDoc(doc); - } - - // Save index - await saveIndex(packageInfos); - - // Format generated files - console.log("\nFormatting generated files..."); - await formatGeneratedFiles(); - - console.log("\nDone!"); -} - -/** - * Update package dependencies by forcing a cache refresh - * - * This ensures we have the latest versions of all packages - * before generating documentation. - */ -async function updatePackageDependencies( - packages: JsrPackage[], -): Promise { - const specifiers = packages.map( - (pkg) => `jsr:@${pkg.scope}/${pkg.name}@${pkg.latestVersion}`, - ); - - console.log("Updating package dependencies..."); - - const command = new Deno.Command("deno", { - args: ["cache", "--no-lock", "-r", ...specifiers], - stdout: "inherit", - stderr: "inherit", - }); - - const { code } = await command.output(); - if (code !== 0) { - throw new Error("Failed to update package dependencies"); - } - - console.log("Package dependencies updated\n"); -} - -/** - * Run deno fmt on generated API docs - */ -async function formatGeneratedFiles(): Promise { - const command = new Deno.Command("deno", { - args: ["fmt", API_DIR.pathname], - stdout: "inherit", - stderr: "inherit", - }); + const index: ApiDocsIndex = { packages: infos }; + await writeJson(outDir, "index.json", index); - const { code } = await command.output(); - if (code !== 0) { - console.error("Warning: deno fmt failed"); + await rm(API_DIR, { recursive: true, force: true }); + await cp(outDir, API_DIR, { recursive: true }); + console.log(`\nSaved index with ${infos.length} packages`); + } finally { + await rm(workDir, { recursive: true, force: true }); } } -// Run main().catch((error) => { console.error("Error:", error); - Deno.exit(1); + process.exit(1); }); diff --git a/tests/internal_link_check_test.ts b/tests/internal_link_check_test.ts index 4b2c784..46a3206 100644 --- a/tests/internal_link_check_test.ts +++ b/tests/internal_link_check_test.ts @@ -1,13 +1,11 @@ -import { assert } from "jsr:@std/assert@^1.0.16"; -import { walkSync } from "jsr:@std/fs@^1.0.0/walk"; -import { - DOMParser, - Element, -} from "https://deno.land/x/deno_dom@v0.1.47/deno-dom-wasm.ts"; -import { dirname, fromFileUrl, resolve } from "jsr:@std/path@^1.0.1"; +import assert from "node:assert/strict"; +import { readdirSync, readFileSync } from "node:fs"; +import { dirname, join, resolve } from "node:path"; +import { test } from "node:test"; +import { fileURLToPath } from "node:url"; import { basePath, siteMetadata } from "../data/docs.ts"; -const SRC_ROOT = fromFileUrl(import.meta.resolve("../")); +const SRC_ROOT = fileURLToPath(new URL("../", import.meta.url)); const SITE_ROOT = resolve(SRC_ROOT, "dist"); const FILES = new Map(); @@ -29,19 +27,20 @@ type File = { ids: Set; }; +/** + * Whether a file holds Markdown or plain text: the SSG writes the Markdown + * pages as `*.md.html`, which GitHub Pages serves at their `*.md` URLs + */ +function isMarkdownFile(path: string): boolean { + return [".md", ".txt", ".md.html"].some((ext) => path.endsWith(ext)); +} + function findFilesToCrawl(): string[] { - const filesToCrawl = new Set(); - for ( - const entry of walkSync(SITE_ROOT, { - //exts: [".html", ".md", ".txt"], - exts: [".md", ".txt"], - includeFiles: true, - skip: SKIP_PATTERNS, - }) - ) { - filesToCrawl.add(entry.path); - } - return [...filesToCrawl].toSorted(); + return readdirSync(SITE_ROOT, { recursive: true, encoding: "utf-8" }) + .map((entry) => join(SITE_ROOT, entry)) + .filter(isMarkdownFile) + .filter((path) => !SKIP_PATTERNS.some((pattern) => pattern.test(path))) + .toSorted(); } function isTargetLink(link: string): boolean { @@ -92,7 +91,7 @@ function normalizeLink(link: string, htmlMode: boolean): Link { } function readFile(filePath: string): File { - if (filePath.endsWith(".md") || filePath.endsWith(".txt")) { + if (isMarkdownFile(filePath)) { return readMarkdownFile(filePath); } else if (filePath.endsWith(".html")) { return readHtmlFile(filePath); @@ -102,42 +101,62 @@ function readFile(filePath: string): File { } function readMarkdownFile(path: string): File { - const content = Deno.readTextFileSync(path); + const content = readFileSync(path, "utf-8"); const markdownLinkRegex = /\[[^\]]+\]\(([^\)]+)\)/g; // Find all internal links const links = new Set(); - content.matchAll(markdownLinkRegex).forEach((match) => { + for (const match of content.matchAll(markdownLinkRegex)) { const link = match[1].trim(); if (link && isTargetLink(link)) links.add(normalizeLink(link, false)); - }); + } return { type: "markdown", path, links, ids: null } as const; } +/** + * Collect the values of an attribute across the elements of an HTML page + * + * The site generator writes every attribute quoted, which this relies on. + */ +function attributeValues(content: string, name: string): string[] { + const pattern = new RegExp(`\\s${name}=(?:"([^"]*)"|'([^']*)')`, "g"); + return [...content.matchAll(pattern)].map((m) => (m[1] ?? m[2]).trim()); +} + function readHtmlFile(path: string): File { - const content = Deno.readTextFileSync(path); - const doc = new DOMParser().parseFromString(content, "text/html"); - if (!doc) { - throw new Error(`Failed to parse HTML file: ${path}`); - } + const content = readFileSync(path, "utf-8"); // Find all internal links const links = new Set(); - doc.querySelectorAll("[href]").forEach((el) => { - const link = (el as Element).getAttribute("href")?.trim(); - if (link && isTargetLink(link)) links.add(normalizeLink(link, true)); - }); - doc.querySelectorAll("[src]").forEach((el) => { - const link = (el as Element).getAttribute("src")?.trim(); + for (const link of [ + ...attributeValues(content, "href"), + ...attributeValues(content, "src"), + ]) { if (link && isTargetLink(link)) links.add(normalizeLink(link, true)); - }); + } // Find all IDs - const ids = new Set(); - doc.querySelectorAll("[id]").forEach((el) => { - const id = (el as Element).getAttribute("id")?.trim(); - if (id) ids.add(id); - }); + const ids = new Set(attributeValues(content, "id").filter(Boolean)); return { type: "html", path, links, ids } as const; } +/** + * Load a linked file, falling back to `.html` the way GitHub Pages + * serves the generated `*.md.html` pages at their `*.md` URLs + */ +function loadFile(resolvedPath: string): File | Error { + for (const candidate of [resolvedPath, `${resolvedPath}.html`]) { + let file = FILES.get(candidate); + if (!file) { + try { + file = readFile(candidate); + } catch (err: unknown) { + file = err instanceof Error ? err : new Error(String(err)); + } + FILES.set(candidate, file); + } + if (!(file instanceof Error)) return file; + } + return FILES.get(resolvedPath)!; +} + function checkLink( [path, fragment]: Link, base: string, @@ -149,17 +168,7 @@ function checkLink( return resolve(base, path); }; const resolvedPath = resolvePath(path); - let targetFile = FILES.get(resolvedPath); - if (!targetFile) { - try { - targetFile = readFile(resolvedPath); - FILES.set(resolvedPath, targetFile); - } catch (err: unknown) { - const error = err instanceof Error ? err : new Error(String(err)); - FILES.set(resolvedPath, error); - return { exists: false, resolvedPath }; - } - } + const targetFile = loadFile(resolvedPath); if (targetFile instanceof Error) { return { exists: false, resolvedPath }; } @@ -169,16 +178,16 @@ function checkLink( return { exists: true, resolvedPath }; } -Deno.test("Site Link Checker", async (t) => { +test("Site Link Checker", async (t) => { // Gather all HTML and MD files in the SITE_ROOT const filesToCrawl = findFilesToCrawl(); - assert( + assert.ok( filesToCrawl.length > 0, "No files found to check in `dist` directory.", ); // Read all files and extract links - const filesToCheck: File[] = [...filesToCrawl].map(readFile); + const filesToCheck: File[] = filesToCrawl.map(readFile); const normalizePath = (path: string) => path.replace(SITE_ROOT, ""); const formatLink = ([path, fragment]: Link) => @@ -188,17 +197,14 @@ Deno.test("Site Link Checker", async (t) => { for (const link of file.links) { const linkStr = formatLink(link); const filePath = normalizePath(file.path); - await t.step( - `Check ${linkStr} from ${filePath}`, - () => { - const { exists, resolvedPath } = checkLink(link, dirname(file.path)); - const resolvedLinkStr = normalizePath(resolvedPath); - assert( - exists, - `Internal file link broken: ${linkStr} (from ${filePath} to ${resolvedLinkStr})`, - ); - }, - ); + await t.test(`Check ${linkStr} from ${filePath}`, () => { + const { exists, resolvedPath } = checkLink(link, dirname(file.path)); + const resolvedLinkStr = normalizePath(resolvedPath); + assert.ok( + exists, + `Internal file link broken: ${linkStr} (from ${filePath} to ${resolvedLinkStr})`, + ); + }); } } }); diff --git a/vite.config.ts b/vite.config.ts index 79daf1d..e17d9f4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,6 @@ import path from "node:path"; import { fileURLToPath } from "node:url"; -import { defineConfig } from "vite"; +import { defineConfig, type Plugin } from "vite"; import honox from "honox/vite"; import ssg from "@hono/vite-ssg"; @@ -9,6 +9,23 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url)); // GitHub Pages base path (set via environment variable or default to root) const base = process.env.BASE_PATH ?? "/"; +/** + * Keep Vite from resolving `typedoc`, which the site imports for types only + * + * HonoX walks the dependency tree of every file under app/ (type imports + * included) to find islands, and following `typedoc` parses all of + * TypeScript, stalling the build for minutes. + */ +function typedocTypesOnly(): Plugin { + return { + name: "typedoc-types-only", + enforce: "pre", + resolveId(id) { + return id === "typedoc" ? { id, external: true } : null; + }, + }; +} + export default defineConfig(({ mode }) => { // Client build (JS only - CSS served from public/) if (mode === "client") { @@ -35,6 +52,7 @@ export default defineConfig(({ mode }) => { emptyOutDir: false, // Preserve client build assets }, plugins: [ + typedocTypesOnly(), honox({ client: { input: ["/app/client.ts"],