Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
899f615
add polar distilled sdk
carlulsoe May 4, 2026
00f93e6
fix(polar): type union request bodies
carlulsoe May 4, 2026
34ea4ba
test polar benefits and checkout links
carlulsoe May 5, 2026
d10a33c
test polar auth resources
carlulsoe May 5, 2026
5f062c2
test polar customer configuration
carlulsoe May 5, 2026
dbb3cad
test polar meters
carlulsoe May 5, 2026
55a7ca9
test polar events
carlulsoe May 5, 2026
39d68d7
test polar files
carlulsoe May 5, 2026
e8038f8
test polar customer state
carlulsoe May 5, 2026
43ecd1e
test polar payments
carlulsoe May 5, 2026
f76691a
test polar customer portal schemas
carlulsoe May 5, 2026
fdae0f6
test polar export and oauth schemas
carlulsoe May 5, 2026
7bccc35
add polar nuke script
carlulsoe May 6, 2026
221a6a4
expand polar live tests
carlulsoe May 6, 2026
3d3c31c
test(polar): expand live coverage
carlulsoe May 6, 2026
8646e26
test(polar): cover remaining generated operations
carlulsoe May 6, 2026
4098b68
test(polar): guard generated operation coverage
carlulsoe May 6, 2026
398ae33
test(polar): verify sdk full artifacts
carlulsoe May 6, 2026
4e7e2cd
test(polar): guard generated patches and exports
carlulsoe May 6, 2026
11143b8
test(polar): cover ci credential wiring
carlulsoe May 6, 2026
7a9bfb9
test(polar): cover package entrypoints
carlulsoe May 6, 2026
44fa1c7
fix(core): emit T.QueryParam() for query parameters
Mkassabov May 6, 2026
18c7c6c
refactor(polar): consolidate validation tags + regenerate operations
Mkassabov May 6, 2026
7d19fb0
test(polar): regenerate per-operation test suite + helpers
Mkassabov May 6, 2026
ca73102
refactor(polar): read credentials env vars via Effect Config
Mkassabov May 7, 2026
fdddc78
Merge remote-tracking branch 'origin/main' into pr-236-conflict-fix
carlulsoe May 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .github/workflows/nuke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ on:
description: "PlanetScale"
type: boolean
default: false
polar:
description: "Polar"
type: boolean
default: false
prisma-postgres:
description: "Prisma Postgres"
type: boolean
Expand Down Expand Up @@ -94,6 +98,7 @@ jobs:
&& "${{ inputs.mongodb-atlas }}" != "true" \
&& "${{ inputs.neon }}" != "true" \
&& "${{ inputs.planetscale }}" != "true" \
&& "${{ inputs.polar }}" != "true" \
&& "${{ inputs.prisma-postgres }}" != "true" \
&& "${{ inputs.stripe }}" != "true" \
&& "${{ inputs.supabase }}" != "true" \
Expand Down Expand Up @@ -230,6 +235,26 @@ jobs:
env:
PRISMA_POSTGRES_API_TOKEN: ${{ secrets.PRISMA_POSTGRES_API_TOKEN }}

# ── Polar ──
nuke-polar:
needs: gate
if: needs.gate.outputs.run == 'true' && (github.event_name == 'merge_group' || inputs.all || inputs.polar)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bun run build
working-directory: packages/core
- name: Run nuke script
run: bun scripts/nuke.ts
working-directory: packages/polar
env:
POLAR_ACCESS_TOKEN: ${{ secrets.POLAR_ACCESS_TOKEN }}
POLAR_SERVER: sandbox

# ── Stripe ──
nuke-stripe:
needs: gate
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pr-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'force-ci')
run: |
set -euo pipefail
all='["core","aws","cloudflare","gcp","neon","planetscale","prisma-postgres","stripe","supabase","posthog","axiom","azure","kubernetes","coinbase","mongodb-atlas","fly-io","turso","typesense","workos","expo-eas"]'
all='["core","aws","cloudflare","gcp","neon","planetscale","prisma-postgres","stripe","supabase","posthog","axiom","azure","kubernetes","coinbase","mongodb-atlas","fly-io","turso","typesense","workos","expo-eas","polar"]'
echo "packages=${all}" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v6
- uses: dorny/paths-filter@v4
Expand Down Expand Up @@ -102,6 +102,9 @@ jobs:
expo-eas:
- 'packages/expo-eas/**'
- 'packages/core/**'
polar:
- 'packages/polar/**'
- 'packages/core/**'

# ── Compute tags once so every matrix job + the comment use the same set. ─
tags:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ env:
packages/typesense/package.json
packages/workos/package.json
packages/expo-eas/package.json
packages/polar/package.json
bun.lock
CHANGELOG.md

