Type Alias: AskCreateResult
type AskCreateResult = object;Defined in: packages/sdk/src/index.ts:109
SK-HDC-001 / SK-ASK-009: when kind=create (or 0 DBs with kind=
query|write), the API returns this envelope instead of AskOk.
The chat surface narrows on kind to switch into “DB created”
mode, append the new DB to the rail, and re-pin dbId for the
next send.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
db |
string |
- | packages/sdk/src/index.ts:111 |
displayName |
string |
Human-readable name for the freshly-minted DB. Surfaces render this; db (the wire id) and schemaName stay for technical / URL contexts. Derived server-side from db via displayName(). |
packages/sdk/src/index.ts:115 |
engine |
Engine |
SK-DB-010 — engine the orchestrator resolved. Always present. | packages/sdk/src/index.ts:118 |
kind |
"create" |
- | packages/sdk/src/index.ts:110 |
pkLive |
string | null |
- | packages/sdk/src/index.ts:119 |
plan |
unknown |
SchemaPlan from the typed-plan compiler (SK-HDC-002). Surfaces that don’t render the plan (current chat) ignore it; CreateForm narrows it via its own CreateResult type. |
packages/sdk/src/index.ts:123 |
sampleRows |
object[] |
One entry per sample row — mirrors the API’s SampleRow shape (packages/db/src/types.ts). Surfaces that want a per-table view group on table themselves. |
packages/sdk/src/index.ts:127 |
schemaName |
string |
- | packages/sdk/src/index.ts:116 |
trace |
Trace |
SK-TRUST-002 — always present; sql carries the compiled DDL that provisioned the schema (the create-path analogue of the read path’s compiled SQL). cache_hit is always false — creates are never plan-cached. |
packages/sdk/src/index.ts:132 |