File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,14 @@ export interface Webhook {
3535 status : "Enabled" | "Disabled"
3636
3737 /**
38- * The type of content you wish to receive.
38+ * The type of content you wish to receive. Either Json or JsonAPI .
3939 */
40- contentType : "JsonAPI"
40+ contentType : "Json" | "JsonAPI"
41+
42+ /**
43+ * The attempted delivery mode of the webhook. Either AtMostOnce or AtLeastOnce.
44+ */
45+ deliveryMode : "AtMostOnce" | "AtLeastOnce"
4146
4247 /**
4348 * The secret token (see [Securing your webhooks](https://developers.unit.co/#securing-your-webhooks)).
@@ -61,14 +66,19 @@ export interface CreateWebhookRequest {
6166 url : string
6267
6368 /**
64- * The secret token(see Securing your webhooks).
69+ * The secret token(see ( Securing your webhooks)[https://developers.unit.co/webhooks/#securing-your-webhooks] ).
6570 */
6671 token ?: string
6772
6873 /**
69- * The type of content you wish to receive. Always JsonAPI.
74+ * The type of content you wish to receive. Either Json or JsonAPI.
75+ */
76+ contentType : "Json" | "JsonAPI"
77+
78+ /**
79+ * The attempted delivery mode of the webhook. Either AtMostOnce or AtLeastOnce.
7080 */
71- contentType : "JsonAPI "
81+ deliveryMode : "AtMostOnce" | "AtLeastOnce "
7282 }
7383}
7484
@@ -88,7 +98,7 @@ export interface PatchWebhookRequest {
8898 /**
8999 * The content type of the webhook. To modify or add specify the new content type.
90100 */
91- contentType ?: "JsonAPI"
101+ contentType ?: "Json" | " JsonAPI"
92102
93103 /**
94104 * The secret token of the webhook. To modify or add specify the token.
You can’t perform that action at this time.
0 commit comments