Skip to content

Commit

Permalink
Update SDK version (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
KMKoushik authored Jun 25, 2024
1 parent 0f0e2ad commit 6d7fc77
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 30 deletions.
36 changes: 14 additions & 22 deletions apps/docs/api-reference/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"servers": [
{
"url": "https://test.ossapps.dev/api"
"url": "https://app.unsend.dev/api"
}
],
"components": {
Expand Down Expand Up @@ -217,14 +217,15 @@
"enum": [
"QUEUED",
"SENT",
"BOUNCED",
"DELIVERED",
"OPENED",
"CLICKED",
"BOUNCED",
"COMPLAINED",
"DELIVERED",
"REJECTED",
"RENDERING_FAILURE",
"DELIVERY_DELAYED"
"DELIVERY_DELAYED",
"FAILED"
]
},
"createdAt": {
Expand Down Expand Up @@ -273,66 +274,57 @@
"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"
},
"replyTo": {
"anyOf": [
{
"type": "string",
"format": "email"
"type": "string"
},
{
"type": "array",
"items": {
"type": "string",
"format": "email"
"type": "string"
}
}
]
},
"cc": {
"anyOf": [
{
"type": "string",
"format": "email"
"type": "string"
},
{
"type": "array",
"items": {
"type": "string",
"format": "email"
"type": "string"
}
}
]
},
"bcc": {
"anyOf": [
{
"type": "string",
"format": "email"
"type": "string"
},
{
"type": "array",
"items": {
"type": "string",
"format": "email"
"type": "string"
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions apps/web/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 0 additions & 2 deletions apps/web/src/server/public-api/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unsend",
"version": "0.0.6",
"version": "1.0.0",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
3 changes: 1 addition & 2 deletions packages/sdk/types/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})[];
Expand All @@ -89,7 +89,6 @@ export interface paths {
content: {
"application/json": {
to: string | string[];
/** Format: email */
from: string;
subject: string;
replyTo?: string | string[];
Expand Down

0 comments on commit 6d7fc77

Please sign in to comment.