@foru-ms/sdk 2.0.2 → 2.0.4
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/api/resources/integrations/types/GetIntegrationsIdResponse.d.ts +26 -2
- package/dist/cjs/api/resources/integrations/types/GetIntegrationsIdResponse.js +16 -0
- package/dist/cjs/api/resources/integrations/types/GetIntegrationsResponse.d.ts +25 -1
- package/dist/cjs/api/resources/integrations/types/GetIntegrationsResponse.js +19 -0
- package/dist/cjs/api/resources/integrations/types/PatchIntegrationsIdResponse.d.ts +26 -2
- package/dist/cjs/api/resources/integrations/types/PatchIntegrationsIdResponse.js +16 -0
- package/dist/cjs/api/resources/integrations/types/PostIntegrationsResponse.d.ts +26 -2
- package/dist/cjs/api/resources/integrations/types/PostIntegrationsResponse.js +16 -0
- package/dist/cjs/api/resources/notifications/client/requests/PostNotificationsRequest.d.ts +23 -7
- package/dist/cjs/api/resources/notifications/client/requests/PostNotificationsRequest.js +11 -0
- package/dist/cjs/api/resources/notifications/types/GetNotificationsIdResponse.d.ts +26 -2
- package/dist/cjs/api/resources/notifications/types/GetNotificationsResponse.d.ts +25 -1
- package/dist/cjs/api/resources/notifications/types/PatchNotificationsIdResponse.d.ts +26 -2
- package/dist/cjs/api/resources/notifications/types/PostNotificationsResponse.d.ts +26 -2
- package/dist/cjs/api/resources/posts/client/Client.d.ts +136 -0
- package/dist/cjs/api/resources/posts/client/Client.js +500 -0
- package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdPostsSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdPostsSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdReactionsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdReactionsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdReactionsSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdReactionsSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsIdPostsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsIdPostsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsIdPostsSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsIdPostsSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsIdReactionsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsIdReactionsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsIdReactionsSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsIdReactionsSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/PostPostsIdReactionsRequest.d.ts +27 -0
- package/dist/cjs/api/resources/posts/client/requests/PostPostsIdReactionsRequest.js +14 -0
- package/dist/cjs/api/resources/posts/client/requests/index.d.ts +8 -0
- package/dist/cjs/api/resources/posts/types/DeletePostsIdPostsSubIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/posts/types/DeletePostsIdPostsSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/DeletePostsIdReactionsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/posts/types/DeletePostsIdReactionsResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/DeletePostsIdReactionsSubIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/posts/types/DeletePostsIdReactionsSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/GetPostsIdPostsResponse.d.ts +16 -0
- package/dist/cjs/api/resources/posts/types/GetPostsIdPostsResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/GetPostsIdPostsSubIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/posts/types/GetPostsIdPostsSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/GetPostsIdReactionsResponse.d.ts +16 -0
- package/dist/cjs/api/resources/posts/types/GetPostsIdReactionsResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/GetPostsIdReactionsSubIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/posts/types/GetPostsIdReactionsSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/GetPostsIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/posts/types/GetPostsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/posts/types/PatchPostsIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/posts/types/PostPostsIdReactionsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/posts/types/PostPostsIdReactionsResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/PostPostsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/posts/types/index.d.ts +8 -0
- package/dist/cjs/api/resources/posts/types/index.js +8 -0
- package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/privateMessages/client/Client.js +272 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRepliesSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRepliesSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesRequest.d.ts +14 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesRequest.js +3 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/PostPrivateMessagesIdRepliesRequest.d.ts +24 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/PostPrivateMessagesIdRepliesRequest.js +3 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/privateMessages/types/DeletePrivateMessagesIdRepliesSubIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/privateMessages/types/DeletePrivateMessagesIdRepliesSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesResponse.d.ts +16 -0
- package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesResponse.js +3 -0
- package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesSubIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdResponse.d.ts +22 -2
- package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesResponse.d.ts +21 -1
- package/dist/cjs/api/resources/privateMessages/types/PostPrivateMessagesIdRepliesResponse.d.ts +6 -0
- package/dist/cjs/api/resources/privateMessages/types/PostPrivateMessagesIdRepliesResponse.js +3 -0
- package/dist/cjs/api/resources/privateMessages/types/PostPrivateMessagesResponse.d.ts +22 -2
- package/dist/cjs/api/resources/privateMessages/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/privateMessages/types/index.js +4 -0
- package/dist/cjs/api/resources/reports/types/GetReportsIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/reports/types/GetReportsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/reports/types/PostReportsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/roles/types/GetRolesIdResponse.d.ts +4 -0
- package/dist/cjs/api/resources/roles/types/GetRolesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/roles/types/PatchRolesIdResponse.d.ts +4 -0
- package/dist/cjs/api/resources/roles/types/PostRolesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/ssOs/types/GetSsoIdResponse.d.ts +23 -2
- package/dist/cjs/api/resources/ssOs/types/GetSsoIdResponse.js +13 -0
- package/dist/cjs/api/resources/ssOs/types/GetSsoResponse.d.ts +22 -1
- package/dist/cjs/api/resources/ssOs/types/GetSsoResponse.js +16 -0
- package/dist/cjs/api/resources/ssOs/types/PatchSsoIdResponse.d.ts +23 -2
- package/dist/cjs/api/resources/ssOs/types/PatchSsoIdResponse.js +13 -0
- package/dist/cjs/api/resources/ssOs/types/PostSsoResponse.d.ts +23 -2
- package/dist/cjs/api/resources/ssOs/types/PostSsoResponse.js +13 -0
- package/dist/cjs/api/resources/tags/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/tags/client/Client.js +189 -0
- package/dist/cjs/api/resources/tags/client/requests/DeleteTagsIdSubscribersSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/tags/client/requests/DeleteTagsIdSubscribersSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/tags/client/requests/GetTagsIdSubscribersRequest.d.ts +14 -0
- package/dist/cjs/api/resources/tags/client/requests/GetTagsIdSubscribersRequest.js +3 -0
- package/dist/cjs/api/resources/tags/client/requests/GetTagsIdSubscribersSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/tags/client/requests/GetTagsIdSubscribersSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/tags/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/tags/types/DeleteTagsIdSubscribersSubIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/tags/types/DeleteTagsIdSubscribersSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/tags/types/GetTagsIdResponse.d.ts +4 -0
- package/dist/cjs/api/resources/tags/types/GetTagsIdSubscribersResponse.d.ts +16 -0
- package/dist/cjs/api/resources/tags/types/GetTagsIdSubscribersResponse.js +3 -0
- package/dist/cjs/api/resources/tags/types/GetTagsIdSubscribersSubIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/tags/types/GetTagsIdSubscribersSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/tags/types/GetTagsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/tags/types/PatchTagsIdResponse.d.ts +4 -0
- package/dist/cjs/api/resources/tags/types/PostTagsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/tags/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/tags/types/index.js +3 -0
- package/dist/cjs/api/resources/threads/client/Client.d.ts +240 -0
- package/dist/cjs/api/resources/threads/client/Client.js +885 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdPostsSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdPostsSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdReactionsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdReactionsRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdReactionsSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdReactionsSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdSubscribersSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdSubscribersSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPollRequest.d.ts +10 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPollRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPostsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPostsRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPostsSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPostsSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdReactionsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdReactionsRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdReactionsSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdReactionsSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdSubscribersRequest.d.ts +14 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdSubscribersRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdSubscribersSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdSubscribersSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/PatchThreadsIdPollRequest.d.ts +18 -0
- package/dist/cjs/api/resources/threads/client/requests/PatchThreadsIdPollRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/PostThreadsIdPollRequest.d.ts +35 -0
- package/dist/cjs/api/resources/threads/client/requests/PostThreadsIdPollRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/PostThreadsIdReactionsRequest.d.ts +27 -0
- package/dist/cjs/api/resources/threads/client/requests/PostThreadsIdReactionsRequest.js +14 -0
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +14 -0
- package/dist/cjs/api/resources/threads/types/DeleteThreadsIdPostsSubIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/threads/types/DeleteThreadsIdPostsSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/DeleteThreadsIdReactionsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/threads/types/DeleteThreadsIdReactionsResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/DeleteThreadsIdReactionsSubIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/threads/types/DeleteThreadsIdReactionsSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/DeleteThreadsIdSubscribersSubIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/threads/types/DeleteThreadsIdSubscribersSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdPollResponse.d.ts +6 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdPollResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdPostsResponse.d.ts +16 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdPostsResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdPostsSubIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdPostsSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdReactionsResponse.d.ts +16 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdReactionsResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdReactionsSubIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdReactionsSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdResponse.d.ts +14 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdSubscribersResponse.d.ts +16 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdSubscribersResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdSubscribersSubIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdSubscribersSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsResponse.d.ts +14 -0
- package/dist/cjs/api/resources/threads/types/PatchThreadsIdPollResponse.d.ts +6 -0
- package/dist/cjs/api/resources/threads/types/PatchThreadsIdPollResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/PatchThreadsIdResponse.d.ts +14 -0
- package/dist/cjs/api/resources/threads/types/PostThreadsIdPollResponse.d.ts +6 -0
- package/dist/cjs/api/resources/threads/types/PostThreadsIdPollResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/PostThreadsIdReactionsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/threads/types/PostThreadsIdReactionsResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/PostThreadsResponse.d.ts +14 -0
- package/dist/cjs/api/resources/threads/types/index.d.ts +14 -0
- package/dist/cjs/api/resources/threads/types/index.js +14 -0
- package/dist/cjs/api/resources/users/client/Client.d.ts +100 -0
- package/dist/cjs/api/resources/users/client/Client.js +378 -0
- package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdFollowersSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdFollowersSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdFollowingSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdFollowingSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowersRequest.d.ts +14 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowersRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowersSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowersSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowingRequest.d.ts +14 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowingRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowingSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowingSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/users/types/DeleteUsersIdFollowersSubIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/users/types/DeleteUsersIdFollowersSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/users/types/DeleteUsersIdFollowingSubIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/users/types/DeleteUsersIdFollowingSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/users/types/GetUsersIdFollowersResponse.d.ts +16 -0
- package/dist/cjs/api/resources/users/types/GetUsersIdFollowersResponse.js +3 -0
- package/dist/cjs/api/resources/users/types/GetUsersIdFollowersSubIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/users/types/GetUsersIdFollowersSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/users/types/GetUsersIdFollowingResponse.d.ts +16 -0
- package/dist/cjs/api/resources/users/types/GetUsersIdFollowingResponse.js +3 -0
- package/dist/cjs/api/resources/users/types/GetUsersIdFollowingSubIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/users/types/GetUsersIdFollowingSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/users/types/GetUsersIdResponse.d.ts +34 -14
- package/dist/cjs/api/resources/users/types/GetUsersIdResponse.js +0 -12
- package/dist/cjs/api/resources/users/types/GetUsersResponse.d.ts +34 -14
- package/dist/cjs/api/resources/users/types/GetUsersResponse.js +0 -15
- package/dist/cjs/api/resources/users/types/PatchUsersIdResponse.d.ts +34 -14
- package/dist/cjs/api/resources/users/types/PatchUsersIdResponse.js +0 -12
- package/dist/cjs/api/resources/users/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/users/types/index.js +6 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +192 -0
- package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhooksIdDeliveriesSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhooksIdDeliveriesSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesRequest.d.ts +14 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesSubIdRequest.d.ts +13 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesSubIdRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/types/DeleteWebhooksIdDeliveriesSubIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/types/DeleteWebhooksIdDeliveriesSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdDeliveriesResponse.d.ts +16 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdDeliveriesResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdDeliveriesSubIdResponse.d.ts +6 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdDeliveriesSubIdResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdResponse.d.ts +20 -2
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponse.d.ts +19 -1
- package/dist/cjs/api/resources/webhooks/types/PostWebhooksResponse.d.ts +20 -2
- package/dist/cjs/api/resources/webhooks/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/types/index.js +3 -0
- package/dist/cjs/api/types/IntegrationResponse.d.ts +25 -0
- package/dist/cjs/api/types/IntegrationResponse.js +16 -0
- package/dist/cjs/api/types/NotificationCreate.d.ts +23 -7
- package/dist/cjs/api/types/NotificationCreate.js +11 -0
- package/dist/cjs/api/types/NotificationList.d.ts +10 -8
- package/dist/cjs/api/types/NotificationList.js +6 -4
- package/dist/cjs/api/types/NotificationResponse.d.ts +25 -0
- package/dist/cjs/api/types/NotificationResponse.js +3 -0
- package/dist/cjs/api/types/PostResponse.d.ts +6 -0
- package/dist/cjs/api/types/PrivateMessageResponse.d.ts +21 -0
- package/dist/cjs/api/types/PrivateMessageResponse.js +3 -0
- package/dist/cjs/api/types/ReportResponse.d.ts +6 -0
- package/dist/cjs/api/types/RoleResponse.d.ts +4 -0
- package/dist/cjs/api/types/SsoResponse.d.ts +22 -0
- package/dist/cjs/api/types/SsoResponse.js +13 -0
- package/dist/cjs/api/types/TagResponse.d.ts +4 -0
- package/dist/cjs/api/types/ThreadResponse.d.ts +14 -0
- package/dist/cjs/api/types/UserResponse.d.ts +34 -14
- package/dist/cjs/api/types/UserResponse.js +0 -9
- package/dist/cjs/api/types/WebhookResponse.d.ts +19 -0
- package/dist/cjs/api/types/WebhookResponse.js +3 -0
- package/dist/cjs/api/types/index.d.ts +5 -0
- package/dist/cjs/api/types/index.js +5 -0
- 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/api/resources/integrations/types/GetIntegrationsIdResponse.d.mts +26 -2
- package/dist/esm/api/resources/integrations/types/GetIntegrationsIdResponse.mjs +15 -1
- package/dist/esm/api/resources/integrations/types/GetIntegrationsResponse.d.mts +25 -1
- package/dist/esm/api/resources/integrations/types/GetIntegrationsResponse.mjs +18 -1
- package/dist/esm/api/resources/integrations/types/PatchIntegrationsIdResponse.d.mts +26 -2
- package/dist/esm/api/resources/integrations/types/PatchIntegrationsIdResponse.mjs +15 -1
- package/dist/esm/api/resources/integrations/types/PostIntegrationsResponse.d.mts +26 -2
- package/dist/esm/api/resources/integrations/types/PostIntegrationsResponse.mjs +15 -1
- package/dist/esm/api/resources/notifications/client/requests/PostNotificationsRequest.d.mts +23 -7
- package/dist/esm/api/resources/notifications/client/requests/PostNotificationsRequest.mjs +10 -1
- package/dist/esm/api/resources/notifications/types/GetNotificationsIdResponse.d.mts +26 -2
- package/dist/esm/api/resources/notifications/types/GetNotificationsResponse.d.mts +25 -1
- package/dist/esm/api/resources/notifications/types/PatchNotificationsIdResponse.d.mts +26 -2
- package/dist/esm/api/resources/notifications/types/PostNotificationsResponse.d.mts +26 -2
- package/dist/esm/api/resources/posts/client/Client.d.mts +136 -0
- package/dist/esm/api/resources/posts/client/Client.mjs +500 -0
- package/dist/esm/api/resources/posts/client/requests/DeletePostsIdPostsSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/posts/client/requests/DeletePostsIdPostsSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/DeletePostsIdReactionsRequest.d.mts +10 -0
- package/dist/esm/api/resources/posts/client/requests/DeletePostsIdReactionsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/DeletePostsIdReactionsSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/posts/client/requests/DeletePostsIdReactionsSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsIdPostsRequest.d.mts +14 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsIdPostsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsIdPostsSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsIdPostsSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsIdReactionsRequest.d.mts +14 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsIdReactionsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsIdReactionsSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsIdReactionsSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/PostPostsIdReactionsRequest.d.mts +27 -0
- package/dist/esm/api/resources/posts/client/requests/PostPostsIdReactionsRequest.mjs +11 -0
- package/dist/esm/api/resources/posts/client/requests/index.d.mts +8 -0
- package/dist/esm/api/resources/posts/types/DeletePostsIdPostsSubIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/posts/types/DeletePostsIdPostsSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/DeletePostsIdReactionsResponse.d.mts +3 -0
- package/dist/esm/api/resources/posts/types/DeletePostsIdReactionsResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/DeletePostsIdReactionsSubIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/posts/types/DeletePostsIdReactionsSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/GetPostsIdPostsResponse.d.mts +16 -0
- package/dist/esm/api/resources/posts/types/GetPostsIdPostsResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/GetPostsIdPostsSubIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/posts/types/GetPostsIdPostsSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/GetPostsIdReactionsResponse.d.mts +16 -0
- package/dist/esm/api/resources/posts/types/GetPostsIdReactionsResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/GetPostsIdReactionsSubIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/posts/types/GetPostsIdReactionsSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/GetPostsIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/posts/types/GetPostsResponse.d.mts +6 -0
- package/dist/esm/api/resources/posts/types/PatchPostsIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/posts/types/PostPostsIdReactionsResponse.d.mts +6 -0
- package/dist/esm/api/resources/posts/types/PostPostsIdReactionsResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/PostPostsResponse.d.mts +6 -0
- package/dist/esm/api/resources/posts/types/index.d.mts +8 -0
- package/dist/esm/api/resources/posts/types/index.mjs +8 -0
- package/dist/esm/api/resources/privateMessages/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/privateMessages/client/Client.mjs +272 -0
- package/dist/esm/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRepliesSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRepliesSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesRequest.d.mts +14 -0
- package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesRequest.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/client/requests/PostPrivateMessagesIdRepliesRequest.d.mts +24 -0
- package/dist/esm/api/resources/privateMessages/client/requests/PostPrivateMessagesIdRepliesRequest.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/privateMessages/types/DeletePrivateMessagesIdRepliesSubIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/privateMessages/types/DeletePrivateMessagesIdRepliesSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesResponse.d.mts +16 -0
- package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesResponse.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesSubIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdResponse.d.mts +22 -2
- package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesResponse.d.mts +21 -1
- package/dist/esm/api/resources/privateMessages/types/PostPrivateMessagesIdRepliesResponse.d.mts +6 -0
- package/dist/esm/api/resources/privateMessages/types/PostPrivateMessagesIdRepliesResponse.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/types/PostPrivateMessagesResponse.d.mts +22 -2
- package/dist/esm/api/resources/privateMessages/types/index.d.mts +4 -0
- package/dist/esm/api/resources/privateMessages/types/index.mjs +4 -0
- package/dist/esm/api/resources/reports/types/GetReportsIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/reports/types/GetReportsResponse.d.mts +6 -0
- package/dist/esm/api/resources/reports/types/PostReportsResponse.d.mts +6 -0
- package/dist/esm/api/resources/roles/types/GetRolesIdResponse.d.mts +4 -0
- package/dist/esm/api/resources/roles/types/GetRolesResponse.d.mts +4 -0
- package/dist/esm/api/resources/roles/types/PatchRolesIdResponse.d.mts +4 -0
- package/dist/esm/api/resources/roles/types/PostRolesResponse.d.mts +4 -0
- package/dist/esm/api/resources/ssOs/types/GetSsoIdResponse.d.mts +23 -2
- package/dist/esm/api/resources/ssOs/types/GetSsoIdResponse.mjs +12 -1
- package/dist/esm/api/resources/ssOs/types/GetSsoResponse.d.mts +22 -1
- package/dist/esm/api/resources/ssOs/types/GetSsoResponse.mjs +15 -1
- package/dist/esm/api/resources/ssOs/types/PatchSsoIdResponse.d.mts +23 -2
- package/dist/esm/api/resources/ssOs/types/PatchSsoIdResponse.mjs +12 -1
- package/dist/esm/api/resources/ssOs/types/PostSsoResponse.d.mts +23 -2
- package/dist/esm/api/resources/ssOs/types/PostSsoResponse.mjs +12 -1
- package/dist/esm/api/resources/tags/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/tags/client/Client.mjs +189 -0
- package/dist/esm/api/resources/tags/client/requests/DeleteTagsIdSubscribersSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/tags/client/requests/DeleteTagsIdSubscribersSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/tags/client/requests/GetTagsIdSubscribersRequest.d.mts +14 -0
- package/dist/esm/api/resources/tags/client/requests/GetTagsIdSubscribersRequest.mjs +2 -0
- package/dist/esm/api/resources/tags/client/requests/GetTagsIdSubscribersSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/tags/client/requests/GetTagsIdSubscribersSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/tags/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/tags/types/DeleteTagsIdSubscribersSubIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/tags/types/DeleteTagsIdSubscribersSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/tags/types/GetTagsIdResponse.d.mts +4 -0
- package/dist/esm/api/resources/tags/types/GetTagsIdSubscribersResponse.d.mts +16 -0
- package/dist/esm/api/resources/tags/types/GetTagsIdSubscribersResponse.mjs +2 -0
- package/dist/esm/api/resources/tags/types/GetTagsIdSubscribersSubIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/tags/types/GetTagsIdSubscribersSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/tags/types/GetTagsResponse.d.mts +4 -0
- package/dist/esm/api/resources/tags/types/PatchTagsIdResponse.d.mts +4 -0
- package/dist/esm/api/resources/tags/types/PostTagsResponse.d.mts +4 -0
- package/dist/esm/api/resources/tags/types/index.d.mts +3 -0
- package/dist/esm/api/resources/tags/types/index.mjs +3 -0
- package/dist/esm/api/resources/threads/client/Client.d.mts +240 -0
- package/dist/esm/api/resources/threads/client/Client.mjs +885 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdPostsSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdPostsSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdReactionsRequest.d.mts +10 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdReactionsRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdReactionsSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdReactionsSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdSubscribersSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdSubscribersSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPollRequest.d.mts +10 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPollRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPostsRequest.d.mts +14 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPostsRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPostsSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPostsSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdReactionsRequest.d.mts +14 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdReactionsRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdReactionsSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdReactionsSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdSubscribersRequest.d.mts +14 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdSubscribersRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdSubscribersSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdSubscribersSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/PatchThreadsIdPollRequest.d.mts +18 -0
- package/dist/esm/api/resources/threads/client/requests/PatchThreadsIdPollRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/PostThreadsIdPollRequest.d.mts +35 -0
- package/dist/esm/api/resources/threads/client/requests/PostThreadsIdPollRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/PostThreadsIdReactionsRequest.d.mts +27 -0
- package/dist/esm/api/resources/threads/client/requests/PostThreadsIdReactionsRequest.mjs +11 -0
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +14 -0
- package/dist/esm/api/resources/threads/types/DeleteThreadsIdPostsSubIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/threads/types/DeleteThreadsIdPostsSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/DeleteThreadsIdReactionsResponse.d.mts +3 -0
- package/dist/esm/api/resources/threads/types/DeleteThreadsIdReactionsResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/DeleteThreadsIdReactionsSubIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/threads/types/DeleteThreadsIdReactionsSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/DeleteThreadsIdSubscribersSubIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/threads/types/DeleteThreadsIdSubscribersSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdPollResponse.d.mts +6 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdPollResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdPostsResponse.d.mts +16 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdPostsResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdPostsSubIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdPostsSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdReactionsResponse.d.mts +16 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdReactionsResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdReactionsSubIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdReactionsSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdResponse.d.mts +14 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdSubscribersResponse.d.mts +16 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdSubscribersResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdSubscribersSubIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdSubscribersSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/GetThreadsResponse.d.mts +14 -0
- package/dist/esm/api/resources/threads/types/PatchThreadsIdPollResponse.d.mts +6 -0
- package/dist/esm/api/resources/threads/types/PatchThreadsIdPollResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/PatchThreadsIdResponse.d.mts +14 -0
- package/dist/esm/api/resources/threads/types/PostThreadsIdPollResponse.d.mts +6 -0
- package/dist/esm/api/resources/threads/types/PostThreadsIdPollResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/PostThreadsIdReactionsResponse.d.mts +6 -0
- package/dist/esm/api/resources/threads/types/PostThreadsIdReactionsResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/PostThreadsResponse.d.mts +14 -0
- package/dist/esm/api/resources/threads/types/index.d.mts +14 -0
- package/dist/esm/api/resources/threads/types/index.mjs +14 -0
- package/dist/esm/api/resources/users/client/Client.d.mts +100 -0
- package/dist/esm/api/resources/users/client/Client.mjs +378 -0
- package/dist/esm/api/resources/users/client/requests/DeleteUsersIdFollowersSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/users/client/requests/DeleteUsersIdFollowersSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/DeleteUsersIdFollowingSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/users/client/requests/DeleteUsersIdFollowingSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowersRequest.d.mts +14 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowersRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowersSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowersSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowingRequest.d.mts +14 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowingRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowingSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowingSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/users/types/DeleteUsersIdFollowersSubIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/users/types/DeleteUsersIdFollowersSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/users/types/DeleteUsersIdFollowingSubIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/users/types/DeleteUsersIdFollowingSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/users/types/GetUsersIdFollowersResponse.d.mts +16 -0
- package/dist/esm/api/resources/users/types/GetUsersIdFollowersResponse.mjs +2 -0
- package/dist/esm/api/resources/users/types/GetUsersIdFollowersSubIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/users/types/GetUsersIdFollowersSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/users/types/GetUsersIdFollowingResponse.d.mts +16 -0
- package/dist/esm/api/resources/users/types/GetUsersIdFollowingResponse.mjs +2 -0
- package/dist/esm/api/resources/users/types/GetUsersIdFollowingSubIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/users/types/GetUsersIdFollowingSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/users/types/GetUsersIdResponse.d.mts +34 -14
- package/dist/esm/api/resources/users/types/GetUsersIdResponse.mjs +1 -11
- package/dist/esm/api/resources/users/types/GetUsersResponse.d.mts +34 -14
- package/dist/esm/api/resources/users/types/GetUsersResponse.mjs +1 -14
- package/dist/esm/api/resources/users/types/PatchUsersIdResponse.d.mts +34 -14
- package/dist/esm/api/resources/users/types/PatchUsersIdResponse.mjs +1 -11
- package/dist/esm/api/resources/users/types/index.d.mts +6 -0
- package/dist/esm/api/resources/users/types/index.mjs +6 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +192 -0
- package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhooksIdDeliveriesSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhooksIdDeliveriesSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesRequest.d.mts +14 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesSubIdRequest.d.mts +13 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesSubIdRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/types/DeleteWebhooksIdDeliveriesSubIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/types/DeleteWebhooksIdDeliveriesSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksIdDeliveriesResponse.d.mts +16 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksIdDeliveriesResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksIdDeliveriesSubIdResponse.d.mts +6 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksIdDeliveriesSubIdResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksIdResponse.d.mts +20 -2
- package/dist/esm/api/resources/webhooks/types/GetWebhooksResponse.d.mts +19 -1
- package/dist/esm/api/resources/webhooks/types/PostWebhooksResponse.d.mts +20 -2
- package/dist/esm/api/resources/webhooks/types/index.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/types/index.mjs +3 -0
- package/dist/esm/api/types/IntegrationResponse.d.mts +25 -0
- package/dist/esm/api/types/IntegrationResponse.mjs +13 -0
- package/dist/esm/api/types/NotificationCreate.d.mts +23 -7
- package/dist/esm/api/types/NotificationCreate.mjs +10 -1
- package/dist/esm/api/types/NotificationList.d.mts +10 -8
- package/dist/esm/api/types/NotificationList.mjs +6 -4
- package/dist/esm/api/types/NotificationResponse.d.mts +25 -0
- package/dist/esm/api/types/NotificationResponse.mjs +2 -0
- package/dist/esm/api/types/PostResponse.d.mts +6 -0
- package/dist/esm/api/types/PrivateMessageResponse.d.mts +21 -0
- package/dist/esm/api/types/PrivateMessageResponse.mjs +2 -0
- package/dist/esm/api/types/ReportResponse.d.mts +6 -0
- package/dist/esm/api/types/RoleResponse.d.mts +4 -0
- package/dist/esm/api/types/SsoResponse.d.mts +22 -0
- package/dist/esm/api/types/SsoResponse.mjs +10 -0
- package/dist/esm/api/types/TagResponse.d.mts +4 -0
- package/dist/esm/api/types/ThreadResponse.d.mts +14 -0
- package/dist/esm/api/types/UserResponse.d.mts +34 -14
- package/dist/esm/api/types/UserResponse.mjs +1 -8
- package/dist/esm/api/types/WebhookResponse.d.mts +19 -0
- package/dist/esm/api/types/WebhookResponse.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +5 -0
- package/dist/esm/api/types/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2068 -74
|
@@ -385,5 +385,890 @@ class ThreadsClient {
|
|
|
385
385
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/threads/{id}");
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* @param {Forum.GetThreadsIdPostsRequest} request
|
|
390
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
391
|
+
*
|
|
392
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
393
|
+
* @throws {@link Forum.NotFoundError}
|
|
394
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
395
|
+
* @throws {@link Forum.InternalServerError}
|
|
396
|
+
*
|
|
397
|
+
* @example
|
|
398
|
+
* await client.threads.listThreadPosts({
|
|
399
|
+
* id: "id"
|
|
400
|
+
* })
|
|
401
|
+
*/
|
|
402
|
+
listThreadPosts(request, requestOptions) {
|
|
403
|
+
return core.HttpResponsePromise.fromPromise(this.__listThreadPosts(request, requestOptions));
|
|
404
|
+
}
|
|
405
|
+
__listThreadPosts(request, requestOptions) {
|
|
406
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
407
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
408
|
+
const { id, cursor, limit } = request;
|
|
409
|
+
const _queryParams = {};
|
|
410
|
+
if (cursor != null) {
|
|
411
|
+
_queryParams.cursor = cursor;
|
|
412
|
+
}
|
|
413
|
+
if (limit != null) {
|
|
414
|
+
_queryParams.limit = limit.toString();
|
|
415
|
+
}
|
|
416
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
417
|
+
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);
|
|
418
|
+
const _response = yield core.fetcher({
|
|
419
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/posts`),
|
|
420
|
+
method: "GET",
|
|
421
|
+
headers: _headers,
|
|
422
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
423
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
424
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
425
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
426
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
427
|
+
logging: this._options.logging,
|
|
428
|
+
});
|
|
429
|
+
if (_response.ok) {
|
|
430
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
431
|
+
}
|
|
432
|
+
if (_response.error.reason === "status-code") {
|
|
433
|
+
switch (_response.error.statusCode) {
|
|
434
|
+
case 401:
|
|
435
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
436
|
+
case 404:
|
|
437
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
438
|
+
case 429:
|
|
439
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
440
|
+
case 500:
|
|
441
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
442
|
+
default:
|
|
443
|
+
throw new errors.ForumError({
|
|
444
|
+
statusCode: _response.error.statusCode,
|
|
445
|
+
body: _response.error.body,
|
|
446
|
+
rawResponse: _response.rawResponse,
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/threads/{id}/posts");
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* @param {Forum.GetThreadsIdPostsSubIdRequest} request
|
|
455
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
456
|
+
*
|
|
457
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
458
|
+
* @throws {@link Forum.NotFoundError}
|
|
459
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
460
|
+
* @throws {@link Forum.InternalServerError}
|
|
461
|
+
*
|
|
462
|
+
* @example
|
|
463
|
+
* await client.threads.getAPostFromThread({
|
|
464
|
+
* id: "id",
|
|
465
|
+
* subId: "subId"
|
|
466
|
+
* })
|
|
467
|
+
*/
|
|
468
|
+
getAPostFromThread(request, requestOptions) {
|
|
469
|
+
return core.HttpResponsePromise.fromPromise(this.__getAPostFromThread(request, requestOptions));
|
|
470
|
+
}
|
|
471
|
+
__getAPostFromThread(request, requestOptions) {
|
|
472
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
473
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
474
|
+
const { id, subId } = request;
|
|
475
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
476
|
+
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);
|
|
477
|
+
const _response = yield core.fetcher({
|
|
478
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/posts/${core.url.encodePathParam(subId)}`),
|
|
479
|
+
method: "GET",
|
|
480
|
+
headers: _headers,
|
|
481
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
482
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
483
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
484
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
485
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
486
|
+
logging: this._options.logging,
|
|
487
|
+
});
|
|
488
|
+
if (_response.ok) {
|
|
489
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
490
|
+
}
|
|
491
|
+
if (_response.error.reason === "status-code") {
|
|
492
|
+
switch (_response.error.statusCode) {
|
|
493
|
+
case 401:
|
|
494
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
495
|
+
case 404:
|
|
496
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
497
|
+
case 429:
|
|
498
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
499
|
+
case 500:
|
|
500
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
501
|
+
default:
|
|
502
|
+
throw new errors.ForumError({
|
|
503
|
+
statusCode: _response.error.statusCode,
|
|
504
|
+
body: _response.error.body,
|
|
505
|
+
rawResponse: _response.rawResponse,
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/threads/{id}/posts/{subId}");
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* @param {Forum.DeleteThreadsIdPostsSubIdRequest} request
|
|
514
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
515
|
+
*
|
|
516
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
517
|
+
* @throws {@link Forum.NotFoundError}
|
|
518
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
519
|
+
* @throws {@link Forum.InternalServerError}
|
|
520
|
+
*
|
|
521
|
+
* @example
|
|
522
|
+
* await client.threads.deleteAPostFromThread({
|
|
523
|
+
* id: "id",
|
|
524
|
+
* subId: "subId"
|
|
525
|
+
* })
|
|
526
|
+
*/
|
|
527
|
+
deleteAPostFromThread(request, requestOptions) {
|
|
528
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteAPostFromThread(request, requestOptions));
|
|
529
|
+
}
|
|
530
|
+
__deleteAPostFromThread(request, requestOptions) {
|
|
531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
532
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
533
|
+
const { id, subId } = request;
|
|
534
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
535
|
+
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);
|
|
536
|
+
const _response = yield core.fetcher({
|
|
537
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/posts/${core.url.encodePathParam(subId)}`),
|
|
538
|
+
method: "DELETE",
|
|
539
|
+
headers: _headers,
|
|
540
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
541
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
542
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
543
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
544
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
545
|
+
logging: this._options.logging,
|
|
546
|
+
});
|
|
547
|
+
if (_response.ok) {
|
|
548
|
+
return {
|
|
549
|
+
data: _response.body,
|
|
550
|
+
rawResponse: _response.rawResponse,
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
if (_response.error.reason === "status-code") {
|
|
554
|
+
switch (_response.error.statusCode) {
|
|
555
|
+
case 401:
|
|
556
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
557
|
+
case 404:
|
|
558
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
559
|
+
case 429:
|
|
560
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
561
|
+
case 500:
|
|
562
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
563
|
+
default:
|
|
564
|
+
throw new errors.ForumError({
|
|
565
|
+
statusCode: _response.error.statusCode,
|
|
566
|
+
body: _response.error.body,
|
|
567
|
+
rawResponse: _response.rawResponse,
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/threads/{id}/posts/{subId}");
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* @param {Forum.GetThreadsIdReactionsRequest} request
|
|
576
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
577
|
+
*
|
|
578
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
579
|
+
* @throws {@link Forum.NotFoundError}
|
|
580
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
581
|
+
* @throws {@link Forum.InternalServerError}
|
|
582
|
+
*
|
|
583
|
+
* @example
|
|
584
|
+
* await client.threads.listThreadReactions({
|
|
585
|
+
* id: "id"
|
|
586
|
+
* })
|
|
587
|
+
*/
|
|
588
|
+
listThreadReactions(request, requestOptions) {
|
|
589
|
+
return core.HttpResponsePromise.fromPromise(this.__listThreadReactions(request, requestOptions));
|
|
590
|
+
}
|
|
591
|
+
__listThreadReactions(request, requestOptions) {
|
|
592
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
593
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
594
|
+
const { id, cursor, limit } = request;
|
|
595
|
+
const _queryParams = {};
|
|
596
|
+
if (cursor != null) {
|
|
597
|
+
_queryParams.cursor = cursor;
|
|
598
|
+
}
|
|
599
|
+
if (limit != null) {
|
|
600
|
+
_queryParams.limit = limit.toString();
|
|
601
|
+
}
|
|
602
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
603
|
+
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);
|
|
604
|
+
const _response = yield core.fetcher({
|
|
605
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/reactions`),
|
|
606
|
+
method: "GET",
|
|
607
|
+
headers: _headers,
|
|
608
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
609
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
610
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
611
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
612
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
613
|
+
logging: this._options.logging,
|
|
614
|
+
});
|
|
615
|
+
if (_response.ok) {
|
|
616
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
617
|
+
}
|
|
618
|
+
if (_response.error.reason === "status-code") {
|
|
619
|
+
switch (_response.error.statusCode) {
|
|
620
|
+
case 401:
|
|
621
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
622
|
+
case 404:
|
|
623
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
624
|
+
case 429:
|
|
625
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
626
|
+
case 500:
|
|
627
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
628
|
+
default:
|
|
629
|
+
throw new errors.ForumError({
|
|
630
|
+
statusCode: _response.error.statusCode,
|
|
631
|
+
body: _response.error.body,
|
|
632
|
+
rawResponse: _response.rawResponse,
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/threads/{id}/reactions");
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* @param {Forum.PostThreadsIdReactionsRequest} request
|
|
641
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
642
|
+
*
|
|
643
|
+
* @throws {@link Forum.BadRequestError}
|
|
644
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
645
|
+
* @throws {@link Forum.NotFoundError}
|
|
646
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
647
|
+
* @throws {@link Forum.InternalServerError}
|
|
648
|
+
*
|
|
649
|
+
* @example
|
|
650
|
+
* await client.threads.createAReactionInThread({
|
|
651
|
+
* id: "id",
|
|
652
|
+
* type: "LIKE"
|
|
653
|
+
* })
|
|
654
|
+
*/
|
|
655
|
+
createAReactionInThread(request, requestOptions) {
|
|
656
|
+
return core.HttpResponsePromise.fromPromise(this.__createAReactionInThread(request, requestOptions));
|
|
657
|
+
}
|
|
658
|
+
__createAReactionInThread(request, requestOptions) {
|
|
659
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
660
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
661
|
+
const { id } = request, _body = __rest(request, ["id"]);
|
|
662
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
663
|
+
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);
|
|
664
|
+
const _response = yield core.fetcher({
|
|
665
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/reactions`),
|
|
666
|
+
method: "POST",
|
|
667
|
+
headers: _headers,
|
|
668
|
+
contentType: "application/json",
|
|
669
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
670
|
+
requestType: "json",
|
|
671
|
+
body: _body,
|
|
672
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
673
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
674
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
675
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
676
|
+
logging: this._options.logging,
|
|
677
|
+
});
|
|
678
|
+
if (_response.ok) {
|
|
679
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
680
|
+
}
|
|
681
|
+
if (_response.error.reason === "status-code") {
|
|
682
|
+
switch (_response.error.statusCode) {
|
|
683
|
+
case 400:
|
|
684
|
+
throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
|
|
685
|
+
case 401:
|
|
686
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
687
|
+
case 404:
|
|
688
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
689
|
+
case 429:
|
|
690
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
691
|
+
case 500:
|
|
692
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
693
|
+
default:
|
|
694
|
+
throw new errors.ForumError({
|
|
695
|
+
statusCode: _response.error.statusCode,
|
|
696
|
+
body: _response.error.body,
|
|
697
|
+
rawResponse: _response.rawResponse,
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/threads/{id}/reactions");
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Removes the authenticated user's reaction. No subId needed.
|
|
706
|
+
*
|
|
707
|
+
* @param {Forum.DeleteThreadsIdReactionsRequest} request
|
|
708
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
709
|
+
*
|
|
710
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
711
|
+
* @throws {@link Forum.NotFoundError}
|
|
712
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
713
|
+
* @throws {@link Forum.InternalServerError}
|
|
714
|
+
*
|
|
715
|
+
* @example
|
|
716
|
+
* await client.threads.removeYourReactionFromThread({
|
|
717
|
+
* id: "id"
|
|
718
|
+
* })
|
|
719
|
+
*/
|
|
720
|
+
removeYourReactionFromThread(request, requestOptions) {
|
|
721
|
+
return core.HttpResponsePromise.fromPromise(this.__removeYourReactionFromThread(request, requestOptions));
|
|
722
|
+
}
|
|
723
|
+
__removeYourReactionFromThread(request, requestOptions) {
|
|
724
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
725
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
726
|
+
const { id } = request;
|
|
727
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
728
|
+
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);
|
|
729
|
+
const _response = yield core.fetcher({
|
|
730
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/reactions`),
|
|
731
|
+
method: "DELETE",
|
|
732
|
+
headers: _headers,
|
|
733
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
734
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
735
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
736
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
737
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
738
|
+
logging: this._options.logging,
|
|
739
|
+
});
|
|
740
|
+
if (_response.ok) {
|
|
741
|
+
return {
|
|
742
|
+
data: _response.body,
|
|
743
|
+
rawResponse: _response.rawResponse,
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
if (_response.error.reason === "status-code") {
|
|
747
|
+
switch (_response.error.statusCode) {
|
|
748
|
+
case 401:
|
|
749
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
750
|
+
case 404:
|
|
751
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
752
|
+
case 429:
|
|
753
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
754
|
+
case 500:
|
|
755
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
756
|
+
default:
|
|
757
|
+
throw new errors.ForumError({
|
|
758
|
+
statusCode: _response.error.statusCode,
|
|
759
|
+
body: _response.error.body,
|
|
760
|
+
rawResponse: _response.rawResponse,
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/threads/{id}/reactions");
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* @param {Forum.GetThreadsIdReactionsSubIdRequest} request
|
|
769
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
770
|
+
*
|
|
771
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
772
|
+
* @throws {@link Forum.NotFoundError}
|
|
773
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
774
|
+
* @throws {@link Forum.InternalServerError}
|
|
775
|
+
*
|
|
776
|
+
* @example
|
|
777
|
+
* await client.threads.getAReactionFromThread({
|
|
778
|
+
* id: "id",
|
|
779
|
+
* subId: "subId"
|
|
780
|
+
* })
|
|
781
|
+
*/
|
|
782
|
+
getAReactionFromThread(request, requestOptions) {
|
|
783
|
+
return core.HttpResponsePromise.fromPromise(this.__getAReactionFromThread(request, requestOptions));
|
|
784
|
+
}
|
|
785
|
+
__getAReactionFromThread(request, requestOptions) {
|
|
786
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
787
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
788
|
+
const { id, subId } = request;
|
|
789
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
790
|
+
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);
|
|
791
|
+
const _response = yield core.fetcher({
|
|
792
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/reactions/${core.url.encodePathParam(subId)}`),
|
|
793
|
+
method: "GET",
|
|
794
|
+
headers: _headers,
|
|
795
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
796
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
797
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
798
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
799
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
800
|
+
logging: this._options.logging,
|
|
801
|
+
});
|
|
802
|
+
if (_response.ok) {
|
|
803
|
+
return {
|
|
804
|
+
data: _response.body,
|
|
805
|
+
rawResponse: _response.rawResponse,
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
if (_response.error.reason === "status-code") {
|
|
809
|
+
switch (_response.error.statusCode) {
|
|
810
|
+
case 401:
|
|
811
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
812
|
+
case 404:
|
|
813
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
814
|
+
case 429:
|
|
815
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
816
|
+
case 500:
|
|
817
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
818
|
+
default:
|
|
819
|
+
throw new errors.ForumError({
|
|
820
|
+
statusCode: _response.error.statusCode,
|
|
821
|
+
body: _response.error.body,
|
|
822
|
+
rawResponse: _response.rawResponse,
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/threads/{id}/reactions/{subId}");
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* @param {Forum.DeleteThreadsIdReactionsSubIdRequest} request
|
|
831
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
832
|
+
*
|
|
833
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
834
|
+
* @throws {@link Forum.NotFoundError}
|
|
835
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
836
|
+
* @throws {@link Forum.InternalServerError}
|
|
837
|
+
*
|
|
838
|
+
* @example
|
|
839
|
+
* await client.threads.deleteAReactionFromThread({
|
|
840
|
+
* id: "id",
|
|
841
|
+
* subId: "subId"
|
|
842
|
+
* })
|
|
843
|
+
*/
|
|
844
|
+
deleteAReactionFromThread(request, requestOptions) {
|
|
845
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteAReactionFromThread(request, requestOptions));
|
|
846
|
+
}
|
|
847
|
+
__deleteAReactionFromThread(request, requestOptions) {
|
|
848
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
849
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
850
|
+
const { id, subId } = request;
|
|
851
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
852
|
+
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);
|
|
853
|
+
const _response = yield core.fetcher({
|
|
854
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/reactions/${core.url.encodePathParam(subId)}`),
|
|
855
|
+
method: "DELETE",
|
|
856
|
+
headers: _headers,
|
|
857
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
858
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
859
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
860
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
861
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
862
|
+
logging: this._options.logging,
|
|
863
|
+
});
|
|
864
|
+
if (_response.ok) {
|
|
865
|
+
return {
|
|
866
|
+
data: _response.body,
|
|
867
|
+
rawResponse: _response.rawResponse,
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
if (_response.error.reason === "status-code") {
|
|
871
|
+
switch (_response.error.statusCode) {
|
|
872
|
+
case 401:
|
|
873
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
874
|
+
case 404:
|
|
875
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
876
|
+
case 429:
|
|
877
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
878
|
+
case 500:
|
|
879
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
880
|
+
default:
|
|
881
|
+
throw new errors.ForumError({
|
|
882
|
+
statusCode: _response.error.statusCode,
|
|
883
|
+
body: _response.error.body,
|
|
884
|
+
rawResponse: _response.rawResponse,
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/threads/{id}/reactions/{subId}");
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* @param {Forum.GetThreadsIdSubscribersRequest} request
|
|
893
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
894
|
+
*
|
|
895
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
896
|
+
* @throws {@link Forum.NotFoundError}
|
|
897
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
898
|
+
* @throws {@link Forum.InternalServerError}
|
|
899
|
+
*
|
|
900
|
+
* @example
|
|
901
|
+
* await client.threads.listThreadSubscribers({
|
|
902
|
+
* id: "id"
|
|
903
|
+
* })
|
|
904
|
+
*/
|
|
905
|
+
listThreadSubscribers(request, requestOptions) {
|
|
906
|
+
return core.HttpResponsePromise.fromPromise(this.__listThreadSubscribers(request, requestOptions));
|
|
907
|
+
}
|
|
908
|
+
__listThreadSubscribers(request, requestOptions) {
|
|
909
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
910
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
911
|
+
const { id, cursor, limit } = request;
|
|
912
|
+
const _queryParams = {};
|
|
913
|
+
if (cursor != null) {
|
|
914
|
+
_queryParams.cursor = cursor;
|
|
915
|
+
}
|
|
916
|
+
if (limit != null) {
|
|
917
|
+
_queryParams.limit = limit.toString();
|
|
918
|
+
}
|
|
919
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
920
|
+
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);
|
|
921
|
+
const _response = yield core.fetcher({
|
|
922
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/subscribers`),
|
|
923
|
+
method: "GET",
|
|
924
|
+
headers: _headers,
|
|
925
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
926
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
927
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
928
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
929
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
930
|
+
logging: this._options.logging,
|
|
931
|
+
});
|
|
932
|
+
if (_response.ok) {
|
|
933
|
+
return {
|
|
934
|
+
data: _response.body,
|
|
935
|
+
rawResponse: _response.rawResponse,
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
if (_response.error.reason === "status-code") {
|
|
939
|
+
switch (_response.error.statusCode) {
|
|
940
|
+
case 401:
|
|
941
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
942
|
+
case 404:
|
|
943
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
944
|
+
case 429:
|
|
945
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
946
|
+
case 500:
|
|
947
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
948
|
+
default:
|
|
949
|
+
throw new errors.ForumError({
|
|
950
|
+
statusCode: _response.error.statusCode,
|
|
951
|
+
body: _response.error.body,
|
|
952
|
+
rawResponse: _response.rawResponse,
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/threads/{id}/subscribers");
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* @param {Forum.GetThreadsIdSubscribersSubIdRequest} request
|
|
961
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
962
|
+
*
|
|
963
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
964
|
+
* @throws {@link Forum.NotFoundError}
|
|
965
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
966
|
+
* @throws {@link Forum.InternalServerError}
|
|
967
|
+
*
|
|
968
|
+
* @example
|
|
969
|
+
* await client.threads.getASubscriberFromThread({
|
|
970
|
+
* id: "id",
|
|
971
|
+
* subId: "subId"
|
|
972
|
+
* })
|
|
973
|
+
*/
|
|
974
|
+
getASubscriberFromThread(request, requestOptions) {
|
|
975
|
+
return core.HttpResponsePromise.fromPromise(this.__getASubscriberFromThread(request, requestOptions));
|
|
976
|
+
}
|
|
977
|
+
__getASubscriberFromThread(request, requestOptions) {
|
|
978
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
979
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
980
|
+
const { id, subId } = request;
|
|
981
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
982
|
+
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);
|
|
983
|
+
const _response = yield core.fetcher({
|
|
984
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/subscribers/${core.url.encodePathParam(subId)}`),
|
|
985
|
+
method: "GET",
|
|
986
|
+
headers: _headers,
|
|
987
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
988
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
989
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
990
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
991
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
992
|
+
logging: this._options.logging,
|
|
993
|
+
});
|
|
994
|
+
if (_response.ok) {
|
|
995
|
+
return {
|
|
996
|
+
data: _response.body,
|
|
997
|
+
rawResponse: _response.rawResponse,
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
if (_response.error.reason === "status-code") {
|
|
1001
|
+
switch (_response.error.statusCode) {
|
|
1002
|
+
case 401:
|
|
1003
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1004
|
+
case 404:
|
|
1005
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1006
|
+
case 429:
|
|
1007
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1008
|
+
case 500:
|
|
1009
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1010
|
+
default:
|
|
1011
|
+
throw new errors.ForumError({
|
|
1012
|
+
statusCode: _response.error.statusCode,
|
|
1013
|
+
body: _response.error.body,
|
|
1014
|
+
rawResponse: _response.rawResponse,
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/threads/{id}/subscribers/{subId}");
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* @param {Forum.DeleteThreadsIdSubscribersSubIdRequest} request
|
|
1023
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1024
|
+
*
|
|
1025
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
1026
|
+
* @throws {@link Forum.NotFoundError}
|
|
1027
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
1028
|
+
* @throws {@link Forum.InternalServerError}
|
|
1029
|
+
*
|
|
1030
|
+
* @example
|
|
1031
|
+
* await client.threads.deleteASubscriberFromThread({
|
|
1032
|
+
* id: "id",
|
|
1033
|
+
* subId: "subId"
|
|
1034
|
+
* })
|
|
1035
|
+
*/
|
|
1036
|
+
deleteASubscriberFromThread(request, requestOptions) {
|
|
1037
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteASubscriberFromThread(request, requestOptions));
|
|
1038
|
+
}
|
|
1039
|
+
__deleteASubscriberFromThread(request, requestOptions) {
|
|
1040
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1041
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1042
|
+
const { id, subId } = request;
|
|
1043
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1044
|
+
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);
|
|
1045
|
+
const _response = yield core.fetcher({
|
|
1046
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/subscribers/${core.url.encodePathParam(subId)}`),
|
|
1047
|
+
method: "DELETE",
|
|
1048
|
+
headers: _headers,
|
|
1049
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1050
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
1051
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
1052
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1053
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
1054
|
+
logging: this._options.logging,
|
|
1055
|
+
});
|
|
1056
|
+
if (_response.ok) {
|
|
1057
|
+
return {
|
|
1058
|
+
data: _response.body,
|
|
1059
|
+
rawResponse: _response.rawResponse,
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
if (_response.error.reason === "status-code") {
|
|
1063
|
+
switch (_response.error.statusCode) {
|
|
1064
|
+
case 401:
|
|
1065
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1066
|
+
case 404:
|
|
1067
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1068
|
+
case 429:
|
|
1069
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1070
|
+
case 500:
|
|
1071
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1072
|
+
default:
|
|
1073
|
+
throw new errors.ForumError({
|
|
1074
|
+
statusCode: _response.error.statusCode,
|
|
1075
|
+
body: _response.error.body,
|
|
1076
|
+
rawResponse: _response.rawResponse,
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/threads/{id}/subscribers/{subId}");
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* @param {Forum.GetThreadsIdPollRequest} request
|
|
1085
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1086
|
+
*
|
|
1087
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
1088
|
+
* @throws {@link Forum.NotFoundError}
|
|
1089
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
1090
|
+
* @throws {@link Forum.InternalServerError}
|
|
1091
|
+
*
|
|
1092
|
+
* @example
|
|
1093
|
+
* await client.threads.getThreadPoll({
|
|
1094
|
+
* id: "id"
|
|
1095
|
+
* })
|
|
1096
|
+
*/
|
|
1097
|
+
getThreadPoll(request, requestOptions) {
|
|
1098
|
+
return core.HttpResponsePromise.fromPromise(this.__getThreadPoll(request, requestOptions));
|
|
1099
|
+
}
|
|
1100
|
+
__getThreadPoll(request, requestOptions) {
|
|
1101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1102
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1103
|
+
const { id } = request;
|
|
1104
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1105
|
+
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);
|
|
1106
|
+
const _response = yield core.fetcher({
|
|
1107
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/poll`),
|
|
1108
|
+
method: "GET",
|
|
1109
|
+
headers: _headers,
|
|
1110
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1111
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
1112
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
1113
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1114
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
1115
|
+
logging: this._options.logging,
|
|
1116
|
+
});
|
|
1117
|
+
if (_response.ok) {
|
|
1118
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1119
|
+
}
|
|
1120
|
+
if (_response.error.reason === "status-code") {
|
|
1121
|
+
switch (_response.error.statusCode) {
|
|
1122
|
+
case 401:
|
|
1123
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1124
|
+
case 404:
|
|
1125
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1126
|
+
case 429:
|
|
1127
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1128
|
+
case 500:
|
|
1129
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1130
|
+
default:
|
|
1131
|
+
throw new errors.ForumError({
|
|
1132
|
+
statusCode: _response.error.statusCode,
|
|
1133
|
+
body: _response.error.body,
|
|
1134
|
+
rawResponse: _response.rawResponse,
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/threads/{id}/poll");
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* @param {Forum.PostThreadsIdPollRequest} request
|
|
1143
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1144
|
+
*
|
|
1145
|
+
* @throws {@link Forum.BadRequestError}
|
|
1146
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
1147
|
+
* @throws {@link Forum.NotFoundError}
|
|
1148
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
1149
|
+
* @throws {@link Forum.InternalServerError}
|
|
1150
|
+
*
|
|
1151
|
+
* @example
|
|
1152
|
+
* await client.threads.createThreadPoll({
|
|
1153
|
+
* id: "id",
|
|
1154
|
+
* title: "title",
|
|
1155
|
+
* options: [{
|
|
1156
|
+
* title: "title"
|
|
1157
|
+
* }]
|
|
1158
|
+
* })
|
|
1159
|
+
*/
|
|
1160
|
+
createThreadPoll(request, requestOptions) {
|
|
1161
|
+
return core.HttpResponsePromise.fromPromise(this.__createThreadPoll(request, requestOptions));
|
|
1162
|
+
}
|
|
1163
|
+
__createThreadPoll(request, requestOptions) {
|
|
1164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1165
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1166
|
+
const { id } = request, _body = __rest(request, ["id"]);
|
|
1167
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1168
|
+
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);
|
|
1169
|
+
const _response = yield core.fetcher({
|
|
1170
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/poll`),
|
|
1171
|
+
method: "POST",
|
|
1172
|
+
headers: _headers,
|
|
1173
|
+
contentType: "application/json",
|
|
1174
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1175
|
+
requestType: "json",
|
|
1176
|
+
body: _body,
|
|
1177
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
1178
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
1179
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1180
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
1181
|
+
logging: this._options.logging,
|
|
1182
|
+
});
|
|
1183
|
+
if (_response.ok) {
|
|
1184
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1185
|
+
}
|
|
1186
|
+
if (_response.error.reason === "status-code") {
|
|
1187
|
+
switch (_response.error.statusCode) {
|
|
1188
|
+
case 400:
|
|
1189
|
+
throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1190
|
+
case 401:
|
|
1191
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1192
|
+
case 404:
|
|
1193
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1194
|
+
case 429:
|
|
1195
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1196
|
+
case 500:
|
|
1197
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1198
|
+
default:
|
|
1199
|
+
throw new errors.ForumError({
|
|
1200
|
+
statusCode: _response.error.statusCode,
|
|
1201
|
+
body: _response.error.body,
|
|
1202
|
+
rawResponse: _response.rawResponse,
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/threads/{id}/poll");
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* @param {Forum.PatchThreadsIdPollRequest} request
|
|
1211
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1212
|
+
*
|
|
1213
|
+
* @throws {@link Forum.BadRequestError}
|
|
1214
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
1215
|
+
* @throws {@link Forum.NotFoundError}
|
|
1216
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
1217
|
+
* @throws {@link Forum.InternalServerError}
|
|
1218
|
+
*
|
|
1219
|
+
* @example
|
|
1220
|
+
* await client.threads.updateThreadPoll({
|
|
1221
|
+
* id: "id"
|
|
1222
|
+
* })
|
|
1223
|
+
*/
|
|
1224
|
+
updateThreadPoll(request, requestOptions) {
|
|
1225
|
+
return core.HttpResponsePromise.fromPromise(this.__updateThreadPoll(request, requestOptions));
|
|
1226
|
+
}
|
|
1227
|
+
__updateThreadPoll(request, requestOptions) {
|
|
1228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1229
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1230
|
+
const { id } = request, _body = __rest(request, ["id"]);
|
|
1231
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1232
|
+
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);
|
|
1233
|
+
const _response = yield core.fetcher({
|
|
1234
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/poll`),
|
|
1235
|
+
method: "PATCH",
|
|
1236
|
+
headers: _headers,
|
|
1237
|
+
contentType: "application/json",
|
|
1238
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1239
|
+
requestType: "json",
|
|
1240
|
+
body: _body,
|
|
1241
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
1242
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
1243
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1244
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
1245
|
+
logging: this._options.logging,
|
|
1246
|
+
});
|
|
1247
|
+
if (_response.ok) {
|
|
1248
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1249
|
+
}
|
|
1250
|
+
if (_response.error.reason === "status-code") {
|
|
1251
|
+
switch (_response.error.statusCode) {
|
|
1252
|
+
case 400:
|
|
1253
|
+
throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1254
|
+
case 401:
|
|
1255
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1256
|
+
case 404:
|
|
1257
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1258
|
+
case 429:
|
|
1259
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1260
|
+
case 500:
|
|
1261
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1262
|
+
default:
|
|
1263
|
+
throw new errors.ForumError({
|
|
1264
|
+
statusCode: _response.error.statusCode,
|
|
1265
|
+
body: _response.error.body,
|
|
1266
|
+
rawResponse: _response.rawResponse,
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/threads/{id}/poll");
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
388
1273
|
}
|
|
389
1274
|
exports.ThreadsClient = ThreadsClient;
|