@foru-ms/sdk 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +4 -1
- package/dist/cjs/Client.js +16 -11
- package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/auth/client/Client.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/integrations/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/integrations/client/Client.js +6 -9
- package/dist/cjs/api/resources/integrations/client/requests/CreateIntegrationsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/integrations/client/requests/ListIntegrationsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/integrations/client/requests/UpdateIntegrationsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/integrations/types/UpdateIntegrationsResponse.d.ts +2 -0
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/client/Client.js +7 -14
- package/dist/cjs/api/resources/notifications/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/posts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/posts/client/Client.js +22 -49
- package/dist/cjs/api/resources/posts/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/posts/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +21 -1
- package/dist/cjs/api/resources/privateMessages/client/Client.js +79 -18
- package/dist/cjs/api/resources/privateMessages/client/requests/UpdatePrivateMessagesRequest.d.ts +16 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/UpdatePrivateMessagesRequest.js +3 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/privateMessages/types/UpdatePrivateMessagesResponse.d.ts +26 -0
- package/dist/cjs/api/resources/privateMessages/types/UpdatePrivateMessagesResponse.js +3 -0
- package/dist/cjs/api/resources/privateMessages/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/privateMessages/types/index.js +1 -0
- package/dist/cjs/api/resources/reports/client/Client.d.ts +21 -1
- package/dist/cjs/api/resources/reports/client/Client.js +88 -17
- package/dist/cjs/api/resources/reports/client/requests/UpdateReportsRequest.d.ts +16 -0
- package/dist/cjs/api/resources/reports/client/requests/UpdateReportsRequest.js +3 -0
- package/dist/cjs/api/resources/reports/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/reports/index.d.ts +1 -0
- package/dist/cjs/api/resources/reports/index.js +1 -0
- package/dist/cjs/api/resources/reports/types/UpdateReportsResponse.d.ts +28 -0
- package/dist/cjs/api/resources/reports/types/UpdateReportsResponse.js +3 -0
- package/dist/cjs/api/resources/reports/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/reports/types/index.js +17 -0
- package/dist/cjs/api/resources/roles/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/roles/client/Client.js +8 -9
- package/dist/cjs/api/resources/roles/client/requests/ListRolesRequest.d.ts +7 -2
- package/dist/cjs/api/resources/roles/types/ListRolesRequestSort.d.ts +6 -0
- package/dist/cjs/api/resources/roles/types/ListRolesRequestSort.js +9 -0
- package/dist/cjs/api/resources/roles/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/roles/types/index.js +1 -0
- package/dist/cjs/api/resources/search/client/Client.d.ts +29 -0
- package/dist/cjs/api/resources/search/client/Client.js +115 -0
- package/dist/cjs/api/resources/search/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/search/client/index.js +2 -0
- package/dist/cjs/api/resources/search/index.d.ts +2 -0
- package/dist/cjs/api/resources/search/index.js +18 -0
- package/dist/cjs/api/resources/search/types/SearchSearchResponse.d.ts +33 -0
- package/dist/cjs/api/resources/search/types/SearchSearchResponse.js +22 -0
- package/dist/cjs/api/resources/search/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/search/types/index.js +17 -0
- package/dist/cjs/api/resources/ssOs/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/ssOs/client/Client.js +6 -9
- package/dist/cjs/api/resources/ssOs/client/requests/CreateSsOsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/ssOs/client/requests/ListSsOsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/ssOs/client/requests/UpdateSsOsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/ssOs/types/UpdateSsOsResponse.d.ts +2 -0
- package/dist/cjs/api/resources/tags/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tags/client/Client.js +10 -18
- package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/threads/client/Client.js +26 -56
- package/dist/cjs/api/resources/threads/client/requests/CreateThreadsRequest.d.ts +6 -0
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/threads/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/threads/types/UpdateThreadsResponse.d.ts +5 -5
- package/dist/cjs/api/resources/users/client/Client.d.ts +20 -1
- package/dist/cjs/api/resources/users/client/Client.js +80 -28
- package/dist/cjs/api/resources/users/client/requests/CreateUsersRequest.d.ts +26 -0
- package/dist/cjs/api/resources/users/client/requests/CreateUsersRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +23 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +91 -15
- package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.ts +4 -0
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.ts +22 -0
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponse.d.ts +26 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/types/index.js +1 -0
- package/dist/cjs/api/types/Integration.d.ts +2 -0
- package/dist/cjs/api/types/IntegrationCreate.d.ts +2 -0
- package/dist/cjs/api/types/IntegrationList.d.ts +6 -0
- package/dist/cjs/api/types/IntegrationList.js +3 -0
- package/dist/cjs/api/types/IntegrationListResponse.d.ts +2 -0
- package/dist/cjs/api/types/IntegrationResponse.d.ts +2 -0
- package/dist/cjs/api/types/IntegrationUpdate.d.ts +2 -0
- package/dist/cjs/api/types/MeResponse.d.ts +22 -0
- package/dist/cjs/api/types/PrivateMessageUpdate.d.ts +8 -0
- package/dist/cjs/api/types/PrivateMessageUpdate.js +3 -0
- package/dist/cjs/api/types/ReportUpdate.d.ts +8 -0
- package/dist/cjs/api/types/ReportUpdate.js +3 -0
- package/dist/cjs/api/types/RoleList.d.ts +19 -0
- package/dist/cjs/api/types/RoleList.js +13 -0
- package/dist/cjs/api/types/Search.d.ts +1 -0
- package/dist/cjs/api/types/Search.js +3 -0
- package/dist/cjs/api/types/SearchListResponse.d.ts +18 -0
- package/dist/cjs/api/types/SearchListResponse.js +3 -0
- package/dist/cjs/api/types/SearchResponse.d.ts +6 -0
- package/dist/cjs/api/types/SearchResponse.js +3 -0
- package/dist/cjs/api/types/Sso.d.ts +2 -0
- package/dist/cjs/api/types/SsoCreate.d.ts +2 -0
- package/dist/cjs/api/types/SsoList.d.ts +6 -0
- package/dist/cjs/api/types/SsoList.js +3 -0
- package/dist/cjs/api/types/SsoListResponse.d.ts +2 -0
- package/dist/cjs/api/types/SsoResponse.d.ts +2 -0
- package/dist/cjs/api/types/SsoUpdate.d.ts +2 -0
- package/dist/cjs/api/types/Thread.d.ts +5 -5
- package/dist/cjs/api/types/ThreadCreate.d.ts +6 -0
- package/dist/cjs/api/types/ThreadListResponse.d.ts +5 -5
- package/dist/cjs/api/types/ThreadResponse.d.ts +5 -5
- package/dist/cjs/api/types/UserCreate.d.ts +20 -0
- package/dist/cjs/api/types/UserCreate.js +3 -0
- package/dist/cjs/api/types/Webhook.d.ts +2 -0
- package/dist/cjs/api/types/WebhookCreate.d.ts +4 -0
- package/dist/cjs/api/types/WebhookListResponse.d.ts +2 -0
- package/dist/cjs/api/types/WebhookResponse.d.ts +2 -0
- package/dist/cjs/api/types/WebhookUpdate.d.ts +14 -0
- package/dist/cjs/api/types/WebhookUpdate.js +3 -0
- package/dist/cjs/api/types/index.d.ts +10 -0
- package/dist/cjs/api/types/index.js +10 -0
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +14 -10
- package/dist/cjs/auth/HeaderAuthProvider.js +18 -9
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -2
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +4 -1
- package/dist/esm/Client.mjs +6 -1
- package/dist/esm/api/resources/auth/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/auth/client/Client.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/integrations/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/integrations/client/Client.mjs +6 -9
- package/dist/esm/api/resources/integrations/client/requests/CreateIntegrationsRequest.d.mts +2 -0
- package/dist/esm/api/resources/integrations/client/requests/ListIntegrationsRequest.d.mts +2 -2
- package/dist/esm/api/resources/integrations/client/requests/UpdateIntegrationsRequest.d.mts +2 -0
- package/dist/esm/api/resources/integrations/types/UpdateIntegrationsResponse.d.mts +2 -0
- package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/notifications/client/Client.mjs +7 -14
- package/dist/esm/api/resources/notifications/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/notifications/client/requests/index.mjs +2 -1
- package/dist/esm/api/resources/posts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/posts/client/Client.mjs +22 -49
- package/dist/esm/api/resources/posts/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/posts/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/privateMessages/client/Client.d.mts +21 -1
- package/dist/esm/api/resources/privateMessages/client/Client.mjs +79 -18
- package/dist/esm/api/resources/privateMessages/client/requests/UpdatePrivateMessagesRequest.d.mts +16 -0
- package/dist/esm/api/resources/privateMessages/client/requests/UpdatePrivateMessagesRequest.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/privateMessages/types/UpdatePrivateMessagesResponse.d.mts +26 -0
- package/dist/esm/api/resources/privateMessages/types/UpdatePrivateMessagesResponse.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/types/index.d.mts +1 -0
- package/dist/esm/api/resources/privateMessages/types/index.mjs +1 -0
- package/dist/esm/api/resources/reports/client/Client.d.mts +21 -1
- package/dist/esm/api/resources/reports/client/Client.mjs +88 -17
- package/dist/esm/api/resources/reports/client/requests/UpdateReportsRequest.d.mts +16 -0
- package/dist/esm/api/resources/reports/client/requests/UpdateReportsRequest.mjs +2 -0
- package/dist/esm/api/resources/reports/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/reports/index.d.mts +1 -0
- package/dist/esm/api/resources/reports/index.mjs +1 -0
- package/dist/esm/api/resources/reports/types/UpdateReportsResponse.d.mts +28 -0
- package/dist/esm/api/resources/reports/types/UpdateReportsResponse.mjs +2 -0
- package/dist/esm/api/resources/reports/types/index.d.mts +1 -0
- package/dist/esm/api/resources/reports/types/index.mjs +1 -0
- package/dist/esm/api/resources/roles/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/roles/client/Client.mjs +8 -9
- package/dist/esm/api/resources/roles/client/requests/ListRolesRequest.d.mts +7 -2
- package/dist/esm/api/resources/roles/types/ListRolesRequestSort.d.mts +6 -0
- package/dist/esm/api/resources/roles/types/ListRolesRequestSort.mjs +6 -0
- package/dist/esm/api/resources/roles/types/index.d.mts +1 -0
- package/dist/esm/api/resources/roles/types/index.mjs +1 -0
- package/dist/esm/api/resources/search/client/Client.d.mts +29 -0
- package/dist/esm/api/resources/search/client/Client.mjs +78 -0
- package/dist/esm/api/resources/search/client/index.d.mts +1 -0
- package/dist/esm/api/resources/search/client/index.mjs +1 -0
- package/dist/esm/api/resources/search/index.d.mts +2 -0
- package/dist/esm/api/resources/search/index.mjs +2 -0
- package/dist/esm/api/resources/search/types/SearchSearchResponse.d.mts +33 -0
- package/dist/esm/api/resources/search/types/SearchSearchResponse.mjs +19 -0
- package/dist/esm/api/resources/search/types/index.d.mts +1 -0
- package/dist/esm/api/resources/search/types/index.mjs +1 -0
- package/dist/esm/api/resources/ssOs/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/ssOs/client/Client.mjs +6 -9
- package/dist/esm/api/resources/ssOs/client/requests/CreateSsOsRequest.d.mts +2 -0
- package/dist/esm/api/resources/ssOs/client/requests/ListSsOsRequest.d.mts +2 -2
- package/dist/esm/api/resources/ssOs/client/requests/UpdateSsOsRequest.d.mts +2 -0
- package/dist/esm/api/resources/ssOs/types/UpdateSsOsResponse.d.mts +2 -0
- package/dist/esm/api/resources/tags/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tags/client/Client.mjs +10 -18
- package/dist/esm/api/resources/threads/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/threads/client/Client.mjs +26 -56
- package/dist/esm/api/resources/threads/client/requests/CreateThreadsRequest.d.mts +6 -0
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/threads/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/threads/types/UpdateThreadsResponse.d.mts +5 -5
- package/dist/esm/api/resources/users/client/Client.d.mts +20 -1
- package/dist/esm/api/resources/users/client/Client.mjs +80 -28
- package/dist/esm/api/resources/users/client/requests/CreateUsersRequest.d.mts +26 -0
- package/dist/esm/api/resources/users/client/requests/CreateUsersRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +23 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +91 -15
- package/dist/esm/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.mts +4 -0
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.mts +22 -0
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponse.d.mts +26 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/types/index.mjs +1 -0
- package/dist/esm/api/types/Integration.d.mts +2 -0
- package/dist/esm/api/types/IntegrationCreate.d.mts +2 -0
- package/dist/esm/api/types/IntegrationList.d.mts +6 -0
- package/dist/esm/api/types/IntegrationList.mjs +2 -0
- package/dist/esm/api/types/IntegrationListResponse.d.mts +2 -0
- package/dist/esm/api/types/IntegrationResponse.d.mts +2 -0
- package/dist/esm/api/types/IntegrationUpdate.d.mts +2 -0
- package/dist/esm/api/types/MeResponse.d.mts +22 -0
- package/dist/esm/api/types/PrivateMessageUpdate.d.mts +8 -0
- package/dist/esm/api/types/PrivateMessageUpdate.mjs +2 -0
- package/dist/esm/api/types/ReportUpdate.d.mts +8 -0
- package/dist/esm/api/types/ReportUpdate.mjs +2 -0
- package/dist/esm/api/types/RoleList.d.mts +19 -0
- package/dist/esm/api/types/RoleList.mjs +10 -0
- package/dist/esm/api/types/Search.d.mts +1 -0
- package/dist/esm/api/types/Search.mjs +2 -0
- package/dist/esm/api/types/SearchListResponse.d.mts +18 -0
- package/dist/esm/api/types/SearchListResponse.mjs +2 -0
- package/dist/esm/api/types/SearchResponse.d.mts +6 -0
- package/dist/esm/api/types/SearchResponse.mjs +2 -0
- package/dist/esm/api/types/Sso.d.mts +2 -0
- package/dist/esm/api/types/SsoCreate.d.mts +2 -0
- package/dist/esm/api/types/SsoList.d.mts +6 -0
- package/dist/esm/api/types/SsoList.mjs +2 -0
- package/dist/esm/api/types/SsoListResponse.d.mts +2 -0
- package/dist/esm/api/types/SsoResponse.d.mts +2 -0
- package/dist/esm/api/types/SsoUpdate.d.mts +2 -0
- package/dist/esm/api/types/Thread.d.mts +5 -5
- package/dist/esm/api/types/ThreadCreate.d.mts +6 -0
- package/dist/esm/api/types/ThreadListResponse.d.mts +5 -5
- package/dist/esm/api/types/ThreadResponse.d.mts +5 -5
- package/dist/esm/api/types/UserCreate.d.mts +20 -0
- package/dist/esm/api/types/UserCreate.mjs +2 -0
- package/dist/esm/api/types/Webhook.d.mts +2 -0
- package/dist/esm/api/types/WebhookCreate.d.mts +4 -0
- package/dist/esm/api/types/WebhookListResponse.d.mts +2 -0
- package/dist/esm/api/types/WebhookResponse.d.mts +2 -0
- package/dist/esm/api/types/WebhookUpdate.d.mts +14 -0
- package/dist/esm/api/types/WebhookUpdate.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +10 -0
- package/dist/esm/api/types/index.mjs +10 -0
- package/dist/esm/auth/HeaderAuthProvider.d.mts +14 -10
- package/dist/esm/auth/HeaderAuthProvider.mjs +18 -9
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +1 -2
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +304 -0
|
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
57
|
exports.WebhooksClient = void 0;
|
|
47
58
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
@@ -55,7 +66,7 @@ const Forum = __importStar(require("../../../index.js"));
|
|
|
55
66
|
* Operations for webhooks
|
|
56
67
|
*/
|
|
57
68
|
class WebhooksClient {
|
|
58
|
-
constructor(options) {
|
|
69
|
+
constructor(options = {}) {
|
|
59
70
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
60
71
|
}
|
|
61
72
|
/**
|
|
@@ -81,13 +92,10 @@ class WebhooksClient {
|
|
|
81
92
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
82
93
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
83
94
|
const { limit, cursor } = request;
|
|
84
|
-
const _queryParams = {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
if (cursor != null) {
|
|
89
|
-
_queryParams.cursor = cursor;
|
|
90
|
-
}
|
|
95
|
+
const _queryParams = {
|
|
96
|
+
limit,
|
|
97
|
+
cursor,
|
|
98
|
+
};
|
|
91
99
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
92
100
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
93
101
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -324,6 +332,77 @@ class WebhooksClient {
|
|
|
324
332
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/webhooks/{id}");
|
|
325
333
|
});
|
|
326
334
|
}
|
|
335
|
+
/**
|
|
336
|
+
* Update an existing webhook. Only provided fields will be modified.
|
|
337
|
+
*
|
|
338
|
+
* **Requires feature: webhooks**
|
|
339
|
+
*
|
|
340
|
+
* @param {Forum.UpdateWebhooksRequest} request
|
|
341
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
342
|
+
*
|
|
343
|
+
* @throws {@link Forum.BadRequestError}
|
|
344
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
345
|
+
* @throws {@link Forum.PaymentRequiredError}
|
|
346
|
+
* @throws {@link Forum.NotFoundError}
|
|
347
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
348
|
+
* @throws {@link Forum.InternalServerError}
|
|
349
|
+
*
|
|
350
|
+
* @example
|
|
351
|
+
* await client.webhooks.update({
|
|
352
|
+
* id: "id"
|
|
353
|
+
* })
|
|
354
|
+
*/
|
|
355
|
+
update(request, requestOptions) {
|
|
356
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
357
|
+
}
|
|
358
|
+
__update(request, requestOptions) {
|
|
359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
361
|
+
const { id } = request, _body = __rest(request, ["id"]);
|
|
362
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
363
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
364
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
365
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `webhooks/${core.url.encodePathParam(id)}`),
|
|
366
|
+
method: "PATCH",
|
|
367
|
+
headers: _headers,
|
|
368
|
+
contentType: "application/json",
|
|
369
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
370
|
+
requestType: "json",
|
|
371
|
+
body: _body,
|
|
372
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
373
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
374
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
375
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
376
|
+
logging: this._options.logging,
|
|
377
|
+
});
|
|
378
|
+
if (_response.ok) {
|
|
379
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
380
|
+
}
|
|
381
|
+
if (_response.error.reason === "status-code") {
|
|
382
|
+
switch (_response.error.statusCode) {
|
|
383
|
+
case 400:
|
|
384
|
+
throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
|
|
385
|
+
case 401:
|
|
386
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
387
|
+
case 402:
|
|
388
|
+
throw new Forum.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
389
|
+
case 404:
|
|
390
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
391
|
+
case 429:
|
|
392
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
393
|
+
case 500:
|
|
394
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
395
|
+
default:
|
|
396
|
+
throw new errors.ForumError({
|
|
397
|
+
statusCode: _response.error.statusCode,
|
|
398
|
+
body: _response.error.body,
|
|
399
|
+
rawResponse: _response.rawResponse,
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/webhooks/{id}");
|
|
404
|
+
});
|
|
405
|
+
}
|
|
327
406
|
/**
|
|
328
407
|
* Retrieve a paginated list of deliveries for Webhook.
|
|
329
408
|
*
|
|
@@ -349,13 +428,10 @@ class WebhooksClient {
|
|
|
349
428
|
return __awaiter(this, void 0, void 0, function* () {
|
|
350
429
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
351
430
|
const { id, cursor, limit } = request;
|
|
352
|
-
const _queryParams = {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
if (limit != null) {
|
|
357
|
-
_queryParams.limit = limit.toString();
|
|
358
|
-
}
|
|
431
|
+
const _queryParams = {
|
|
432
|
+
cursor,
|
|
433
|
+
limit,
|
|
434
|
+
};
|
|
359
435
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
360
436
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
361
437
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -15,4 +15,8 @@ export interface CreateWebhooksRequest {
|
|
|
15
15
|
events: string[];
|
|
16
16
|
/** Secret for signature verification (auto-generated if missing) */
|
|
17
17
|
secret?: string;
|
|
18
|
+
/** Whether webhook is active */
|
|
19
|
+
active?: boolean;
|
|
20
|
+
/** Custom extended data */
|
|
21
|
+
extendedData?: Record<string, unknown>;
|
|
18
22
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* id: "id"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface UpdateWebhooksRequest {
|
|
8
|
+
/** Webhook ID */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Webhook name */
|
|
11
|
+
name?: string;
|
|
12
|
+
/** Target URL */
|
|
13
|
+
url?: string;
|
|
14
|
+
/** Event types to trigger on */
|
|
15
|
+
events?: string[];
|
|
16
|
+
/** New secret */
|
|
17
|
+
secret?: string;
|
|
18
|
+
/** Enable/disable webhook */
|
|
19
|
+
active?: boolean;
|
|
20
|
+
/** Custom extended data */
|
|
21
|
+
extendedData?: Record<string, unknown>;
|
|
22
|
+
}
|
|
@@ -5,3 +5,4 @@ export type { ListDeliveriesWebhooksRequest } from "./ListDeliveriesWebhooksRequ
|
|
|
5
5
|
export type { ListWebhooksRequest } from "./ListWebhooksRequest.js";
|
|
6
6
|
export type { RetrieveDeliveryWebhooksRequest } from "./RetrieveDeliveryWebhooksRequest.js";
|
|
7
7
|
export type { RetrieveWebhooksRequest } from "./RetrieveWebhooksRequest.js";
|
|
8
|
+
export type { UpdateWebhooksRequest } from "./UpdateWebhooksRequest.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface UpdateWebhooksResponse {
|
|
2
|
+
data?: UpdateWebhooksResponse.Data;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace UpdateWebhooksResponse {
|
|
5
|
+
interface Data {
|
|
6
|
+
id: string;
|
|
7
|
+
/** Webhook name */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Webhook endpoint URL */
|
|
10
|
+
url: string;
|
|
11
|
+
/** Event types to trigger on */
|
|
12
|
+
events: string[];
|
|
13
|
+
/** Whether webhook is active */
|
|
14
|
+
active: boolean;
|
|
15
|
+
/** Custom extended data */
|
|
16
|
+
extendedData: Record<string, unknown> | null;
|
|
17
|
+
/** Last trigger timestamp */
|
|
18
|
+
lastTriggered: string | null;
|
|
19
|
+
/** Consecutive failure count */
|
|
20
|
+
failureCount: number;
|
|
21
|
+
/** Webhook creation timestamp */
|
|
22
|
+
createdAt: string;
|
|
23
|
+
/** Webhook last update timestamp */
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./RetrieveDeliveryWebhooksResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./UpdateWebhooksResponse.js"), exports);
|
|
@@ -6,6 +6,8 @@ export interface Integration {
|
|
|
6
6
|
name: string;
|
|
7
7
|
/** Whether integration is active */
|
|
8
8
|
active: boolean;
|
|
9
|
+
/** Custom extended data */
|
|
10
|
+
extendedData: Record<string, unknown> | null;
|
|
9
11
|
/** Integration creation timestamp */
|
|
10
12
|
createdAt: string;
|
|
11
13
|
/** Integration last update timestamp */
|
|
@@ -20,6 +20,8 @@ export declare namespace IntegrationListResponse {
|
|
|
20
20
|
name: string;
|
|
21
21
|
/** Whether integration is active */
|
|
22
22
|
active: boolean;
|
|
23
|
+
/** Custom extended data */
|
|
24
|
+
extendedData: Record<string, unknown> | null;
|
|
23
25
|
/** Integration creation timestamp */
|
|
24
26
|
createdAt: string;
|
|
25
27
|
/** Integration last update timestamp */
|
|
@@ -10,6 +10,8 @@ export declare namespace IntegrationResponse {
|
|
|
10
10
|
name: string;
|
|
11
11
|
/** Whether integration is active */
|
|
12
12
|
active: boolean;
|
|
13
|
+
/** Custom extended data */
|
|
14
|
+
extendedData: Record<string, unknown> | null;
|
|
13
15
|
/** Integration creation timestamp */
|
|
14
16
|
createdAt: string;
|
|
15
17
|
/** Integration last update timestamp */
|
|
@@ -5,5 +5,27 @@ export declare namespace MeResponse {
|
|
|
5
5
|
interface Data {
|
|
6
6
|
id: string;
|
|
7
7
|
username: string;
|
|
8
|
+
displayName: string | null;
|
|
9
|
+
email: string | null;
|
|
10
|
+
bio: string | null;
|
|
11
|
+
signature: string | null;
|
|
12
|
+
url: string | null;
|
|
13
|
+
postsCount?: number;
|
|
14
|
+
threadsCount?: number;
|
|
15
|
+
isOnline: boolean | null;
|
|
16
|
+
lastSeenAt: string | null;
|
|
17
|
+
roles?: Data.Roles.Item[];
|
|
18
|
+
extendedData: Record<string, unknown> | null;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
}
|
|
21
|
+
namespace Data {
|
|
22
|
+
type Roles = Roles.Item[];
|
|
23
|
+
namespace Roles {
|
|
24
|
+
interface Item {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
slug: string | null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
8
30
|
}
|
|
9
31
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface RoleList {
|
|
2
|
+
/** Items per page (max 75) */
|
|
3
|
+
limit?: number;
|
|
4
|
+
/** Cursor for pagination */
|
|
5
|
+
cursor?: string;
|
|
6
|
+
/** Search by name or slug */
|
|
7
|
+
search?: string;
|
|
8
|
+
/** Sort order */
|
|
9
|
+
sort?: RoleList.Sort;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace RoleList {
|
|
12
|
+
/** Sort order */
|
|
13
|
+
const Sort: {
|
|
14
|
+
readonly Newest: "newest";
|
|
15
|
+
readonly Oldest: "oldest";
|
|
16
|
+
readonly Name: "name";
|
|
17
|
+
};
|
|
18
|
+
type Sort = (typeof Sort)[keyof typeof Sort];
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RoleList = void 0;
|
|
5
|
+
var RoleList;
|
|
6
|
+
(function (RoleList) {
|
|
7
|
+
/** Sort order */
|
|
8
|
+
RoleList.Sort = {
|
|
9
|
+
Newest: "newest",
|
|
10
|
+
Oldest: "oldest",
|
|
11
|
+
Name: "name",
|
|
12
|
+
};
|
|
13
|
+
})(RoleList || (exports.RoleList = RoleList = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Search = {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface SearchListResponse {
|
|
2
|
+
data: SearchListResponse.Data;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace SearchListResponse {
|
|
5
|
+
interface Data {
|
|
6
|
+
items: Data.Items.Item[];
|
|
7
|
+
/** Cursor for next page */
|
|
8
|
+
nextCursor?: string;
|
|
9
|
+
/** Total count of items */
|
|
10
|
+
count: number;
|
|
11
|
+
}
|
|
12
|
+
namespace Data {
|
|
13
|
+
type Items = Items.Item[];
|
|
14
|
+
namespace Items {
|
|
15
|
+
type Item = {};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -6,6 +6,8 @@ export interface Sso {
|
|
|
6
6
|
domain: string;
|
|
7
7
|
/** Whether SSO is active */
|
|
8
8
|
active: boolean;
|
|
9
|
+
/** Custom extended data */
|
|
10
|
+
extendedData: Record<string, unknown> | null;
|
|
9
11
|
/** SSO configuration creation timestamp */
|
|
10
12
|
createdAt: string;
|
|
11
13
|
/** SSO configuration last update timestamp */
|
|
@@ -20,6 +20,8 @@ export declare namespace SsoListResponse {
|
|
|
20
20
|
domain: string;
|
|
21
21
|
/** Whether SSO is active */
|
|
22
22
|
active: boolean;
|
|
23
|
+
/** Custom extended data */
|
|
24
|
+
extendedData: Record<string, unknown> | null;
|
|
23
25
|
/** SSO configuration creation timestamp */
|
|
24
26
|
createdAt: string;
|
|
25
27
|
/** SSO configuration last update timestamp */
|
|
@@ -10,6 +10,8 @@ export declare namespace SsoResponse {
|
|
|
10
10
|
domain: string;
|
|
11
11
|
/** Whether SSO is active */
|
|
12
12
|
active: boolean;
|
|
13
|
+
/** Custom extended data */
|
|
14
|
+
extendedData: Record<string, unknown> | null;
|
|
13
15
|
/** SSO configuration creation timestamp */
|
|
14
16
|
createdAt: string;
|
|
15
17
|
/** SSO configuration last update timestamp */
|
|
@@ -10,21 +10,21 @@ export interface Thread {
|
|
|
10
10
|
tags?: string[];
|
|
11
11
|
/** Poll data */
|
|
12
12
|
poll?: Forum.ThreadPoll;
|
|
13
|
-
id: string;
|
|
14
|
-
/** URL-friendly identifier */
|
|
15
|
-
slug: string | null;
|
|
16
13
|
/** Whether thread is locked */
|
|
17
14
|
locked: boolean | null;
|
|
18
15
|
/** Whether thread is pinned */
|
|
19
16
|
pinned: boolean | null;
|
|
17
|
+
/** Custom metadata */
|
|
18
|
+
extendedData: Record<string, unknown> | null;
|
|
19
|
+
id: string;
|
|
20
|
+
/** URL-friendly identifier */
|
|
21
|
+
slug: string | null;
|
|
20
22
|
/** View count */
|
|
21
23
|
views: number;
|
|
22
24
|
/** Number of posts/replies */
|
|
23
25
|
postsCount: number;
|
|
24
26
|
/** Timestamp of the last post */
|
|
25
27
|
lastPostAt: string | null;
|
|
26
|
-
/** Custom metadata */
|
|
27
|
-
extendedData: Record<string, unknown> | null;
|
|
28
28
|
createdAt: string;
|
|
29
29
|
updatedAt: string;
|
|
30
30
|
}
|
|
@@ -9,6 +9,12 @@ export interface ThreadCreate {
|
|
|
9
9
|
tags?: string[];
|
|
10
10
|
/** Poll data */
|
|
11
11
|
poll?: ThreadCreate.Poll;
|
|
12
|
+
/** Lock thread on creation */
|
|
13
|
+
locked?: boolean;
|
|
14
|
+
/** Pin thread on creation */
|
|
15
|
+
pinned?: boolean;
|
|
16
|
+
/** Custom extended data */
|
|
17
|
+
extendedData?: Record<string, unknown>;
|
|
12
18
|
}
|
|
13
19
|
export declare namespace ThreadCreate {
|
|
14
20
|
/**
|
|
@@ -23,21 +23,21 @@ export declare namespace ThreadListResponse {
|
|
|
23
23
|
tags?: string[];
|
|
24
24
|
/** Poll data */
|
|
25
25
|
poll?: Item.Poll;
|
|
26
|
-
id: string;
|
|
27
|
-
/** URL-friendly identifier */
|
|
28
|
-
slug: string | null;
|
|
29
26
|
/** Whether thread is locked */
|
|
30
27
|
locked: boolean | null;
|
|
31
28
|
/** Whether thread is pinned */
|
|
32
29
|
pinned: boolean | null;
|
|
30
|
+
/** Custom metadata */
|
|
31
|
+
extendedData: Record<string, unknown> | null;
|
|
32
|
+
id: string;
|
|
33
|
+
/** URL-friendly identifier */
|
|
34
|
+
slug: string | null;
|
|
33
35
|
/** View count */
|
|
34
36
|
views: number;
|
|
35
37
|
/** Number of posts/replies */
|
|
36
38
|
postsCount: number;
|
|
37
39
|
/** Timestamp of the last post */
|
|
38
40
|
lastPostAt: string | null;
|
|
39
|
-
/** Custom metadata */
|
|
40
|
-
extendedData: Record<string, unknown> | null;
|
|
41
41
|
createdAt: string;
|
|
42
42
|
updatedAt: string;
|
|
43
43
|
}
|
|
@@ -13,21 +13,21 @@ export declare namespace ThreadResponse {
|
|
|
13
13
|
tags?: string[];
|
|
14
14
|
/** Poll data */
|
|
15
15
|
poll?: Data.Poll;
|
|
16
|
-
id: string;
|
|
17
|
-
/** URL-friendly identifier */
|
|
18
|
-
slug: string | null;
|
|
19
16
|
/** Whether thread is locked */
|
|
20
17
|
locked: boolean | null;
|
|
21
18
|
/** Whether thread is pinned */
|
|
22
19
|
pinned: boolean | null;
|
|
20
|
+
/** Custom metadata */
|
|
21
|
+
extendedData: Record<string, unknown> | null;
|
|
22
|
+
id: string;
|
|
23
|
+
/** URL-friendly identifier */
|
|
24
|
+
slug: string | null;
|
|
23
25
|
/** View count */
|
|
24
26
|
views: number;
|
|
25
27
|
/** Number of posts/replies */
|
|
26
28
|
postsCount: number;
|
|
27
29
|
/** Timestamp of the last post */
|
|
28
30
|
lastPostAt: string | null;
|
|
29
|
-
/** Custom metadata */
|
|
30
|
-
extendedData: Record<string, unknown> | null;
|
|
31
31
|
createdAt: string;
|
|
32
32
|
updatedAt: string;
|
|
33
33
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface UserCreate {
|
|
2
|
+
/** Username (letters, numbers, underscores, hyphens) */
|
|
3
|
+
username: string;
|
|
4
|
+
/** Email address */
|
|
5
|
+
email?: string;
|
|
6
|
+
/** Password (min 8 chars) */
|
|
7
|
+
password?: string;
|
|
8
|
+
/** Display name */
|
|
9
|
+
displayName?: string;
|
|
10
|
+
/** User bio */
|
|
11
|
+
bio?: string;
|
|
12
|
+
/** Forum signature */
|
|
13
|
+
signature?: string;
|
|
14
|
+
/** Website URL */
|
|
15
|
+
url?: string;
|
|
16
|
+
/** Role slugs to assign */
|
|
17
|
+
roles?: string[];
|
|
18
|
+
/** Custom extended data */
|
|
19
|
+
extendedData?: Record<string, unknown>;
|
|
20
|
+
}
|
|
@@ -8,6 +8,8 @@ export interface Webhook {
|
|
|
8
8
|
events: string[];
|
|
9
9
|
/** Whether webhook is active */
|
|
10
10
|
active: boolean;
|
|
11
|
+
/** Custom extended data */
|
|
12
|
+
extendedData: Record<string, unknown> | null;
|
|
11
13
|
/** Last trigger timestamp */
|
|
12
14
|
lastTriggered: string | null;
|
|
13
15
|
/** Consecutive failure count */
|
|
@@ -7,4 +7,8 @@ export interface WebhookCreate {
|
|
|
7
7
|
events: string[];
|
|
8
8
|
/** Secret for signature verification (auto-generated if missing) */
|
|
9
9
|
secret?: string;
|
|
10
|
+
/** Whether webhook is active */
|
|
11
|
+
active?: boolean;
|
|
12
|
+
/** Custom extended data */
|
|
13
|
+
extendedData?: Record<string, unknown>;
|
|
10
14
|
}
|
|
@@ -22,6 +22,8 @@ export declare namespace WebhookListResponse {
|
|
|
22
22
|
events: string[];
|
|
23
23
|
/** Whether webhook is active */
|
|
24
24
|
active: boolean;
|
|
25
|
+
/** Custom extended data */
|
|
26
|
+
extendedData: Record<string, unknown> | null;
|
|
25
27
|
/** Last trigger timestamp */
|
|
26
28
|
lastTriggered: string | null;
|
|
27
29
|
/** Consecutive failure count */
|