@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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* id: "id",
|
|
5
|
+
* type: "LIKE"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface PostPostsIdReactionsRequest {
|
|
9
|
+
/** Post ID */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Type of reaction */
|
|
12
|
+
type: PostPostsIdReactionsRequest.Type;
|
|
13
|
+
/** User ID (required for API key auth, ignored for JWT auth) */
|
|
14
|
+
userId?: string;
|
|
15
|
+
/** Additional custom data */
|
|
16
|
+
extendedData?: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace PostPostsIdReactionsRequest {
|
|
19
|
+
/** Type of reaction */
|
|
20
|
+
const Type: {
|
|
21
|
+
readonly Like: "LIKE";
|
|
22
|
+
readonly Dislike: "DISLIKE";
|
|
23
|
+
readonly Upvote: "UPVOTE";
|
|
24
|
+
readonly Downvote: "DOWNVOTE";
|
|
25
|
+
};
|
|
26
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PostPostsIdReactionsRequest = void 0;
|
|
5
|
+
var PostPostsIdReactionsRequest;
|
|
6
|
+
(function (PostPostsIdReactionsRequest) {
|
|
7
|
+
/** Type of reaction */
|
|
8
|
+
PostPostsIdReactionsRequest.Type = {
|
|
9
|
+
Like: "LIKE",
|
|
10
|
+
Dislike: "DISLIKE",
|
|
11
|
+
Upvote: "UPVOTE",
|
|
12
|
+
Downvote: "DOWNVOTE",
|
|
13
|
+
};
|
|
14
|
+
})(PostPostsIdReactionsRequest || (exports.PostPostsIdReactionsRequest = PostPostsIdReactionsRequest = {}));
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
export type { DeletePostsIdPostsSubIdRequest } from "./DeletePostsIdPostsSubIdRequest.js";
|
|
2
|
+
export type { DeletePostsIdReactionsRequest } from "./DeletePostsIdReactionsRequest.js";
|
|
3
|
+
export type { DeletePostsIdReactionsSubIdRequest } from "./DeletePostsIdReactionsSubIdRequest.js";
|
|
1
4
|
export type { DeletePostsIdRequest } from "./DeletePostsIdRequest.js";
|
|
5
|
+
export type { GetPostsIdPostsRequest } from "./GetPostsIdPostsRequest.js";
|
|
6
|
+
export type { GetPostsIdPostsSubIdRequest } from "./GetPostsIdPostsSubIdRequest.js";
|
|
7
|
+
export type { GetPostsIdReactionsRequest } from "./GetPostsIdReactionsRequest.js";
|
|
8
|
+
export type { GetPostsIdReactionsSubIdRequest } from "./GetPostsIdReactionsSubIdRequest.js";
|
|
2
9
|
export type { GetPostsIdRequest } from "./GetPostsIdRequest.js";
|
|
3
10
|
export type { GetPostsRequest } from "./GetPostsRequest.js";
|
|
4
11
|
export type { PatchPostsIdRequest } from "./PatchPostsIdRequest.js";
|
|
12
|
+
export type { PostPostsIdReactionsRequest } from "./PostPostsIdReactionsRequest.js";
|
|
5
13
|
export type { PostPostsRequest } from "./PostPostsRequest.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface GetPostsIdPostsResponse {
|
|
2
|
+
data: GetPostsIdPostsResponse.Data;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace GetPostsIdPostsResponse {
|
|
5
|
+
interface Data {
|
|
6
|
+
items: Data.Items.Item[];
|
|
7
|
+
nextCursor?: string;
|
|
8
|
+
count: number;
|
|
9
|
+
}
|
|
10
|
+
namespace Data {
|
|
11
|
+
type Items = Items.Item[];
|
|
12
|
+
namespace Items {
|
|
13
|
+
type Item = {};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface GetPostsIdReactionsResponse {
|
|
2
|
+
data: GetPostsIdReactionsResponse.Data;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace GetPostsIdReactionsResponse {
|
|
5
|
+
interface Data {
|
|
6
|
+
items: Data.Items.Item[];
|
|
7
|
+
nextCursor?: string;
|
|
8
|
+
count: number;
|
|
9
|
+
}
|
|
10
|
+
namespace Data {
|
|
11
|
+
type Items = Items.Item[];
|
|
12
|
+
namespace Items {
|
|
13
|
+
type Item = {};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -13,5 +13,11 @@ export declare namespace GetPostsIdResponse {
|
|
|
13
13
|
parentId?: string;
|
|
14
14
|
extendedData?: Record<string, unknown>;
|
|
15
15
|
id: string;
|
|
16
|
+
/** Nesting level for threaded replies */
|
|
17
|
+
depth: number | null;
|
|
18
|
+
/** Post creation timestamp */
|
|
19
|
+
createdAt: string;
|
|
20
|
+
/** Post last update timestamp */
|
|
21
|
+
updatedAt: string;
|
|
16
22
|
}
|
|
17
23
|
}
|
|
@@ -16,6 +16,12 @@ export declare namespace GetPostsResponse {
|
|
|
16
16
|
parentId?: string;
|
|
17
17
|
extendedData?: Record<string, unknown>;
|
|
18
18
|
id: string;
|
|
19
|
+
/** Nesting level for threaded replies */
|
|
20
|
+
depth: number | null;
|
|
21
|
+
/** Post creation timestamp */
|
|
22
|
+
createdAt: string;
|
|
23
|
+
/** Post last update timestamp */
|
|
24
|
+
updatedAt: string;
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
interface Meta {
|
|
@@ -13,5 +13,11 @@ export declare namespace PatchPostsIdResponse {
|
|
|
13
13
|
parentId?: string;
|
|
14
14
|
extendedData?: Record<string, unknown>;
|
|
15
15
|
id: string;
|
|
16
|
+
/** Nesting level for threaded replies */
|
|
17
|
+
depth: number | null;
|
|
18
|
+
/** Post creation timestamp */
|
|
19
|
+
createdAt: string;
|
|
20
|
+
/** Post last update timestamp */
|
|
21
|
+
updatedAt: string;
|
|
16
22
|
}
|
|
17
23
|
}
|
|
@@ -13,5 +13,11 @@ export declare namespace PostPostsResponse {
|
|
|
13
13
|
parentId?: string;
|
|
14
14
|
extendedData?: Record<string, unknown>;
|
|
15
15
|
id: string;
|
|
16
|
+
/** Nesting level for threaded replies */
|
|
17
|
+
depth: number | null;
|
|
18
|
+
/** Post creation timestamp */
|
|
19
|
+
createdAt: string;
|
|
20
|
+
/** Post last update timestamp */
|
|
21
|
+
updatedAt: string;
|
|
16
22
|
}
|
|
17
23
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
export * from "./DeletePostsIdPostsSubIdResponse.js";
|
|
2
|
+
export * from "./DeletePostsIdReactionsResponse.js";
|
|
3
|
+
export * from "./DeletePostsIdReactionsSubIdResponse.js";
|
|
1
4
|
export * from "./DeletePostsIdResponse.js";
|
|
5
|
+
export * from "./GetPostsIdPostsResponse.js";
|
|
6
|
+
export * from "./GetPostsIdPostsSubIdResponse.js";
|
|
7
|
+
export * from "./GetPostsIdReactionsResponse.js";
|
|
8
|
+
export * from "./GetPostsIdReactionsSubIdResponse.js";
|
|
2
9
|
export * from "./GetPostsIdResponse.js";
|
|
3
10
|
export * from "./GetPostsResponse.js";
|
|
4
11
|
export * from "./PatchPostsIdResponse.js";
|
|
12
|
+
export * from "./PostPostsIdReactionsResponse.js";
|
|
5
13
|
export * from "./PostPostsResponse.js";
|
|
@@ -14,8 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DeletePostsIdPostsSubIdResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./DeletePostsIdReactionsResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./DeletePostsIdReactionsSubIdResponse.js"), exports);
|
|
17
20
|
__exportStar(require("./DeletePostsIdResponse.js"), exports);
|
|
21
|
+
__exportStar(require("./GetPostsIdPostsResponse.js"), exports);
|
|
22
|
+
__exportStar(require("./GetPostsIdPostsSubIdResponse.js"), exports);
|
|
23
|
+
__exportStar(require("./GetPostsIdReactionsResponse.js"), exports);
|
|
24
|
+
__exportStar(require("./GetPostsIdReactionsSubIdResponse.js"), exports);
|
|
18
25
|
__exportStar(require("./GetPostsIdResponse.js"), exports);
|
|
19
26
|
__exportStar(require("./GetPostsResponse.js"), exports);
|
|
20
27
|
__exportStar(require("./PatchPostsIdResponse.js"), exports);
|
|
28
|
+
__exportStar(require("./PostPostsIdReactionsResponse.js"), exports);
|
|
21
29
|
__exportStar(require("./PostPostsResponse.js"), exports);
|
|
@@ -76,4 +76,73 @@ export declare class PrivateMessagesClient {
|
|
|
76
76
|
*/
|
|
77
77
|
deleteAPrivateMessage(request: Forum.DeletePrivateMessagesIdRequest, requestOptions?: PrivateMessagesClient.RequestOptions): core.HttpResponsePromise<Forum.DeletePrivateMessagesIdResponse>;
|
|
78
78
|
private __deleteAPrivateMessage;
|
|
79
|
+
/**
|
|
80
|
+
* @param {Forum.GetPrivateMessagesIdRepliesRequest} request
|
|
81
|
+
* @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
84
|
+
* @throws {@link Forum.NotFoundError}
|
|
85
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
86
|
+
* @throws {@link Forum.InternalServerError}
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await client.privateMessages.listPrivateMessageReplies({
|
|
90
|
+
* id: "id"
|
|
91
|
+
* })
|
|
92
|
+
*/
|
|
93
|
+
listPrivateMessageReplies(request: Forum.GetPrivateMessagesIdRepliesRequest, requestOptions?: PrivateMessagesClient.RequestOptions): core.HttpResponsePromise<Forum.GetPrivateMessagesIdRepliesResponse>;
|
|
94
|
+
private __listPrivateMessageReplies;
|
|
95
|
+
/**
|
|
96
|
+
* @param {Forum.PostPrivateMessagesIdRepliesRequest} request
|
|
97
|
+
* @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link Forum.BadRequestError}
|
|
100
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
101
|
+
* @throws {@link Forum.NotFoundError}
|
|
102
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
103
|
+
* @throws {@link Forum.InternalServerError}
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* await client.privateMessages.createAReplyInPrivateMessage({
|
|
107
|
+
* id: "id",
|
|
108
|
+
* recipientId: "recipientId",
|
|
109
|
+
* body: "body"
|
|
110
|
+
* })
|
|
111
|
+
*/
|
|
112
|
+
createAReplyInPrivateMessage(request: Forum.PostPrivateMessagesIdRepliesRequest, requestOptions?: PrivateMessagesClient.RequestOptions): core.HttpResponsePromise<Forum.PostPrivateMessagesIdRepliesResponse>;
|
|
113
|
+
private __createAReplyInPrivateMessage;
|
|
114
|
+
/**
|
|
115
|
+
* @param {Forum.GetPrivateMessagesIdRepliesSubIdRequest} request
|
|
116
|
+
* @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
119
|
+
* @throws {@link Forum.NotFoundError}
|
|
120
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
121
|
+
* @throws {@link Forum.InternalServerError}
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* await client.privateMessages.getAReplyFromPrivateMessage({
|
|
125
|
+
* id: "id",
|
|
126
|
+
* subId: "subId"
|
|
127
|
+
* })
|
|
128
|
+
*/
|
|
129
|
+
getAReplyFromPrivateMessage(request: Forum.GetPrivateMessagesIdRepliesSubIdRequest, requestOptions?: PrivateMessagesClient.RequestOptions): core.HttpResponsePromise<Forum.GetPrivateMessagesIdRepliesSubIdResponse>;
|
|
130
|
+
private __getAReplyFromPrivateMessage;
|
|
131
|
+
/**
|
|
132
|
+
* @param {Forum.DeletePrivateMessagesIdRepliesSubIdRequest} request
|
|
133
|
+
* @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
136
|
+
* @throws {@link Forum.NotFoundError}
|
|
137
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
138
|
+
* @throws {@link Forum.InternalServerError}
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* await client.privateMessages.deleteAReplyFromPrivateMessage({
|
|
142
|
+
* id: "id",
|
|
143
|
+
* subId: "subId"
|
|
144
|
+
* })
|
|
145
|
+
*/
|
|
146
|
+
deleteAReplyFromPrivateMessage(request: Forum.DeletePrivateMessagesIdRepliesSubIdRequest, requestOptions?: PrivateMessagesClient.RequestOptions): core.HttpResponsePromise<Forum.DeletePrivateMessagesIdRepliesSubIdResponse>;
|
|
147
|
+
private __deleteAReplyFromPrivateMessage;
|
|
79
148
|
}
|
|
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
57
|
exports.PrivateMessagesClient = void 0;
|
|
47
58
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
@@ -310,5 +321,266 @@ class PrivateMessagesClient {
|
|
|
310
321
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/private-messages/{id}");
|
|
311
322
|
});
|
|
312
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* @param {Forum.GetPrivateMessagesIdRepliesRequest} request
|
|
326
|
+
* @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
327
|
+
*
|
|
328
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
329
|
+
* @throws {@link Forum.NotFoundError}
|
|
330
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
331
|
+
* @throws {@link Forum.InternalServerError}
|
|
332
|
+
*
|
|
333
|
+
* @example
|
|
334
|
+
* await client.privateMessages.listPrivateMessageReplies({
|
|
335
|
+
* id: "id"
|
|
336
|
+
* })
|
|
337
|
+
*/
|
|
338
|
+
listPrivateMessageReplies(request, requestOptions) {
|
|
339
|
+
return core.HttpResponsePromise.fromPromise(this.__listPrivateMessageReplies(request, requestOptions));
|
|
340
|
+
}
|
|
341
|
+
__listPrivateMessageReplies(request, requestOptions) {
|
|
342
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
343
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
344
|
+
const { id, cursor, limit } = request;
|
|
345
|
+
const _queryParams = {};
|
|
346
|
+
if (cursor != null) {
|
|
347
|
+
_queryParams.cursor = cursor;
|
|
348
|
+
}
|
|
349
|
+
if (limit != null) {
|
|
350
|
+
_queryParams.limit = limit.toString();
|
|
351
|
+
}
|
|
352
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
353
|
+
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);
|
|
354
|
+
const _response = yield core.fetcher({
|
|
355
|
+
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, `private-messages/${core.url.encodePathParam(id)}/replies`),
|
|
356
|
+
method: "GET",
|
|
357
|
+
headers: _headers,
|
|
358
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
359
|
+
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,
|
|
360
|
+
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,
|
|
361
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
362
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
363
|
+
logging: this._options.logging,
|
|
364
|
+
});
|
|
365
|
+
if (_response.ok) {
|
|
366
|
+
return {
|
|
367
|
+
data: _response.body,
|
|
368
|
+
rawResponse: _response.rawResponse,
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
if (_response.error.reason === "status-code") {
|
|
372
|
+
switch (_response.error.statusCode) {
|
|
373
|
+
case 401:
|
|
374
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
375
|
+
case 404:
|
|
376
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
377
|
+
case 429:
|
|
378
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
379
|
+
case 500:
|
|
380
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
381
|
+
default:
|
|
382
|
+
throw new errors.ForumError({
|
|
383
|
+
statusCode: _response.error.statusCode,
|
|
384
|
+
body: _response.error.body,
|
|
385
|
+
rawResponse: _response.rawResponse,
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/private-messages/{id}/replies");
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* @param {Forum.PostPrivateMessagesIdRepliesRequest} request
|
|
394
|
+
* @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
395
|
+
*
|
|
396
|
+
* @throws {@link Forum.BadRequestError}
|
|
397
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
398
|
+
* @throws {@link Forum.NotFoundError}
|
|
399
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
400
|
+
* @throws {@link Forum.InternalServerError}
|
|
401
|
+
*
|
|
402
|
+
* @example
|
|
403
|
+
* await client.privateMessages.createAReplyInPrivateMessage({
|
|
404
|
+
* id: "id",
|
|
405
|
+
* recipientId: "recipientId",
|
|
406
|
+
* body: "body"
|
|
407
|
+
* })
|
|
408
|
+
*/
|
|
409
|
+
createAReplyInPrivateMessage(request, requestOptions) {
|
|
410
|
+
return core.HttpResponsePromise.fromPromise(this.__createAReplyInPrivateMessage(request, requestOptions));
|
|
411
|
+
}
|
|
412
|
+
__createAReplyInPrivateMessage(request, requestOptions) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
415
|
+
const { id } = request, _body = __rest(request, ["id"]);
|
|
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, `private-messages/${core.url.encodePathParam(id)}/replies`),
|
|
420
|
+
method: "POST",
|
|
421
|
+
headers: _headers,
|
|
422
|
+
contentType: "application/json",
|
|
423
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
424
|
+
requestType: "json",
|
|
425
|
+
body: _body,
|
|
426
|
+
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,
|
|
427
|
+
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,
|
|
428
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
429
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
430
|
+
logging: this._options.logging,
|
|
431
|
+
});
|
|
432
|
+
if (_response.ok) {
|
|
433
|
+
return {
|
|
434
|
+
data: _response.body,
|
|
435
|
+
rawResponse: _response.rawResponse,
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
if (_response.error.reason === "status-code") {
|
|
439
|
+
switch (_response.error.statusCode) {
|
|
440
|
+
case 400:
|
|
441
|
+
throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
|
|
442
|
+
case 401:
|
|
443
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
444
|
+
case 404:
|
|
445
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
446
|
+
case 429:
|
|
447
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
448
|
+
case 500:
|
|
449
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
450
|
+
default:
|
|
451
|
+
throw new errors.ForumError({
|
|
452
|
+
statusCode: _response.error.statusCode,
|
|
453
|
+
body: _response.error.body,
|
|
454
|
+
rawResponse: _response.rawResponse,
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/private-messages/{id}/replies");
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* @param {Forum.GetPrivateMessagesIdRepliesSubIdRequest} request
|
|
463
|
+
* @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
464
|
+
*
|
|
465
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
466
|
+
* @throws {@link Forum.NotFoundError}
|
|
467
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
468
|
+
* @throws {@link Forum.InternalServerError}
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* await client.privateMessages.getAReplyFromPrivateMessage({
|
|
472
|
+
* id: "id",
|
|
473
|
+
* subId: "subId"
|
|
474
|
+
* })
|
|
475
|
+
*/
|
|
476
|
+
getAReplyFromPrivateMessage(request, requestOptions) {
|
|
477
|
+
return core.HttpResponsePromise.fromPromise(this.__getAReplyFromPrivateMessage(request, requestOptions));
|
|
478
|
+
}
|
|
479
|
+
__getAReplyFromPrivateMessage(request, requestOptions) {
|
|
480
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
481
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
482
|
+
const { id, subId } = request;
|
|
483
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
484
|
+
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);
|
|
485
|
+
const _response = yield core.fetcher({
|
|
486
|
+
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, `private-messages/${core.url.encodePathParam(id)}/replies/${core.url.encodePathParam(subId)}`),
|
|
487
|
+
method: "GET",
|
|
488
|
+
headers: _headers,
|
|
489
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
490
|
+
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,
|
|
491
|
+
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,
|
|
492
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
493
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
494
|
+
logging: this._options.logging,
|
|
495
|
+
});
|
|
496
|
+
if (_response.ok) {
|
|
497
|
+
return {
|
|
498
|
+
data: _response.body,
|
|
499
|
+
rawResponse: _response.rawResponse,
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
if (_response.error.reason === "status-code") {
|
|
503
|
+
switch (_response.error.statusCode) {
|
|
504
|
+
case 401:
|
|
505
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
506
|
+
case 404:
|
|
507
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
508
|
+
case 429:
|
|
509
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
510
|
+
case 500:
|
|
511
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
512
|
+
default:
|
|
513
|
+
throw new errors.ForumError({
|
|
514
|
+
statusCode: _response.error.statusCode,
|
|
515
|
+
body: _response.error.body,
|
|
516
|
+
rawResponse: _response.rawResponse,
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/private-messages/{id}/replies/{subId}");
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* @param {Forum.DeletePrivateMessagesIdRepliesSubIdRequest} request
|
|
525
|
+
* @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
526
|
+
*
|
|
527
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
528
|
+
* @throws {@link Forum.NotFoundError}
|
|
529
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
530
|
+
* @throws {@link Forum.InternalServerError}
|
|
531
|
+
*
|
|
532
|
+
* @example
|
|
533
|
+
* await client.privateMessages.deleteAReplyFromPrivateMessage({
|
|
534
|
+
* id: "id",
|
|
535
|
+
* subId: "subId"
|
|
536
|
+
* })
|
|
537
|
+
*/
|
|
538
|
+
deleteAReplyFromPrivateMessage(request, requestOptions) {
|
|
539
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteAReplyFromPrivateMessage(request, requestOptions));
|
|
540
|
+
}
|
|
541
|
+
__deleteAReplyFromPrivateMessage(request, requestOptions) {
|
|
542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
543
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
544
|
+
const { id, subId } = request;
|
|
545
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
546
|
+
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);
|
|
547
|
+
const _response = yield core.fetcher({
|
|
548
|
+
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, `private-messages/${core.url.encodePathParam(id)}/replies/${core.url.encodePathParam(subId)}`),
|
|
549
|
+
method: "DELETE",
|
|
550
|
+
headers: _headers,
|
|
551
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
552
|
+
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,
|
|
553
|
+
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,
|
|
554
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
555
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
556
|
+
logging: this._options.logging,
|
|
557
|
+
});
|
|
558
|
+
if (_response.ok) {
|
|
559
|
+
return {
|
|
560
|
+
data: _response.body,
|
|
561
|
+
rawResponse: _response.rawResponse,
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
if (_response.error.reason === "status-code") {
|
|
565
|
+
switch (_response.error.statusCode) {
|
|
566
|
+
case 401:
|
|
567
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
568
|
+
case 404:
|
|
569
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
570
|
+
case 429:
|
|
571
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
572
|
+
case 500:
|
|
573
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
574
|
+
default:
|
|
575
|
+
throw new errors.ForumError({
|
|
576
|
+
statusCode: _response.error.statusCode,
|
|
577
|
+
body: _response.error.body,
|
|
578
|
+
rawResponse: _response.rawResponse,
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/private-messages/{id}/replies/{subId}");
|
|
583
|
+
});
|
|
584
|
+
}
|
|
313
585
|
}
|
|
314
586
|
exports.PrivateMessagesClient = PrivateMessagesClient;
|