Skip to content

Discovery

Download existing SqlProfile

GET /api/sql-profile.json

Existing artifact owned by scripts/generate-sql-profile.ts. This operation retrieves its bytes; use the native protocol's current consumer setup to interpret the contract.

Markdown · Authoritative OpenAPI

Request policy

Operation
downloadSqlProfile
Access
anonymous
Automatic retries
None
Redirects
Returned to the caller without following
Request body limit
No request body
Pagination
No collection iterator

Parameters

No path or query parameters.

Responses

200

Existing generated contract artifact

application/json

object

Schema details

profileVersion unknown required

title string required

endpoint unknown required

humanInterface unknown required

catalog unknown required

transport object required

Schema details

executionMethod unknown required

capabilityMethods array required

requestMediaType unknown required

acceptQuery string required

responseMediaTypes array required

versionHeader unknown required

cacheControl unknown required

dialect object required

Schema details

statements array required

clauses string[] required

Schema details

string

predicates string[] required

Schema details

string

aggregateFunctions array required

likeEscape unknown required

exclusions string[] required

Schema details

string

logicalTypes object required

Schema details

text object required

Schema details

sql string required

json string required

csv string required

url object required

Schema details

sql string required

json string required

csv string required

boolean object required

Schema details

sql string required

json string required

csv string required

integer object required

Schema details

sql string required

json string required

csv string required

decimal object required

Schema details

sql string required

json string required

csv string required

date object required

Schema details

sql string required

json string required

csv string required

timestamp object required

Schema details

sql string required

json string required

csv string required

json object required

Schema details

sql string required

json string required

csv string required

csv object required

Schema details

header unknown required

null unknown required

lineEnding unknown required

limits object required

Schema details

maxRequestBytes unknown required

maxTokens unknown required

maxAstDepth unknown required

maxProjectionColumns unknown required

maxPredicates unknown required

maxInItems unknown required

maxPatternLength unknown required

maxRows unknown required

maxColumns unknown required

maxGroupColumns unknown required

maxCost unknown required

maxResponseBytes unknown required

requestsPerMinute unknown required

rateLimitWindowSeconds unknown required

relations object[] required

Schema details

object

Schema details

catalog unknown required

schema string required

Allowed: "public" | "information_schema"

name string required

surfaceKey string required

Schema details

string

unknown

canonicalSchemaRef string required

inclusionReason string required

defaultOrder object[] required

Schema details

object

Schema details

column string required

direction string required

Allowed: "ASC" | "DESC"

columns object[] required

Schema details

object

Schema details

name string required

ordinalPosition number required

logicalType string required

Allowed: "text" | "url" | "boolean" | "integer" | "decimal" | "date" | "timestamp" | "json"

nullable boolean required

jsonField string required

provenance string required

surfaceDispositions object required

304

Not modified; no response body

Examples

Examples use synthetic fixture values. Replace fixture identifiers with public IDs returned by the service. Request bodies and precise locations are transient; keep them out of logs.

curl

curl --fail-with-body --max-time 30 --max-filesize 16777216 --request GET 'https://irvinebroque.com/api/sql-profile.json' --header 'Accept: application/json'

TypeScript

import { PublicApi } from '@irvinebroque/public-api';
const api = new PublicApi();
const result = await api.discovery.sqlProfile({});
console.log(result.status, result.headers.get('content-type')); // Keep transient capabilities in memory.

CLI

irvinebroque discovery sql-profile

The SDK preserves status, headers, and the server envelope. A 304 has no fresh body. Errors retain structured problem details; ordinary error messages omit response details. Responses are limited to 16 MiB and requests time out after 30 seconds by default.