Update SDK version (#32)
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"url": "https://test.ossapps.dev/api"
|
"url": "https://app.unsend.dev/api"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"components": {
|
"components": {
|
||||||
@@ -217,14 +217,15 @@
|
|||||||
"enum": [
|
"enum": [
|
||||||
"QUEUED",
|
"QUEUED",
|
||||||
"SENT",
|
"SENT",
|
||||||
|
"BOUNCED",
|
||||||
|
"DELIVERED",
|
||||||
"OPENED",
|
"OPENED",
|
||||||
"CLICKED",
|
"CLICKED",
|
||||||
"BOUNCED",
|
|
||||||
"COMPLAINED",
|
"COMPLAINED",
|
||||||
"DELIVERED",
|
|
||||||
"REJECTED",
|
"REJECTED",
|
||||||
"RENDERING_FAILURE",
|
"RENDERING_FAILURE",
|
||||||
"DELIVERY_DELAYED"
|
"DELIVERY_DELAYED",
|
||||||
|
"FAILED"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"createdAt": {
|
"createdAt": {
|
||||||
@@ -273,21 +274,18 @@
|
|||||||
"to": {
|
"to": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "email"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "email"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"from": {
|
"from": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "email"
|
|
||||||
},
|
},
|
||||||
"subject": {
|
"subject": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@@ -295,14 +293,12 @@
|
|||||||
"replyTo": {
|
"replyTo": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "email"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "email"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -310,14 +306,12 @@
|
|||||||
"cc": {
|
"cc": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "email"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "email"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -325,14 +319,12 @@
|
|||||||
"bcc": {
|
"bcc": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "email"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "email"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@@ -163,14 +163,14 @@ model ApiKey {
|
|||||||
enum EmailStatus {
|
enum EmailStatus {
|
||||||
QUEUED
|
QUEUED
|
||||||
SENT
|
SENT
|
||||||
|
DELIVERY_DELAYED
|
||||||
BOUNCED
|
BOUNCED
|
||||||
|
REJECTED
|
||||||
|
RENDERING_FAILURE
|
||||||
DELIVERED
|
DELIVERED
|
||||||
OPENED
|
OPENED
|
||||||
CLICKED
|
CLICKED
|
||||||
COMPLAINED
|
COMPLAINED
|
||||||
REJECTED
|
|
||||||
RENDERING_FAILURE
|
|
||||||
DELIVERY_DELAYED
|
|
||||||
FAILED
|
FAILED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -10,8 +10,6 @@ const rateLimitCache = new TTLCache({
|
|||||||
max: env.API_RATE_LIMIT,
|
max: env.API_RATE_LIMIT,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(env.DATABASE_URL);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the team from the token. Also will check if the token is valid.
|
* Gets the team from the token. Also will check if the token is valid.
|
||||||
*/
|
*/
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "unsend",
|
"name": "unsend",
|
||||||
"version": "0.0.6",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.mjs",
|
"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: ({
|
emailEvents: ({
|
||||||
emailId: string;
|
emailId: string;
|
||||||
/** @enum {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;
|
createdAt: string;
|
||||||
data?: unknown;
|
data?: unknown;
|
||||||
})[];
|
})[];
|
||||||
@@ -89,7 +89,6 @@ export interface paths {
|
|||||||
content: {
|
content: {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
to: string | string[];
|
to: string | string[];
|
||||||
/** Format: email */
|
|
||||||
from: string;
|
from: string;
|
||||||
subject: string;
|
subject: string;
|
||||||
replyTo?: string | string[];
|
replyTo?: string | string[];
|
||||||
|
Reference in New Issue
Block a user