Skip to content

sferarc/pgbeam-openapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@pgbeam/openapi

The public OpenAPI specification for the PgBeam API, a globally distributed PostgreSQL proxy platform for safe Postgres access by AI agents.

The sferarc/pgbeam-openapi repository is a read-only mirror. The specification is generated from the PgBeam source contract and synced there automatically on every change, so it never drifts from what actually drives the API server, the TypeScript and Go SDKs, the Terraform, Crossplane, and Pulumi providers, the CLI, and the docs. Do not open pull requests that edit the spec by hand; they cannot be merged back.

Contents

  • openapi.yaml, openapi.json — the full bundled OpenAPI document in both formats.
  • spec/ — the same public contract split into separated files (spec/openapi.yaml root plus paths/ and components/), for consumers who prefer the modular layout. Split from the public bundle, so internal-only operations never appear.
  • src/ — a typed TypeScript module that re-exports the parsed document.

Install

npm install @pgbeam/openapi
import { openapiSpec, openapiVersion } from "@pgbeam/openapi";

console.log(openapiVersion);

You can also read the raw documents without installing anything:

import spec from "@pgbeam/openapi/openapi.json";

Or point any OpenAPI tool at the bundled file (openapi.yaml) or the separated root (spec/openapi.yaml) to generate your own clients, validate requests, or render an API reference.

License

Apache 2.0. See LICENSE.

About

Public OpenAPI specification for the PgBeam API. Read-only mirror, generated from the source contract.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors