diff --git a/.schemastore/config.schema.json b/.schemastore/config.schema.json index 09fa2fcdcf98..0fb880cca54b 100644 --- a/.schemastore/config.schema.json +++ b/.schemastore/config.schema.json @@ -126,6 +126,60 @@ "config" ] }, + "httpRequestConfig": { + "type": "object", + "properties": { + "url": { + "title": "HTTP address of API endpoint", + "description": "This URL will be used to send the emails to.", + "examples": [ + "https://example.com/api/v1/email" + ], + "type": "string", + "pattern": "^https?://" + }, + "method": { + "type": "string", + "description": "The HTTP method to use (GET, POST, etc). Defaults to POST.", + "default": "POST" + }, + "headers": { + "type": "object", + "description": "The HTTP headers that must be applied to request", + "additionalProperties": { + "type": "string" + } + }, + "body": { + "type": "string", + "format": "uri", + "pattern": "^(http|https|file|base64)://", + "description": "URI pointing to the jsonnet template used for payload generation. Only used for those HTTP methods, which support HTTP body payloads", + "default": "base64://ZnVuY3Rpb24oY3R4KSB7CiAgcmVjaXBpZW50OiBjdHguUmVjaXBpZW50LAogIHRlbXBsYXRlX3R5cGU6IGN0eC5UZW1wbGF0ZVR5cGUsCiAgdG86IGlmICJUZW1wbGF0ZURhdGEiIGluIGN0eCAmJiAiVG8iIGluIGN0eC5UZW1wbGF0ZURhdGEgdGhlbiBjdHguVGVtcGxhdGVEYXRhLlRvIGVsc2UgbnVsbCwKICByZWNvdmVyeV9jb2RlOiBpZiAiVGVtcGxhdGVEYXRhIiBpbiBjdHggJiYgIlJlY292ZXJ5Q29kZSIgaW4gY3R4LlRlbXBsYXRlRGF0YSB0aGVuIGN0eC5UZW1wbGF0ZURhdGEuUmVjb3ZlcnlDb2RlIGVsc2UgbnVsbCwKICByZWNvdmVyeV91cmw6IGlmICJUZW1wbGF0ZURhdGEiIGluIGN0eCAmJiAiUmVjb3ZlcnlVUkwiIGluIGN0eC5UZW1wbGF0ZURhdGEgdGhlbiBjdHguVGVtcGxhdGVEYXRhLlJlY292ZXJ5VVJMIGVsc2UgbnVsbCwKICB2ZXJpZmljYXRpb25fdXJsOiBpZiAiVGVtcGxhdGVEYXRhIiBpbiBjdHggJiYgIlZlcmlmaWNhdGlvblVSTCIgaW4gY3R4LlRlbXBsYXRlRGF0YSB0aGVuIGN0eC5UZW1wbGF0ZURhdGEuVmVyaWZpY2F0aW9uVVJMIGVsc2UgbnVsbCwKICB2ZXJpZmljYXRpb25fY29kZTogaWYgIlRlbXBsYXRlRGF0YSIgaW4gY3R4ICYmICJWZXJpZmljYXRpb25Db2RlIiBpbiBjdHguVGVtcGxhdGVEYXRhIHRoZW4gY3R4LlRlbXBsYXRlRGF0YS5WZXJpZmljYXRpb25Db2RlIGVsc2UgbnVsbCwKICBzdWJqZWN0OiBjdHguU3ViamVjdCwKICBib2R5OiBjdHguQm9keQp9Cg==", + "examples": [ + "file:///path/to/body.jsonnet", + "file://./body.jsonnet", + "base64://ZnVuY3Rpb24oY3R4KSB7CiAgaWRlbnRpdHlfaWQ6IGlmIGN0eFsiaWRlbnRpdHkiXSAhPSBudWxsIHRoZW4gY3R4LmlkZW50aXR5LmlkLAp9=", + "https://oryapis.com/default_body.jsonnet" + ] + }, + "auth": { + "type": "object", + "title": "Auth mechanisms", + "description": "Define which auth mechanism to use for auth with the HTTP email provider", + "oneOf": [ + { + "$ref": "#/definitions/webHookAuthApiKeyProperties" + }, + { + "$ref": "#/definitions/webHookAuthBasicAuthProperties" + } + ] + }, + "additionalProperties": false + }, + "additionalProperties": false + }, "webHookAuthApiKeyProperties": { "properties": { "type": { @@ -1064,8 +1118,7 @@ "/dashboard", "https://www.my-app.com/" ] - ], - "uniqueItems": true + ] }, "flows": { "type": "object", @@ -1721,6 +1774,24 @@ 60 ] }, + "delivery_strategy": { + "title": "Delivery Strategy", + "description": "Defines how emails will be sent, either through SMTP (default) or HTTP.", + "type": "string", + "enum": ["smtp", "http"], + "default": "smtp" + }, + "http": { + "title": "HTTP Configuration", + "description": "Configures outgoing emails using HTTP.", + "type": "object", + "properties": { + "request_config": { + "$ref": "#/definitions/httpRequestConfig" + } + }, + "additionalProperties": false + }, "smtp": { "title": "SMTP Configuration", "description": "Configures outgoing emails using the SMTP protocol.", @@ -1902,6 +1973,12 @@ "Authorization": "Bearer some-token" } ] + }, + "override_return_to": { + "title":"Persist OAuth2 request between flows", + "type":"boolean", + "default":false, + "description":"Override the return_to query parameter with the OAuth2 provider request URL when perfoming an OAuth2 login flow." } }, "additionalProperties": false @@ -2120,7 +2197,7 @@ "additionalProperties": false }, "tracing": { - "$ref": "https://raw.githubusercontent.com/ory/x/v0.0.551/otelx/config.schema.json" + "$ref": "https://raw.githubusercontent.com/ory/x/v0.0.562/otelx/config.schema.json" }, "log": { "title": "Log", @@ -2663,4 +2740,4 @@ "selfservice" ], "additionalProperties": false -} +} \ No newline at end of file