@foru-ms/sdk 2.1.0 → 2.1.2
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 +2 -1
- package/dist/cjs/api/resources/integrations/client/Client.js +7 -9
- package/dist/cjs/api/resources/integrations/client/requests/CreateIntegrationsRequest.d.ts +8 -2
- 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/CreateReportsRequest.d.ts +4 -0
- 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 +30 -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 +6 -8
- package/dist/cjs/api/resources/ssOs/client/Client.js +11 -16
- package/dist/cjs/api/resources/ssOs/client/requests/CreateSsOsRequest.d.ts +24 -15
- package/dist/cjs/api/resources/ssOs/client/requests/CreateSsOsRequest.js +10 -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 +15 -8
- package/dist/cjs/api/resources/ssOs/client/requests/UpdateSsOsRequest.js +10 -0
- package/dist/cjs/api/resources/ssOs/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/ssOs/client/requests/index.js +5 -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 +7 -2
- 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/Report.d.ts +4 -2
- package/dist/cjs/api/types/ReportCreate.d.ts +4 -0
- package/dist/cjs/api/types/ReportListResponse.d.ts +4 -2
- package/dist/cjs/api/types/ReportResponse.d.ts +4 -2
- 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 +19 -11
- package/dist/cjs/api/types/SsoCreate.js +10 -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 +15 -11
- package/dist/cjs/api/types/SsoUpdate.js +10 -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 +2 -1
- package/dist/esm/api/resources/integrations/client/Client.mjs +7 -9
- package/dist/esm/api/resources/integrations/client/requests/CreateIntegrationsRequest.d.mts +8 -2
- 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/CreateReportsRequest.d.mts +4 -0
- 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 +30 -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 +6 -8
- package/dist/esm/api/resources/ssOs/client/Client.mjs +11 -16
- package/dist/esm/api/resources/ssOs/client/requests/CreateSsOsRequest.d.mts +24 -15
- package/dist/esm/api/resources/ssOs/client/requests/CreateSsOsRequest.mjs +9 -1
- package/dist/esm/api/resources/ssOs/client/requests/ListSsOsRequest.d.mts +2 -2
- package/dist/esm/api/resources/ssOs/client/requests/UpdateSsOsRequest.d.mts +15 -8
- package/dist/esm/api/resources/ssOs/client/requests/UpdateSsOsRequest.mjs +9 -1
- package/dist/esm/api/resources/ssOs/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/ssOs/client/requests/index.mjs +2 -1
- 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 +7 -2
- 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/Report.d.mts +4 -2
- package/dist/esm/api/types/ReportCreate.d.mts +4 -0
- package/dist/esm/api/types/ReportListResponse.d.mts +4 -2
- package/dist/esm/api/types/ReportResponse.d.mts +4 -2
- 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 +19 -11
- package/dist/esm/api/types/SsoCreate.mjs +9 -1
- 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 +15 -11
- package/dist/esm/api/types/SsoUpdate.mjs +9 -1
- 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 +310 -7
|
@@ -66,7 +66,7 @@ const Forum = __importStar(require("../../../index.js"));
|
|
|
66
66
|
* Operations for users
|
|
67
67
|
*/
|
|
68
68
|
class UsersClient {
|
|
69
|
-
constructor(options) {
|
|
69
|
+
constructor(options = {}) {
|
|
70
70
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
@@ -90,19 +90,12 @@ class UsersClient {
|
|
|
90
90
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
91
91
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
92
92
|
const { limit, cursor, search, sort } = request;
|
|
93
|
-
const _queryParams = {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
if (search != null) {
|
|
101
|
-
_queryParams.search = search;
|
|
102
|
-
}
|
|
103
|
-
if (sort != null) {
|
|
104
|
-
_queryParams.sort = sort;
|
|
105
|
-
}
|
|
93
|
+
const _queryParams = {
|
|
94
|
+
limit,
|
|
95
|
+
cursor,
|
|
96
|
+
search,
|
|
97
|
+
sort: sort != null ? sort : undefined,
|
|
98
|
+
};
|
|
106
99
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
107
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);
|
|
108
101
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -140,6 +133,71 @@ class UsersClient {
|
|
|
140
133
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/users");
|
|
141
134
|
});
|
|
142
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Create a new user.
|
|
138
|
+
*
|
|
139
|
+
* @param {Forum.CreateUsersRequest} request
|
|
140
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link Forum.BadRequestError}
|
|
143
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
144
|
+
* @throws {@link Forum.PaymentRequiredError}
|
|
145
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
146
|
+
* @throws {@link Forum.InternalServerError}
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* await client.users.create({
|
|
150
|
+
* username: "username"
|
|
151
|
+
* })
|
|
152
|
+
*/
|
|
153
|
+
create(request, requestOptions) {
|
|
154
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
155
|
+
}
|
|
156
|
+
__create(request, requestOptions) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
159
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
160
|
+
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);
|
|
161
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
162
|
+
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, "users"),
|
|
163
|
+
method: "POST",
|
|
164
|
+
headers: _headers,
|
|
165
|
+
contentType: "application/json",
|
|
166
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
167
|
+
requestType: "json",
|
|
168
|
+
body: request,
|
|
169
|
+
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,
|
|
170
|
+
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,
|
|
171
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
172
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
173
|
+
logging: this._options.logging,
|
|
174
|
+
});
|
|
175
|
+
if (_response.ok) {
|
|
176
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
177
|
+
}
|
|
178
|
+
if (_response.error.reason === "status-code") {
|
|
179
|
+
switch (_response.error.statusCode) {
|
|
180
|
+
case 400:
|
|
181
|
+
throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
|
|
182
|
+
case 401:
|
|
183
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
184
|
+
case 402:
|
|
185
|
+
throw new Forum.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
186
|
+
case 429:
|
|
187
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
188
|
+
case 500:
|
|
189
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
190
|
+
default:
|
|
191
|
+
throw new errors.ForumError({
|
|
192
|
+
statusCode: _response.error.statusCode,
|
|
193
|
+
body: _response.error.body,
|
|
194
|
+
rawResponse: _response.rawResponse,
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/users");
|
|
199
|
+
});
|
|
200
|
+
}
|
|
143
201
|
/**
|
|
144
202
|
* Retrieve a user by ID or slug (if supported).
|
|
145
203
|
*
|
|
@@ -358,13 +416,10 @@ class UsersClient {
|
|
|
358
416
|
return __awaiter(this, void 0, void 0, function* () {
|
|
359
417
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
360
418
|
const { id, limit, cursor } = request;
|
|
361
|
-
const _queryParams = {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}
|
|
365
|
-
if (cursor != null) {
|
|
366
|
-
_queryParams.cursor = cursor;
|
|
367
|
-
}
|
|
419
|
+
const _queryParams = {
|
|
420
|
+
limit,
|
|
421
|
+
cursor,
|
|
422
|
+
};
|
|
368
423
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
369
424
|
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);
|
|
370
425
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -543,13 +598,10 @@ class UsersClient {
|
|
|
543
598
|
return __awaiter(this, void 0, void 0, function* () {
|
|
544
599
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
545
600
|
const { id, limit, cursor } = request;
|
|
546
|
-
const _queryParams = {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}
|
|
550
|
-
if (cursor != null) {
|
|
551
|
-
_queryParams.cursor = cursor;
|
|
552
|
-
}
|
|
601
|
+
const _queryParams = {
|
|
602
|
+
limit,
|
|
603
|
+
cursor,
|
|
604
|
+
};
|
|
553
605
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
554
606
|
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);
|
|
555
607
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* username: "username"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface CreateUsersRequest {
|
|
8
|
+
/** Username (letters, numbers, underscores, hyphens) */
|
|
9
|
+
username: string;
|
|
10
|
+
/** Email address */
|
|
11
|
+
email?: string;
|
|
12
|
+
/** Password (min 8 chars) */
|
|
13
|
+
password?: string;
|
|
14
|
+
/** Display name */
|
|
15
|
+
displayName?: string;
|
|
16
|
+
/** User bio */
|
|
17
|
+
bio?: string;
|
|
18
|
+
/** Forum signature */
|
|
19
|
+
signature?: string;
|
|
20
|
+
/** Website URL */
|
|
21
|
+
url?: string;
|
|
22
|
+
/** Role slugs to assign */
|
|
23
|
+
roles?: string[];
|
|
24
|
+
/** Custom extended data */
|
|
25
|
+
extendedData?: Record<string, unknown>;
|
|
26
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { CreateUsersRequest } from "./CreateUsersRequest.js";
|
|
1
2
|
export type { DeleteFollowerUsersRequest } from "./DeleteFollowerUsersRequest.js";
|
|
2
3
|
export type { DeleteFollowingUsersRequest } from "./DeleteFollowingUsersRequest.js";
|
|
3
4
|
export type { DeleteUsersRequest } from "./DeleteUsersRequest.js";
|
|
@@ -12,7 +12,7 @@ export declare namespace WebhooksClient {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class WebhooksClient {
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<WebhooksClient.Options>;
|
|
15
|
-
constructor(options
|
|
15
|
+
constructor(options?: WebhooksClient.Options);
|
|
16
16
|
/**
|
|
17
17
|
* Retrieve a paginated list of webhooks. Use cursor for pagination.
|
|
18
18
|
*
|
|
@@ -96,6 +96,28 @@ export declare class WebhooksClient {
|
|
|
96
96
|
*/
|
|
97
97
|
delete(request: Forum.DeleteWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
|
|
98
98
|
private __delete;
|
|
99
|
+
/**
|
|
100
|
+
* Update an existing webhook. Only provided fields will be modified.
|
|
101
|
+
*
|
|
102
|
+
* **Requires feature: webhooks**
|
|
103
|
+
*
|
|
104
|
+
* @param {Forum.UpdateWebhooksRequest} request
|
|
105
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link Forum.BadRequestError}
|
|
108
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
109
|
+
* @throws {@link Forum.PaymentRequiredError}
|
|
110
|
+
* @throws {@link Forum.NotFoundError}
|
|
111
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
112
|
+
* @throws {@link Forum.InternalServerError}
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* await client.webhooks.update({
|
|
116
|
+
* id: "id"
|
|
117
|
+
* })
|
|
118
|
+
*/
|
|
119
|
+
update(request: Forum.UpdateWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<Forum.UpdateWebhooksResponse>;
|
|
120
|
+
private __update;
|
|
99
121
|
/**
|
|
100
122
|
* Retrieve a paginated list of deliveries for Webhook.
|
|
101
123
|
*
|
|
@@ -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 */
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export interface IntegrationCreate {
|
|
2
|
-
/** Integration type (e.g.
|
|
2
|
+
/** Integration type (e.g. SLACK, DISCORD) */
|
|
3
3
|
type: string;
|
|
4
|
+
/** Integration name */
|
|
5
|
+
name: string;
|
|
4
6
|
/** JSON configuration */
|
|
5
7
|
config: Record<string, unknown>;
|
|
6
|
-
|
|
8
|
+
/** Whether integration is active */
|
|
9
|
+
active?: boolean;
|
|
10
|
+
/** Custom extended data */
|
|
11
|
+
extendedData?: Record<string, unknown>;
|
|
7
12
|
}
|
|
@@ -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
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface Report {
|
|
2
2
|
/** Report type (e.g. spam, abuse) */
|
|
3
3
|
type: string;
|
|
4
|
+
/** Report status (pending, reviewed, resolved, dismissed) */
|
|
5
|
+
status: string | null;
|
|
4
6
|
/** Reason for reporting */
|
|
5
7
|
description?: string;
|
|
6
8
|
/** Reporter user ID (required for API key auth, ignored for JWT auth) */
|
|
@@ -13,9 +15,9 @@ export interface Report {
|
|
|
13
15
|
postId?: string;
|
|
14
16
|
/** ID of private message being reported */
|
|
15
17
|
privateMessageId?: string;
|
|
18
|
+
/** Custom extended data */
|
|
19
|
+
extendedData?: Record<string, unknown>;
|
|
16
20
|
id: string;
|
|
17
|
-
/** Report status (pending, reviewed, resolved, dismissed) */
|
|
18
|
-
status: string | null;
|
|
19
21
|
/** Report creation timestamp */
|
|
20
22
|
createdAt: string;
|
|
21
23
|
/** Report last update timestamp */
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface ReportCreate {
|
|
2
2
|
/** Report type (e.g. spam, abuse) */
|
|
3
3
|
type: string;
|
|
4
|
+
/** Report status (default: pending) */
|
|
5
|
+
status?: string;
|
|
4
6
|
/** Reason for reporting */
|
|
5
7
|
description?: string;
|
|
6
8
|
/** Reporter user ID (required for API key auth, ignored for JWT auth) */
|
|
@@ -13,4 +15,6 @@ export interface ReportCreate {
|
|
|
13
15
|
postId?: string;
|
|
14
16
|
/** ID of private message being reported */
|
|
15
17
|
privateMessageId?: string;
|
|
18
|
+
/** Custom extended data */
|
|
19
|
+
extendedData?: Record<string, unknown>;
|
|
16
20
|
}
|
|
@@ -15,6 +15,8 @@ export declare namespace ReportListResponse {
|
|
|
15
15
|
interface Item {
|
|
16
16
|
/** Report type (e.g. spam, abuse) */
|
|
17
17
|
type: string;
|
|
18
|
+
/** Report status (pending, reviewed, resolved, dismissed) */
|
|
19
|
+
status: string | null;
|
|
18
20
|
/** Reason for reporting */
|
|
19
21
|
description?: string;
|
|
20
22
|
/** Reporter user ID (required for API key auth, ignored for JWT auth) */
|
|
@@ -27,9 +29,9 @@ export declare namespace ReportListResponse {
|
|
|
27
29
|
postId?: string;
|
|
28
30
|
/** ID of private message being reported */
|
|
29
31
|
privateMessageId?: string;
|
|
32
|
+
/** Custom extended data */
|
|
33
|
+
extendedData?: Record<string, unknown>;
|
|
30
34
|
id: string;
|
|
31
|
-
/** Report status (pending, reviewed, resolved, dismissed) */
|
|
32
|
-
status: string | null;
|
|
33
35
|
/** Report creation timestamp */
|
|
34
36
|
createdAt: string;
|
|
35
37
|
/** Report last update timestamp */
|
|
@@ -5,6 +5,8 @@ export declare namespace ReportResponse {
|
|
|
5
5
|
interface Data {
|
|
6
6
|
/** Report type (e.g. spam, abuse) */
|
|
7
7
|
type: string;
|
|
8
|
+
/** Report status (pending, reviewed, resolved, dismissed) */
|
|
9
|
+
status: string | null;
|
|
8
10
|
/** Reason for reporting */
|
|
9
11
|
description?: string;
|
|
10
12
|
/** Reporter user ID (required for API key auth, ignored for JWT auth) */
|
|
@@ -17,9 +19,9 @@ export declare namespace ReportResponse {
|
|
|
17
19
|
postId?: string;
|
|
18
20
|
/** ID of private message being reported */
|
|
19
21
|
privateMessageId?: string;
|
|
22
|
+
/** Custom extended data */
|
|
23
|
+
extendedData?: Record<string, unknown>;
|
|
20
24
|
id: string;
|
|
21
|
-
/** Report status (pending, reviewed, resolved, dismissed) */
|
|
22
|
-
status: string | null;
|
|
23
25
|
/** Report creation timestamp */
|
|
24
26
|
createdAt: string;
|
|
25
27
|
/** Report last update timestamp */
|