Update SDK version (#32)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@@ -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
|
||||
}
|
||||
|
||||
|
@@ -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.
|
||||
*/
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "unsend",
|
||||
"version": "0.0.6",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
|
3
packages/sdk/types/schema.d.ts
vendored
3
packages/sdk/types/schema.d.ts
vendored
@@ -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[];
|
||||
|
Reference in New Issue
Block a user