Repository navigation
Conversation
…ode() makeRestProtocol now sets an output member marked T.ResponseCode() to the response status. An idempotent create that answers 201 when it creates and 200 when the resource already existed can then say which happened. Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…body Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…mainOwnershipRequired Since 2026-11-06 the platform saves a domain ownership without its TXT record as unverified and returns it, instead of answering 422 domain-ownership-required. Patch 005 now adds DomainOwnershipRequired to createServiceDomain only. Regenerated from the 2026-11-19 Management API spec, which also adds Conflict to createWorkspace. Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…mainOwnership Both creates answer 201 when they create and 200 when the resource already existed, with the same body. Patch 006 adds an httpStatus member bound to the response code, so a caller can tell whether it owns what came back. Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Benchmarks: PR
|
| Metric | Change vs main | Programs |
|---|---|---|
| Bundle (gzip) | no change | 18 |
| Import heap | no change | 7 |
| Objects at import | no change | 7 |
| Added latency (p50) ¹ | 1 better | 7 |
| Import time ¹ | 4 better | 7 |
| First call ¹ | 4 better | 7 |
| Program | Call | Bundle (gzip) | Import heap | Objects at import | Added latency (p50) | Import time | First call |
|---|---|---|---|---|---|---|---|
| aws | s3.listBuckets |
79.4 KB | — | — | — | — | — |
| aws~awsJson1_0 | dynamodb.listTables |
71.7 KB | — | — | — | — | — |
| aws~awsJson1_1 | kms.listKeys |
70.9 KB | — | — | — | — | — |
| aws~awsQuery | sts.getCallerIdentity |
72.3 KB | — | — | — | — | — |
| aws~ec2Query | ec2.describeRegions |
72.4 KB | — | — | — | — | — |
| aws~restJson1 | lambda.listFunctions |
73.1 KB | — | — | — | — | — |
| azure | resources.ListTenants |
57.0 KB | — | — | — | — | — |
| cloudflare | workers.listScripts |
69.3 KB | — | — | — | — | — |
| cloudflare~CloudflareProtocol | ips.listIps |
49.9 KB | — | — | — | — | — |
| fly-io | machines.getRegions |
50.9 KB | 776.9 KB | 1,090 | 3.9 µs | 9.3 ms (−29.7%) 🟢 | 3.6 ms (−34.5%) 🟢 |
| fly-io~FlyApiProtocol | mpg.listUsers |
50.7 KB | 669.0 KB | 984 | 2.7 µs | 8.3 ms | 3.5 ms |
| fly-io~SpritesProtocol | sprites.createOrganizationToken |
51.3 KB | 707.2 KB | 1,026 | 6.1 µs (−56.2%) 🟢 | 8.7 ms (−26.1%) 🟢 | 3.6 ms (−31.6%) 🟢 |
| gcp | storage_v1.listBuckets |
51.8 KB | — | — | — | — | — |
| github | gists.list |
53.5 KB | 626.9 KB | 956 | 3.1 µs | 8.4 ms | 3.9 ms |
| neon | neon.listProjects |
52.2 KB | 838.7 KB | 1,086 | 2.1 µs | 9.1 ms (−42.2%) 🟢 | 3.8 ms (−43.2%) 🟢 |
| prisma | management.getBuilds |
50.1 KB | 772.1 KB | 1,047 | 1.4 µs | 8.4 ms | 3.4 ms |
| resend | resend.listLogs |
52.0 KB | 860.3 KB | 1,146 | 1.9 µs | 9.0 ms (−34.5%) 🟢 | 3.5 ms (−30.9%) 🟢 |
| stripe | stripe.GetFiles |
50.1 KB | — | — | — | — | — |
PR f3bce8aa6 against main 51ba3a2c6 (main's cached run from 2026-11-18 20:50 UTC). 18 programs, measured in 78 s on 8 vCPU.
| Package | Tarball | Unpacked | Files |
|---|---|---|---|
| core | 331.6 KB (+0.1%) | 1.3 MB (+0.1%) | 229 |
| fly-io | 249.9 KB | 1.6 MB | 71 |
| github | 2.1 MB | 19.6 MB | 338 |
| neon | 221.4 KB | 1.2 MB | 47 |
| prisma | 121.3 KB (+0.1%) | 876.2 KB (+0.1%) | 49 |
| resend | 173.2 KB | 1.2 MB | 57 |
| Tracked files | Size | Change vs main | Files |
|---|---|---|---|
services |
512.0 MB | +667 B | 3,024 |
in-tree-specs |
98.3 KB | ±0 B | 4 |
patches |
10.1 MB | +1.3 KB | 4,188 |
handwritten |
9.6 MB | +3.7 KB | 1,957 |
benches |
9.6 MB | ±0 B | 207 |
other |
2.6 MB | ±0 B | 515 |
| Total | 543.9 MB | +5.6 KB | 9,895 |
What a checkout or worktree writes to disk, from git ls-tree (benches/repo-size/tree.ts). The dashboard's Repo size page has the full picture.
Effect alone: effect-minimal bundle 8.9 KB gzip, hand-written effect-http call 48.6 KB gzip; effect import 76.6 ms and 12.8 MB heap; bare mocked HTTP roundtrip 11.6 µs p50.
Bundled (from src/): resend, neon, github, fly-io, aws, cloudflare, gcp, azure, stripe, prisma. Built and probed (from lib/): resend, neon, github, fly-io, prisma. Changed in this PR: prisma.
Job time: bundle 8.2 s, build: tsrs 2.3 s, build: bundle-lib 43.6 s, build: strip-lib-docs 0.1 s, build 46.0 s, size 1.1 s, runtime 16.5 s, providers 5.9 s.
¹ Timings run on a different runner than main's, so 🟡 marks a large move that may still be noise. Sizes, heap and object counts are stable. Offline: every call hits a canned in-memory response. Full suite: node benches/sdks/run.ts. Job log
|
Install the packages built from this commit: @distilled.cloud (122)pnpm install https://pkg.distilled.cloud/@distilled.cloud/acme/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/adyen/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/anthropic/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/apache-superset/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/archil/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/argocd/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/auth0/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/aws/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/aws4signer/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/axiom/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/azure/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/boat-dev/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/boxd/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/celld/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/chronosphere/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/clerk/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/clickhouse-cloud/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/cloudflare/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/coinbase/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/coinflow/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/convex/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/coolify/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/core/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/customerio/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/datadog/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/daytona/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/digitalocean/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/discord/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/docker/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/dokploy/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/doppler/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/e2b/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/elasticsearch/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/entire/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/exa/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/expo-eas/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/fly-io/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/forgejo/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/gcp/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/github/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/google-workspace/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/grafana/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/growthbook/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/gusto/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/hetzner/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/hostinger/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/huggingface/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/hydradb/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/iceberg/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/infisical/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/inngest/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/intercom/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/kubernetes/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/launchdarkly/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/linear/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/mailchimp/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/meilisearch/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/mercury/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/metabase/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/modal/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/modrinth/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/mongodb-atlas/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/mux/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/namespacelabs/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/neon/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/netbird/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/notion/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/npm/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/okta/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/onepassword/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/opencode/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/opensearch/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/ovh/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/paypal/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/plaid/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/planetscale/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/polar/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/polymarket/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/porkbun/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/posthog/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/prisma/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/proxmox/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/questrade/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/railway/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/redis-cloud/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/remote/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/render/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/resend/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/revenuecat/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/rivet/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/s2/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/s3/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/scaleway/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/sentry/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/slack/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/spacetimedb/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/squarespace/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/stackit/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/starburst-galaxy/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/steel/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/stripe/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/supabase/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/surrealdb/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/tailscale/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/technitium/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/temporal/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/tencentcloud/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/tinybird/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/trigger-dev/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/turbopuffer/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/turso/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/twitch/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/typesense/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/unkey/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/vanta/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/vercel/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/whatsapp/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/whop/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/workos/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/xata/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/zendesk/pr:1348:f3bce8apnpm install https://pkg.distilled.cloud/@distilled.cloud/zerossl/pr:1348:f3bce8aPublished |
… and httpStatus is required The shared generator binds the standard smithy.api#httpResponseCode trait to T.ResponseCode(), next to httpHeader, so Prisma no longer needs its own binding. No converter emits the trait, so no other SDK changes; regenerating AWS from its mirror changes nothing. Patch 006 marks httpStatus required, so its type is number. Its documentation now says it is the status of the last attempt, since a retried create that already succeeded answers 200. The patch description says the spec is correct and this is an SDK addition. responseCodeKey and withResponseCode move to protocol-http.ts, next to withResponseHeaders. The test that fed an array body to a structure output is removed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
createServiceUrl and updateUrl fail with one error per refusal, matched on error.code: RoutingUrlQuotaExceeded (409 quota-exceeded), RoutingUrlLogicalIdTaken (409 logical-id-taken), RoutingUrlInvalidHostname (422 invalid-hostname), RoutingUrlServiceNotOnABranch (422 service-not-on-a-branch, create only) and RoutingUrlServiceOnAnotherBranch (422 service-on-another-branch, update only). RoutingUrlQuotaExceeded is also a QuotaError and RoutingUrlLogicalIdTaken an AlreadyExistsError. A 422 validation-error, or any other code, is still Conflict or UnprocessableEntity. Regenerated from the 2026-11-21 Management API spec (mirror e48eb8d), which declares these codes as enums on each response. It also adds a required `state` to every RoutingUrl output and types the 409 and 422 error bodies. The rest of the generated diff is chunk renumbering. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>







Two things a caller of Prisma's hostname API could not tell from
@distilled.cloud/prisma, and now can: whether a create made the resource or found it, and which refusal it got.alchemy-run/alchemy#3529 (
Prisma.RoutingUrl,Prisma.DomainOwnership) is the caller, and depends on this.The failing calls
A create that answers 201 or 200 with the same body.
POST /v1/workspaces/{workspaceId}/domain-ownershipsandPOST /v1/services/{serviceId}/domainsare idempotent. The spec documents201when the call created the resource and200when it already existed, and the body is the same in both. The SDK returned only the body, so Alchemy could not tell a domain ownership it had just created from one another stack or a person had made, which decides whether it may delete it later.Refusals told apart only by their message.
POST /v1/services/{serviceId}/urlsandPATCH /v1/urls/{id}answer five different refusals with409and422. Since 2026-11-20 the spec declares the code of each as an enum onerror.code:error.codequota-exceeded,logical-id-takeninvalid-hostname,service-not-on-a-branch,validation-errorinvalid-hostname,service-on-another-branch,validation-errorThe SDK returned all of them as
ConflictorUnprocessableEntity, which keep only the message.An error the API no longer returns.
createWorkspaceDomainOwnershiplistedDomainOwnershipRequired(422domain-ownership-required). Prisma now always saves the domain ownership and returns it withstatus: "unverified"until DNS has the TXT record; the spec lists that 422 on this route for an invalid hostname only.Evidence for all three is Prisma's published spec,
GET https://api.prisma.io/v1/doc. No live account was used.What changed
T.ResponseCode()is filled with the response's status. The trait already existed, and the AWS restJson1, S3 and Cloudflare protocols already read it; the generic REST protocol did not. An output without the member is unchanged, and so is an array, scalar, raw or streamed body.smithy.api#httpResponseCodebinds toT.ResponseCode()in the shared binding cascade, next tohttpHeader. No converter or other patch emits the trait, so no other SDK's output changes (checked by regenerating AWS, the one SDK whose models contain it).httpStatusmember to the two create responses above. The spec is correct; this is an SDK addition./error/code, as patch 005 does forDomainOwnershipRequired.validation-errorand any other code stayUnprocessableEntityandConflict. It is the last commit on this branch, generated from the first spec mirror commit that carries the 2026-11-20 spec; this stays a draft until it is pushed.DomainOwnershipRequiredtocreateWorkspaceDomainOwnership. It still types it oncreateServiceDomain, where the spec still documents it.fc91281→fb28505(2026-11-19), then the first commit with the 2026-11-20 spec for patch 007. Apart from the above, the regeneration addsConflicttocreateWorkspace; the rest of the diff inmanagement.tsis the generator renumbering its schema indexes.httpStatusis the status of the last attempt. The client retries a create on its own after a503or a dropped connection, so a resource this call created can come back with200. A caller that must know for certain passes a retry policy that does not retry the create; Alchemy does.Breaking (
!), all in@distilled.cloud/prisma:createWorkspaceDomainOwnershipno longer fails withDomainOwnershipRequired;createServiceUrlandupdateUrlcan fail with four new typed errors each;createWorkspacecan fail withConflict. The core change breaks nothing.Three new cases in
packages/core/test/protocol-rest.test.tscover the new runtime behaviour (a 201 and a 200 reach the member; it sits beside aT.RawResponse()member; an output without it is unchanged). I did not ask first; say if you would rather not have them.Checks:
pnpm typecheck:ci,pnpm vitest run packages/core packages/prisma,pnpm format:check,pnpm lint(0 errors),pnpm specs:check,pnpm patches:audit prisma(all patches needed).Alternatives considered
createdfield in Prisma's response body, so no status is needed. It is the better long-term answer and would also survive a retry; it is a platform change we have not made, and other APIs answer creates the same way.T.RawResponse()in the caller. It works, but every caller would then decode the body itself.Agent: prospero-20
🤖 Generated with Claude Code