Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
"linkedDataTypeIdentifiers": [
"OBJECT"
],
"type": "{ payload: T, headers: OBJECT<{}> }"
"type": "{ payload: T, headers: OBJECT<{}>, query_params: OBJECT<{}>, path_params: OBJECT<{}> }"
}
8 changes: 4 additions & 4 deletions definitions/draco_rest/flow_types/rest.proto.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
"name": [
{
"code": "en-US",
"content": "Rest Endpoint"
"content": "Webhook"
}
],
"description": [
{
"code": "en-US",
"content": "A REST API is a web service that lets clients interact with data on a server using standard HTTP methods like GET, POST, PUT, and DELETE usually returning results in JSON format."
"content": "A Webhook is an HTTP endpoint that listens for incoming requests from external services or clients, allowing you to react to events in real time using standard HTTP methods like GET, POST, PUT, and DELETE."
}
],
"documentation": [],
"displayMessage": [
{
"code": "en-US",
"content": "Trigger Rest-Flow on ${httpMethod} with a Request to ${httpURL}"
"content": "Webhook on ${httpMethod} at ${httpURL}"
}
],
"alias": [
{
"code": "en-US",
"content": "http;rest;route;web;webhook"
"content": "webhook;http;rest;route;web"
}
],
"displayIcon": "tabler:world-www",
Expand Down
25 changes: 22 additions & 3 deletions definitions/draco_rest/functions/rest_control_respond.proto.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@
],
"documentation": []
},
{
"runtimeName": "http_schema",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Content Type"
}
],
"description": [
{
"code": "en-US",
"content": "Specifies the MIME type of the response payload, such as application/json, application/xml, or text/plain. This determines the expected format of the payload parameter."
}
],
"documentation": []
},
{
"runtimeName": "payload",
"defaultValue": null,
Expand All @@ -48,7 +65,7 @@
"description": [
{
"code": "en-US",
"content": "Contains the response payload, such as JSON, XML, form data, or binary content, depending on the Content-Type header."
"content": "Contains the response payload. For application/json the value must be an OBJECT, for all other content types a plain string is expected."
}
],
"documentation": []
Expand Down Expand Up @@ -82,9 +99,11 @@
}
],
"displayIcon": "tabler:cube-send",
"signature": "<T>(http_status_code: HTTP_STATUS_CODE, headers: OBJECT<{}>, payload: T): void",
"signature": "<S extends HTTP_SCHEMA>(http_status_code: HTTP_STATUS_CODE, headers: OBJECT<{}>, http_schema: S, payload: HTTP_PAYLOAD<S>): void",
"linkedDataTypeIdentifiers": [
"HTTP_STATUS_CODE",
"OBJECT"
"OBJECT",
"HTTP_SCHEMA",
"HTTP_PAYLOAD"
]
}
8 changes: 4 additions & 4 deletions definitions/draco_rest/runtime_flow_types/rest.proto.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
"name": [
{
"code": "en-US",
"content": "Rest Endpoint"
"content": "Webhook"
}
],
"description": [
{
"code": "en-US",
"content": "A REST API is a web service that lets clients interact with data on a server using standard HTTP methods like GET, POST, PUT, and DELETE usually returning results in JSON format."
"content": "A Webhook is an HTTP endpoint that listens for incoming requests from external services or clients, allowing you to react to events in real time using standard HTTP methods like GET, POST, PUT, and DELETE."
}
],
"documentation": [],
"displayMessage": [
{
"code": "en-US",
"content": "Trigger Rest-Flow on ${httpMethod} with a Request to ${httpURL}"
"content": "Webhook on ${httpMethod} at ${httpURL}"
}
],
"alias": [
{
"code": "en-US",
"content": "http;rest;route;web;webhook"
"content": "webhook;http;rest;route;web"
}
],
"displayIcon": "tabler:world-www",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@
],
"documentation": []
},
{
"runtimeName": "http_schema",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Content Type"
}
],
"description": [
{
"code": "en-US",
"content": "Specifies the MIME type of the response payload, such as application/json, application/xml, or text/plain. This determines the expected format of the payload parameter."
}
],
"documentation": []
},
{
"runtimeName": "payload",
"defaultValue": null,
Expand All @@ -47,7 +64,7 @@
"description": [
{
"code": "en-US",
"content": "Contains the response payload, such as JSON, XML, form data, or binary content, depending on the Content-Type header."
"content": "Contains the response payload. For application/json the value must be an OBJECT, for all other content types a plain string is expected."
}
],
"documentation": []
Expand Down Expand Up @@ -81,9 +98,11 @@
}
],
"displayIcon": "tabler:cube-send",
"signature": "<T>(http_status_code: HTTP_STATUS_CODE, headers: OBJECT<{}>, payload: T): void",
"signature": "<S extends HTTP_SCHEMA>(http_status_code: HTTP_STATUS_CODE, headers: OBJECT<{}>, http_schema: S, payload: HTTP_PAYLOAD<S>): void",
"linkedDataTypeIdentifiers": [
"HTTP_STATUS_CODE",
"OBJECT"
"OBJECT",
"HTTP_SCHEMA",
"HTTP_PAYLOAD"
]
}
25 changes: 25 additions & 0 deletions definitions/taurus/http/data_types/http_auth_place.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"identifier": "HTTP_AUTH_PLACE",
"name": [
{
"code": "en-US",
"content": "HTTP credential placement"
}
],
"alias": [
{
"code": "en-US",
"content": "http;method;get;post;put;delete;path;head"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "HTTP credential placement"
}
],
"genericKeys": ["T"],
"type": "T extends 'Bearer' ? 'Header' : T extends 'Basic' ? 'Header' : T extends undefined ? undefined : 'Header' | 'Url'",
"linkedDataTypeIdentifiers": [],
"rules": []
}
24 changes: 24 additions & 0 deletions definitions/taurus/http/data_types/http_auth_type.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"identifier": "HTTP_AUTH_TYPE",
"name": [
{
"code": "en-US",
"content": "HTTP credential variant"
}
],
"alias": [
{
"code": "en-US",
"content": "http;method;get;post;put;delete;path;head"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "HTTP credential variant"
}
],
"type": "'Bearer' | 'Basic' | 'X-API-Key' | string | undefined",
"linkedDataTypeIdentifiers": [],
"rules": []
}
25 changes: 25 additions & 0 deletions definitions/taurus/http/data_types/http_auth_value.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"identifier": "HTTP_AUTH_VALUE",
"name": [
{
"code": "en-US",
"content": "HTTP credential value"
}
],
"alias": [
{
"code": "en-US",
"content": "http;method;get;post;put;delete;path;head"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "HTTP credential value"
}
],
"genericKeys": ["T"],
"type": "T extends 'Basic' ? { username: string, password: string } : T extends undefined ? undefined : string",
"linkedDataTypeIdentifiers": [],
"rules": []
}
25 changes: 25 additions & 0 deletions definitions/taurus/http/data_types/http_payload.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"identifier": "HTTP_PAYLOAD",
"name": [
{
"code": "en-US",
"content": "HTTP payload"
}
],
"alias": [
{
"code": "en-US",
"content": "http;method;get;post;put;delete;path;head"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "HTTP payload"
}
],
"genericKeys": ["T"],
"type": "T extends 'application/json' ? OBJECT<{}> : T extends undefined ? undefined : string",
"linkedDataTypeIdentifiers": ["OBJECT"],
"rules": []
}
24 changes: 24 additions & 0 deletions definitions/taurus/http/data_types/http_schema.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"identifier": "HTTP_SCHEMA",
"name": [
{
"code": "en-US",
"content": "HTTP schema"
}
],
"alias": [
{
"code": "en-US",
"content": "http;method;get;post;put;delete;path;head"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "HTTP schema"
}
],
"type": "'application/json' | 'application/xml' | 'text/plain' | 'text/csv' | string | undefined",
"linkedDataTypeIdentifiers": [],
"rules": []
}
Loading