diff --git a/apps/docs/api-reference/openapi.json b/apps/docs/api-reference/openapi.json index 0942847..a69d192 100644 --- a/apps/docs/api-reference/openapi.json +++ b/apps/docs/api-reference/openapi.json @@ -6,7 +6,7 @@ }, "servers": [ { - "url": "https://test.ossapps.dev/api" + "url": "https://app.unsend.dev/api" } ], "components": { @@ -217,14 +217,15 @@ "enum": [ "QUEUED", "SENT", + "BOUNCED", + "DELIVERED", "OPENED", "CLICKED", - "BOUNCED", "COMPLAINED", - "DELIVERED", "REJECTED", "RENDERING_FAILURE", - "DELIVERY_DELAYED" + "DELIVERY_DELAYED", + "FAILED" ] }, "createdAt": { @@ -273,21 +274,18 @@ "to": { "anyOf": [ { - "type": "string", - "format": "email" + "type": "string" }, { "type": "array", "items": { - "type": "string", - "format": "email" + "type": "string" } } ] }, "from": { - "type": "string", - "format": "email" + "type": "string" }, "subject": { "type": "string" @@ -295,14 +293,12 @@ "replyTo": { "anyOf": [ { - "type": "string", - "format": "email" + "type": "string" }, { "type": "array", "items": { - "type": "string", - "format": "email" + "type": "string" } } ] @@ -310,14 +306,12 @@ "cc": { "anyOf": [ { - "type": "string", - "format": "email" + "type": "string" }, { "type": "array", "items": { - "type": "string", - "format": "email" + "type": "string" } } ] @@ -325,14 +319,12 @@ "bcc": { "anyOf": [ { - "type": "string", - "format": "email" + "type": "string" }, { "type": "array", "items": { - "type": "string", - "format": "email" + "type": "string" } } ] diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prisma index ffcab7f..0a43f3f 100644 --- a/apps/web/prisma/schema.prisma +++ b/apps/web/prisma/schema.prisma @@ -163,14 +163,14 @@ model ApiKey { enum EmailStatus { QUEUED SENT + DELIVERY_DELAYED BOUNCED + REJECTED + RENDERING_FAILURE DELIVERED OPENED CLICKED COMPLAINED - REJECTED - RENDERING_FAILURE - DELIVERY_DELAYED FAILED } diff --git a/apps/web/src/server/public-api/auth.ts b/apps/web/src/server/public-api/auth.ts index 69567c3..8b7b941 100644 --- a/apps/web/src/server/public-api/auth.ts +++ b/apps/web/src/server/public-api/auth.ts @@ -10,8 +10,6 @@ const rateLimitCache = new TTLCache({ max: env.API_RATE_LIMIT, }); -console.log(env.DATABASE_URL); - /** * Gets the team from the token. Also will check if the token is valid. */ diff --git a/packages/sdk/package.json b/packages/sdk/package.json index b12d7d7..2083f82 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "unsend", - "version": "0.0.6", + "version": "1.0.0", "description": "", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/packages/sdk/types/schema.d.ts b/packages/sdk/types/schema.d.ts index 05851e1..8af3a3b 100644 --- a/packages/sdk/types/schema.d.ts +++ b/packages/sdk/types/schema.d.ts @@ -73,7 +73,7 @@ export interface paths { emailEvents: ({ emailId: string; /** @enum {string} */ - status: "QUEUED" | "SENT" | "OPENED" | "CLICKED" | "BOUNCED" | "COMPLAINED" | "DELIVERED" | "REJECTED" | "RENDERING_FAILURE" | "DELIVERY_DELAYED"; + status: "QUEUED" | "SENT" | "BOUNCED" | "DELIVERED" | "OPENED" | "CLICKED" | "COMPLAINED" | "REJECTED" | "RENDERING_FAILURE" | "DELIVERY_DELAYED" | "FAILED"; createdAt: string; data?: unknown; })[]; @@ -89,7 +89,6 @@ export interface paths { content: { "application/json": { to: string | string[]; - /** Format: email */ from: string; subject: string; replyTo?: string | string[];