|
| 1 | +model CXMLWebhookCreateRequest { |
| 2 | + @doc("Name of the CXML Webhook.") |
| 3 | + @example("My CXML Webhook") |
| 4 | + name?: string; |
| 5 | + |
| 6 | + @doc("Used for of the CXML Webhook.") |
| 7 | + @example("calling") |
| 8 | + used_for?: "calling" | "messaging" = "calling"; |
| 9 | + |
| 10 | + @doc("Primary request url of the CXML Webhook.") |
| 11 | + @example("https://primary.com") |
| 12 | + primary_request_url: string; |
| 13 | + |
| 14 | + @doc("Primary request method of the CXML Webhook.") |
| 15 | + @example("GET") |
| 16 | + primary_request_method?: "GET" | "POST" = "POST"; |
| 17 | + |
| 18 | + @doc("Fallback request url of the CXML Webhook.") |
| 19 | + @example("https://fallback.com") |
| 20 | + fallback_request_url?: string; |
| 21 | + |
| 22 | + @doc("Fallback request method of the CXML Webhook.") |
| 23 | + @example("GET") |
| 24 | + fallback_request_method?: "GET" | "POST" = "POST"; |
| 25 | + |
| 26 | + @doc("Status callback url of the CXML Webhook.") |
| 27 | + @example("https://callback.com") |
| 28 | + status_callback_url?: string; |
| 29 | + |
| 30 | + @doc("Status callback method of the CXML Webhook.") |
| 31 | + @example("POST") |
| 32 | + status_callback_method?: "GET" | "POST" = "POST"; |
| 33 | +} |
| 34 | + |
| 35 | +model CXMLWebhookUpdateRequest { |
| 36 | + @doc("Name of the CXML Webhook.") |
| 37 | + @example("My CXML Webhook") |
| 38 | + name?: string; |
| 39 | + |
| 40 | + @doc("Used for of the CXML Webhook.") |
| 41 | + @example("calling") |
| 42 | + used_for?: "calling" | "messaging" = "calling"; |
| 43 | + |
| 44 | + @doc("Primary request url of the CXML Webhook.") |
| 45 | + @example("https://primary.com") |
| 46 | + primary_request_url?: string; |
| 47 | + |
| 48 | + @doc("Primary request method of the CXML Webhook.") |
| 49 | + @example("GET") |
| 50 | + primary_request_method?: "GET" | "POST" = "POST"; |
| 51 | + |
| 52 | + @doc("Fallback request url of the CXML Webhook.") |
| 53 | + @example("https://fallback.com") |
| 54 | + fallback_request_url?: string; |
| 55 | + |
| 56 | + @doc("Fallback request method of the CXML Webhook.") |
| 57 | + @example("GET") |
| 58 | + fallback_request_method?: "GET" | "POST" = "POST"; |
| 59 | + |
| 60 | + @doc("Status callback url of the CXML Webhook.") |
| 61 | + @example("https://callback.com") |
| 62 | + status_callback_url?: string; |
| 63 | + |
| 64 | + @doc("Status callback method of the CXML Webhook.") |
| 65 | + @example("POST") |
| 66 | + status_callback_method?: "GET" | "POST" = "POST"; |
| 67 | +} |
0 commit comments