Expand Down Expand Up @@ -273,6 +274,7 @@ jobs:
- typesense
- workos
- expo-eas
- polar
include:
- package: aws
runner: ubuntu-22-large
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
typesense: ${{ steps.force.outputs.all || steps.changes.outputs.typesense }}
workos: ${{ steps.force.outputs.all || steps.changes.outputs.workos }}
expo-eas: ${{ steps.force.outputs.all || steps.changes.outputs.expo-eas }}
polar: ${{ steps.force.outputs.all || steps.changes.outputs.polar }}
steps:
- id: force
if: contains(github.event.pull_request.labels.*.name, 'force-ci')
Expand Down Expand Up @@ -110,6 +111,9 @@ jobs:
expo-eas:
- 'packages/expo-eas/**'
- 'packages/core/**'
polar:
- 'packages/polar/**'
- 'packages/core/**'

ci-core:
needs: detect-changes
Expand Down Expand Up @@ -494,3 +498,24 @@ jobs:
working-directory: packages/expo-eas
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}

ci-polar:
needs: detect-changes
if: needs.detect-changes.outputs.polar == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install
- run: bun run build
working-directory: packages/core
- run: bun run check
working-directory: packages/polar
- run: bun run test
working-directory: packages/polar
env:
POLAR_ACCESS_TOKEN: ${{ secrets.POLAR_ACCESS_TOKEN }}
POLAR_ORGANIZATION_ID: ${{ secrets.POLAR_ORGANIZATION_ID }}
POLAR_SERVER: sandbox
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ distilled/
│ ├── mongodb-atlas/ # @distilled.cloud/mongodb-atlas — MongoDB Atlas SDK from OpenAPI spec
│ ├── neon/ # @distilled.cloud/neon — Neon SDK from OpenAPI spec
│ ├── planetscale/ # @distilled.cloud/planetscale — PlanetScale SDK from OpenAPI spec
│ ├── polar/ # @distilled.cloud/polar — Polar SDK from OpenAPI spec
│ ├── prisma-postgres/ # @distilled.cloud/prisma-postgres — Prisma Postgres SDK from OpenAPI spec
│ ├── stripe/ # @distilled.cloud/stripe — Stripe SDK from OpenAPI spec
│ ├── supabase/ # @distilled.cloud/supabase — Supabase SDK from OpenAPI spec
Expand Down Expand Up @@ -127,6 +128,7 @@ Each SDK package has vendor API specifications stored as git submodules under `s
| `mongodb-atlas` | `specs/distilled-spec-mongodb-atlas` | MongoDB Atlas OpenAPI spec |
| `neon` | `specs/distilled-spec-neon` | Neon OpenAPI spec |
| `planetscale` | `specs/distilled-spec-planetscale` | PlanetScale OpenAPI spec |
| `polar` | `specs/distilled-spec-polar` | Polar OpenAPI spec |
| `prisma-postgres` | `specs/distilled-spec-prisma-postgres` | Prisma Postgres OpenAPI spec |
| `stripe` | `specs/stripe-openapi` | Stripe OpenAPI spec |
| `supabase` | `specs/distilled-spec-supabase` | Supabase OpenAPI spec |
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const functions = yield* Lambda.listFunctions
| [`@distilled.cloud/mongodb-atlas`](./packages/mongodb-atlas) | MongoDB Atlas SDK from OpenAPI spec |
| [`@distilled.cloud/neon`](./packages/neon) | Neon serverless Postgres SDK from OpenAPI spec |
| [`@distilled.cloud/planetscale`](./packages/planetscale) | PlanetScale MySQL SDK from OpenAPI spec |
| [`@distilled.cloud/polar`](./packages/polar) | Polar billing SDK from OpenAPI spec |
| [`@distilled.cloud/prisma-postgres`](./packages/prisma-postgres) | Prisma Postgres SDK from OpenAPI spec |
| [`@distilled.cloud/stripe`](./packages/stripe) | Stripe SDK from OpenAPI spec |
| [`@distilled.cloud/supabase`](./packages/supabase) | Supabase Management API SDK from OpenAPI spec |
Expand Down Expand Up @@ -125,6 +126,7 @@ bun run specs:update # run inside a package directory
| `mongodb-atlas` | `distilled-spec-mongodb-atlas` |
| `neon` | `distilled-spec-neon` |
| `planetscale` | `distilled-spec-planetscale` |
| `polar` | `distilled-spec-polar` |
| `prisma-postgres` | `distilled-spec-prisma-postgres` |
| `stripe` | `stripe-openapi` |
| `supabase` | `distilled-spec-supabase` |
Expand Down
19 changes: 19 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading