diff --git a/assets/openapi.json b/assets/openapi.json index 0da72d2..2ad82ad 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -15740,37 +15740,6 @@ "status" ] }, - "DNSRecord": { - "type": "object", - "properties": { - "cached": { - "type": "array", - "items": {} - }, - "name": { - "type": "string" - }, - "record_type": { - "type": "string" - }, - "valid": { - "type": "string" - }, - "value": { - "type": "string" - }, - "priority": { - "type": "string" - } - }, - "required": [ - "cached", - "name", - "record_type", - "valid", - "value" - ] - }, "UpdatedDKIMAuthorityResponse": { "type": "object", "properties": { @@ -15786,7 +15755,7 @@ "sending_dns_records": { "type": "array", "items": { - "$ref": "#/components/schemas/DNSRecord" + "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/Domains\",{with:{\"resolution-mode\":\"import\"}}).DNSRecord" } } }, @@ -19296,153 +19265,6 @@ "status" ] }, - "IDomainTemplate": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "createdAt": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "string" - } - ] - }, - "createdBy": { - "type": "string" - }, - "id": { - "type": "string" - }, - "version": { - "$ref": "#/components/schemas/TemplateVersion" - }, - "versions": { - "type": "array", - "items": { - "type": "object", - "properties": { - "tag": { - "type": "string" - }, - "engine": { - "type": "string" - }, - "mjml": { - "type": "string" - }, - "createdAt": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "string" - } - ] - }, - "comment": { - "type": "string" - }, - "active": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "active", - "comment", - "createdAt", - "engine", - "id", - "mjml", - "tag" - ] - } - } - }, - "required": [ - "createdAt", - "createdBy", - "description", - "id", - "name" - ] - }, - "TemplateVersion": { - "type": "object", - "properties": { - "tag": { - "type": "string" - }, - "engine": { - "type": "string" - }, - "mjml": { - "type": "string" - }, - "createdAt": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "string" - } - ] - }, - "comment": { - "type": "string" - }, - "active": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "template": { - "type": "string" - }, - "headers": { - "type": "object", - "properties": { - "From": { - "type": "string" - }, - "Reply-To": { - "type": "string" - }, - "Subject": { - "type": "string" - } - }, - "additionalProperties": false - } - }, - "required": [ - "active", - "comment", - "createdAt", - "engine", - "id", - "mjml", - "tag", - "template" - ] - }, "CreateDomainTemplateAPIResponse": { "type": "object", "properties": { @@ -19456,7 +19278,7 @@ "type": "string" }, "template": { - "$ref": "#/components/schemas/IDomainTemplate" + "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -19483,7 +19305,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/IDomainTemplate" + "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "paging": { @@ -19533,7 +19355,7 @@ "type": "object", "properties": { "template": { - "$ref": "#/components/schemas/IDomainTemplate" + "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -19621,7 +19443,7 @@ "type": "string" }, "template": { - "$ref": "#/components/schemas/IDomainTemplate" + "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -20671,129 +20493,11 @@ "status" ] }, - "SuppressionDataType": { - "anyOf": [ - { - "type": "object", - "properties": { - "address": { - "type": "string" - }, - "code": { - "type": "integer" - }, - "error": { - "type": "string" - }, - "created_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "string" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "address", - "code", - "created_at", - "error" - ] - }, - { - "type": "object", - "properties": { - "address": { - "type": "string" - }, - "created_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "string" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "address", - "created_at" - ] - }, - { - "type": "object", - "properties": { - "address": { - "type": "string" - }, - "tags": {}, - "created_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "string" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "address", - "created_at", - "tags" - ] - }, - { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "value": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "createdAt": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "string" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "createdAt", - "reason", - "type", - "value" - ] - } - ] - }, "SuppressionResponse": { "type": "object", "properties": { "body": { - "$ref": "#/components/schemas/SuppressionDataType" + "$ref": "#/components/schemas/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Suppressions/Suppressions\",{with:{\"resolution-mode\":\"import\"}}).SuppressionDataType" }, "status": { "type": "integer" @@ -20867,124 +20571,12 @@ "Body": { "type": "object" }, - "AxiosResponseHeaders": { - "properties": { - "Cache-Control": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/components/schemas/AxiosHeaders" - }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] - } - ] - }, - "Content-Encoding": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/components/schemas/AxiosHeaders" - }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] - } - ] - }, - "Content-Length": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/components/schemas/AxiosHeaders" - }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] - } - ] - }, - "Content-Type": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/components/schemas/AxiosHeaders" - }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] - } - ] - }, - "Server": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/components/schemas/AxiosHeaders" - }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] - } - ] - }, - "set-cookie": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, "AxiosHeaders": { "type": "object" }, + "AxiosResponseHeaders": { + "properties": {} + }, "AxiosRequestHeaders": { "properties": { "Accept": { @@ -33124,6 +32716,82 @@ ] } }, + "/applications/@me/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Application" + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "tags": [ + "applications" + ] + }, + "patch": { + "security": [ + { + "bearer": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApplicationModifySchema" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Application" + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "tags": [ + "applications" + ] + } + }, "/applications/{application_id}/skus/": { "get": { "security": [ diff --git a/assets/schemas.json b/assets/schemas.json index 20a7d9a..5d883f4 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -101369,7 +101369,7 @@ "sending_dns_records": { "type": "array", "items": { - "$ref": "#/definitions/DNSRecord" + "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/Domains\",{with:{\"resolution-mode\":\"import\"}}).DNSRecord" } } }, @@ -101390,7 +101390,7 @@ "status" ], "definitions": { - "DNSRecord": { + "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/Domains\",{with:{\"resolution-mode\":\"import\"}}).DNSRecord": { "type": "object", "properties": { "cached": { @@ -104992,7 +104992,7 @@ "type": "string" }, "template": { - "$ref": "#/definitions/IDomainTemplate" + "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -105008,7 +105008,7 @@ "status" ], "definitions": { - "IDomainTemplate": { + "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { "type": "object", "properties": { "name": { @@ -105035,7 +105035,7 @@ "type": "string" }, "version": { - "$ref": "#/definitions/TemplateVersion" + "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" }, "versions": { "type": "array", @@ -105094,7 +105094,7 @@ "name" ] }, - "TemplateVersion": { + "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { "additionalProperties": false, "type": "object", "properties": { @@ -105172,7 +105172,7 @@ "items": { "type": "array", "items": { - "$ref": "#/definitions/IDomainTemplate" + "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "paging": { @@ -105213,7 +105213,7 @@ "status" ], "definitions": { - "IDomainTemplate": { + "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { "type": "object", "properties": { "name": { @@ -105240,7 +105240,7 @@ "type": "string" }, "version": { - "$ref": "#/definitions/TemplateVersion" + "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" }, "versions": { "type": "array", @@ -105299,7 +105299,7 @@ "name" ] }, - "TemplateVersion": { + "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { "additionalProperties": false, "type": "object", "properties": { @@ -105375,7 +105375,7 @@ "type": "object", "properties": { "template": { - "$ref": "#/definitions/IDomainTemplate" + "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -105390,7 +105390,7 @@ "status" ], "definitions": { - "IDomainTemplate": { + "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { "type": "object", "properties": { "name": { @@ -105417,7 +105417,7 @@ "type": "string" }, "version": { - "$ref": "#/definitions/TemplateVersion" + "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" }, "versions": { "type": "array", @@ -105476,7 +105476,7 @@ "name" ] }, - "TemplateVersion": { + "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { "additionalProperties": false, "type": "object", "properties": { @@ -105620,7 +105620,7 @@ "type": "string" }, "template": { - "$ref": "#/definitions/IDomainTemplate" + "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate" } }, "additionalProperties": false, @@ -105636,7 +105636,7 @@ "status" ], "definitions": { - "IDomainTemplate": { + "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Interfaces/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).IDomainTemplate": { "type": "object", "properties": { "name": { @@ -105663,7 +105663,7 @@ "type": "string" }, "version": { - "$ref": "#/definitions/TemplateVersion" + "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion" }, "versions": { "type": "array", @@ -105722,7 +105722,7 @@ "name" ] }, - "TemplateVersion": { + "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Domains/DomainTemplates\",{with:{\"resolution-mode\":\"import\"}}).TemplateVersion": { "additionalProperties": false, "type": "object", "properties": { @@ -106855,7 +106855,7 @@ "type": "object", "properties": { "body": { - "$ref": "#/definitions/SuppressionDataType" + "$ref": "#/definitions/import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Suppressions/Suppressions\",{with:{\"resolution-mode\":\"import\"}}).SuppressionDataType" }, "status": { "type": "integer" @@ -106867,7 +106867,7 @@ "status" ], "definitions": { - "SuppressionDataType": { + "import(\"/home/Rory/git/spacebar/server-master/node_modules/mailgun.js/Types/Types/Suppressions/Suppressions\",{with:{\"resolution-mode\":\"import\"}}).SuppressionDataType": { "anyOf": [ { "type": "object", @@ -107083,10 +107083,10 @@ "headers": { "anyOf": [ { - "$ref": "#/definitions/AxiosResponseHeaders" + "$ref": "#/definitions/Partial" }, { - "$ref": "#/definitions/Partial_1" + "$ref": "#/definitions/AxiosResponseHeaders" } ] }, @@ -107108,127 +107108,7 @@ "type": "object", "additionalProperties": false }, - "AxiosResponseHeaders": { - "additionalProperties": false, - "properties": { - "Cache-Control": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/definitions/AxiosHeaders" - }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] - } - ] - }, - "Content-Encoding": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/definitions/AxiosHeaders" - }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] - } - ] - }, - "Content-Length": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/definitions/AxiosHeaders" - }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] - } - ] - }, - "Content-Type": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/definitions/AxiosHeaders" - }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] - } - ] - }, - "Server": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/definitions/AxiosHeaders" - }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] - } - ] - }, - "set-cookie": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "AxiosHeaders": { - "type": "object", - "additionalProperties": {} - }, - "Partial_1": { + "Partial": { "type": "object", "properties": { "Cache-Control": { @@ -107345,6 +107225,14 @@ }, "additionalProperties": false }, + "AxiosHeaders": { + "type": "object", + "additionalProperties": {} + }, + "AxiosResponseHeaders": { + "additionalProperties": false, + "properties": {} + }, "InternalAxiosRequestConfig": { "type": "object", "properties": { @@ -107598,10 +107486,6 @@ } ] }, - "parseReviver": { - "type": "object", - "additionalProperties": false - }, "fetchOptions": { "anyOf": [ {