update package version and response return tyupe for delete domain api (#272)

This commit is contained in:
KM Koushik
2025-10-11 06:37:24 +11:00
committed by GitHub
parent 3f6a02ac56
commit 2fe2d5cdab
8 changed files with 142 additions and 306 deletions
+44 -141
View File
@@ -626,10 +626,10 @@
{
"schema": {
"type": "number",
"nullable": false,
"nullable": true,
"example": 1
},
"required": true,
"required": false,
"name": "id",
"in": "path"
}
@@ -643,152 +643,55 @@
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "The ID of the domain",
"example": 1
"type": "number"
},
"name": {
"type": "string",
"description": "The name of the domain",
"example": "example.com"
"success": {
"type": "boolean"
},
"teamId": {
"type": "number",
"description": "The ID of the team",
"example": 1
},
"status": {
"type": "string",
"enum": [
"NOT_STARTED",
"PENDING",
"SUCCESS",
"FAILED",
"TEMPORARY_FAILURE"
]
},
"region": {
"type": "string",
"default": "us-east-1"
},
"clickTracking": {
"type": "boolean",
"default": false
},
"openTracking": {
"type": "boolean",
"default": false
},
"publicKey": {
"message": {
"type": "string"
},
"dkimStatus": {
"type": "string",
"nullable": true
},
"spfDetails": {
"type": "string",
"nullable": true
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"dmarcAdded": {
"type": "boolean",
"default": false
},
"isVerifying": {
"type": "boolean",
"default": false
},
"errorMessage": {
"type": "string",
"nullable": true
},
"subdomain": {
"type": "string",
"nullable": true
},
"verificationError": {
"type": "string",
"nullable": true
},
"lastCheckedTime": {
"type": "string",
"nullable": true
},
"dnsRecords": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"MX",
"TXT"
],
"description": "DNS record type",
"example": "TXT"
},
"name": {
"type": "string",
"description": "DNS record name",
"example": "mail"
},
"value": {
"type": "string",
"description": "DNS record value",
"example": "v=spf1 include:amazonses.com ~all"
},
"ttl": {
"type": "string",
"description": "DNS record TTL",
"example": "Auto"
},
"priority": {
"type": "string",
"nullable": true,
"description": "DNS record priority",
"example": "10"
},
"status": {
"type": "string",
"enum": [
"NOT_STARTED",
"PENDING",
"SUCCESS",
"FAILED",
"TEMPORARY_FAILURE"
]
},
"recommended": {
"type": "boolean",
"description": "Whether the record is recommended"
}
},
"required": [
"type",
"name",
"value",
"ttl",
"status"
]
}
}
},
"required": [
"id",
"name",
"teamId",
"status",
"publicKey",
"createdAt",
"updatedAt",
"dnsRecords"
"success",
"message"
]
}
}
}
},
"403": {
"description": "Forbidden - API key doesn't have access",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"404": {
"description": "Domain not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
]
}
}
+8 -23
View File
@@ -34,23 +34,15 @@
},
{
"group": "Self Hosting",
"pages": [
"self-hosting/overview",
"self-hosting/railway"
]
"pages": ["self-hosting/overview", "self-hosting/railway"]
},
{
"group": "Guides",
"pages": [
"guides/use-with-react-email"
]
"pages": ["guides/use-with-react-email"]
},
{
"group": "Community SDKs",
"pages": [
"community-sdk/python",
"community-sdk/go"
]
"pages": ["community-sdk/python", "community-sdk/go"]
}
]
},
@@ -59,9 +51,7 @@
"groups": [
{
"group": "API Reference",
"pages": [
"api-reference/introduction"
]
"pages": ["api-reference/introduction"]
},
{
"group": "Emails",
@@ -91,7 +81,8 @@
"api-reference/domains/get-domain",
"api-reference/domains/list-domains",
"api-reference/domains/create-domain",
"api-reference/domains/verify-domain"
"api-reference/domains/verify-domain",
"api-reference/domains/delete-domain"
]
}
]
@@ -147,12 +138,6 @@
}
},
"contextual": {
"options": [
"copy",
"view",
"chatgpt",
"claude",
"perplexity"
]
"options": ["copy", "view", "chatgpt", "claude", "perplexity"]
}
}
}