The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Expand OpenAPI description for referrals embed token endpoint (#3648)
Kiran Ke7bb3c84264c
diff --git a/apps/web/lib/openapi/embed-tokens/create-referrals-embed-token.ts b/apps/web/lib/openapi/embed-tokens/create-referrals-embed-token.tsindex c02c4b99c7..cc4c604497 100644--- a/apps/web/lib/openapi/embed-tokens/create-referrals-embed-token.ts+++ b/apps/web/lib/openapi/embed-tokens/create-referrals-embed-token.ts@@ -9,7 +9,8 @@ export const createReferralsEmbedToken: ZodOpenApiOperationObject = {operationId: "createReferralsEmbedToken","x-speakeasy-name-override": "referrals",summary: "Create a referrals embed token",- description: "Create a referrals embed token for the given partner/tenant.",+ description:+ "Create a referrals embed token for the given partner/tenant. The endpoint first attempts to locate an existing enrollment using the provided tenantId. If no enrollment is found, it resolves the partner by email and creates a new enrollment as needed. This results in an upsert-style flow that guarantees a valid enrollment and returns a usable embed token.",requestBody: {content: {"application/json": {