Update SDK version (#32)

This commit is contained in:
KM Koushik
2024-06-26 06:35:28 +10:00
committed by GitHub
parent 0f0e2ada73
commit 6d7fc773f9
5 changed files with 19 additions and 30 deletions

View File

@@ -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"
}
}
]

View File

@@ -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
}

View File

@@ -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.
*/

View File

@@ -1,6 +1,6 @@
{
"name": "unsend",
"version": "0.0.6",
"version": "1.0.0",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",

View File

@@ -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[];