@foru-ms/sdk 1.3.3 → 2.0.3
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/README.md +268 -623
- package/dist/cjs/BaseClient.d.ts +39 -0
- package/dist/cjs/BaseClient.js +62 -0
- package/dist/cjs/Client.d.ts +47 -0
- package/dist/cjs/Client.js +71 -0
- package/dist/cjs/api/errors/BadRequestError.d.ts +6 -0
- package/dist/cjs/api/errors/BadRequestError.js +54 -0
- package/dist/cjs/api/errors/InternalServerError.d.ts +6 -0
- package/dist/cjs/api/errors/InternalServerError.js +54 -0
- package/dist/cjs/api/errors/NotFoundError.d.ts +6 -0
- package/dist/cjs/api/errors/NotFoundError.js +54 -0
- package/dist/cjs/api/errors/PaymentRequiredError.d.ts +6 -0
- package/dist/cjs/api/errors/PaymentRequiredError.js +54 -0
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +6 -0
- package/dist/cjs/api/errors/TooManyRequestsError.js +54 -0
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +6 -0
- package/dist/cjs/api/errors/UnauthorizedError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +6 -0
- package/dist/cjs/api/errors/index.js +22 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/resources/auth/client/Client.d.ts +93 -0
- package/dist/cjs/api/resources/auth/client/Client.js +352 -0
- package/dist/cjs/api/resources/auth/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/auth/client/index.js +17 -0
- package/dist/cjs/api/resources/auth/client/requests/PostAuthForgotPasswordRequest.d.ts +10 -0
- package/dist/cjs/api/resources/auth/client/requests/PostAuthForgotPasswordRequest.js +3 -0
- package/dist/cjs/api/resources/auth/client/requests/PostAuthLoginRequest.d.ts +13 -0
- package/dist/cjs/api/resources/auth/client/requests/PostAuthLoginRequest.js +3 -0
- package/dist/cjs/api/resources/auth/client/requests/PostAuthRegisterRequest.d.ts +24 -0
- package/dist/cjs/api/resources/auth/client/requests/PostAuthRegisterRequest.js +3 -0
- package/dist/cjs/api/resources/auth/client/requests/PostAuthResetPasswordRequest.d.ts +16 -0
- package/dist/cjs/api/resources/auth/client/requests/PostAuthResetPasswordRequest.js +3 -0
- package/dist/cjs/api/resources/auth/client/requests/index.d.ts +4 -0
- package/dist/{response-types.js → cjs/api/resources/auth/client/requests/index.js} +2 -2
- package/dist/cjs/api/resources/auth/index.d.ts +2 -0
- package/dist/cjs/api/resources/auth/index.js +18 -0
- package/dist/cjs/api/resources/auth/types/GetAuthMeResponse.d.ts +4 -0
- package/dist/cjs/api/resources/auth/types/GetAuthMeResponse.js +3 -0
- package/dist/cjs/api/resources/auth/types/PostAuthForgotPasswordResponse.d.ts +4 -0
- package/dist/cjs/api/resources/auth/types/PostAuthForgotPasswordResponse.js +3 -0
- package/dist/cjs/api/resources/auth/types/PostAuthLoginResponse.d.ts +3 -0
- package/dist/cjs/api/resources/auth/types/PostAuthLoginResponse.js +3 -0
- package/dist/cjs/api/resources/auth/types/PostAuthRegisterResponse.d.ts +3 -0
- package/dist/cjs/api/resources/auth/types/PostAuthRegisterResponse.js +3 -0
- package/dist/cjs/api/resources/auth/types/PostAuthResetPasswordResponse.d.ts +3 -0
- package/dist/cjs/api/resources/auth/types/PostAuthResetPasswordResponse.js +3 -0
- package/dist/cjs/api/resources/auth/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/auth/types/index.js +21 -0
- package/dist/cjs/api/resources/index.d.ts +36 -0
- package/dist/cjs/api/resources/index.js +75 -0
- package/dist/cjs/api/resources/integrations/client/Client.d.ts +99 -0
- package/dist/cjs/api/resources/integrations/client/Client.js +391 -0
- package/dist/cjs/api/resources/integrations/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/integrations/client/index.js +17 -0
- package/dist/cjs/api/resources/integrations/client/requests/DeleteIntegrationsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/integrations/client/requests/DeleteIntegrationsIdRequest.js +3 -0
- package/dist/cjs/api/resources/integrations/client/requests/GetIntegrationsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/integrations/client/requests/GetIntegrationsIdRequest.js +3 -0
- package/dist/cjs/api/resources/integrations/client/requests/GetIntegrationsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/integrations/client/requests/GetIntegrationsRequest.js +3 -0
- package/dist/cjs/api/resources/integrations/client/requests/PatchIntegrationsIdRequest.d.ts +15 -0
- package/dist/cjs/api/resources/integrations/client/requests/PatchIntegrationsIdRequest.js +3 -0
- package/dist/cjs/api/resources/integrations/client/requests/PostIntegrationsRequest.d.ts +16 -0
- package/dist/cjs/api/resources/integrations/client/requests/PostIntegrationsRequest.js +3 -0
- package/dist/cjs/api/resources/integrations/client/requests/index.d.ts +5 -0
- package/dist/{types.js → cjs/api/resources/integrations/client/requests/index.js} +2 -2
- package/dist/cjs/api/resources/integrations/index.d.ts +2 -0
- package/dist/cjs/api/resources/integrations/index.js +18 -0
- package/dist/cjs/api/resources/integrations/types/DeleteIntegrationsIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/integrations/types/DeleteIntegrationsIdResponse.js +3 -0
- package/dist/cjs/api/resources/integrations/types/GetIntegrationsIdResponse.d.ts +30 -0
- package/dist/cjs/api/resources/integrations/types/GetIntegrationsIdResponse.js +19 -0
- package/dist/cjs/api/resources/integrations/types/GetIntegrationsResponse.d.ts +39 -0
- package/dist/cjs/api/resources/integrations/types/GetIntegrationsResponse.js +22 -0
- package/dist/cjs/api/resources/integrations/types/PatchIntegrationsIdResponse.d.ts +30 -0
- package/dist/cjs/api/resources/integrations/types/PatchIntegrationsIdResponse.js +19 -0
- package/dist/cjs/api/resources/integrations/types/PostIntegrationsResponse.d.ts +30 -0
- package/dist/cjs/api/resources/integrations/types/PostIntegrationsResponse.js +19 -0
- package/dist/cjs/api/resources/integrations/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/integrations/types/index.js +21 -0
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +97 -0
- package/dist/cjs/api/resources/notifications/client/Client.js +389 -0
- package/dist/cjs/api/resources/notifications/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/client/index.js +17 -0
- package/dist/cjs/api/resources/notifications/client/requests/DeleteNotificationsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/notifications/client/requests/DeleteNotificationsIdRequest.js +3 -0
- package/dist/cjs/api/resources/notifications/client/requests/GetNotificationsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/notifications/client/requests/GetNotificationsIdRequest.js +3 -0
- package/dist/cjs/api/resources/notifications/client/requests/GetNotificationsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/notifications/client/requests/GetNotificationsRequest.js +3 -0
- package/dist/cjs/api/resources/notifications/client/requests/PatchNotificationsIdRequest.d.ts +23 -0
- package/dist/cjs/api/resources/notifications/client/requests/PatchNotificationsIdRequest.js +14 -0
- package/dist/cjs/api/resources/notifications/client/requests/PostNotificationsRequest.d.ts +37 -0
- package/dist/cjs/api/resources/notifications/client/requests/PostNotificationsRequest.js +14 -0
- package/dist/cjs/api/resources/notifications/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/notifications/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/notifications/index.d.ts +2 -0
- package/dist/cjs/api/resources/notifications/index.js +18 -0
- package/dist/cjs/api/resources/notifications/types/DeleteNotificationsIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/notifications/types/DeleteNotificationsIdResponse.js +3 -0
- package/dist/cjs/api/resources/notifications/types/GetNotificationsIdResponse.d.ts +30 -0
- package/dist/cjs/api/resources/notifications/types/GetNotificationsIdResponse.js +3 -0
- package/dist/cjs/api/resources/notifications/types/GetNotificationsResponse.d.ts +39 -0
- package/dist/cjs/api/resources/notifications/types/GetNotificationsResponse.js +3 -0
- package/dist/cjs/api/resources/notifications/types/PatchNotificationsIdResponse.d.ts +30 -0
- package/dist/cjs/api/resources/notifications/types/PatchNotificationsIdResponse.js +3 -0
- package/dist/cjs/api/resources/notifications/types/PostNotificationsResponse.d.ts +30 -0
- package/dist/cjs/api/resources/notifications/types/PostNotificationsResponse.js +3 -0
- package/dist/cjs/api/resources/notifications/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/notifications/types/index.js +21 -0
- package/dist/cjs/api/resources/posts/client/Client.d.ts +233 -0
- package/dist/cjs/api/resources/posts/client/Client.js +889 -0
- package/dist/cjs/api/resources/posts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/posts/client/index.js +17 -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/DeletePostsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdRequest.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/GetPostsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsIdRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/PatchPostsIdRequest.d.ts +17 -0
- package/dist/cjs/api/resources/posts/client/requests/PatchPostsIdRequest.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/PostPostsRequest.d.ts +18 -0
- package/dist/cjs/api/resources/posts/client/requests/PostPostsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/index.d.ts +13 -0
- package/dist/cjs/api/resources/posts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/posts/index.d.ts +2 -0
- package/dist/cjs/api/resources/posts/index.js +18 -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/DeletePostsIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/posts/types/DeletePostsIdResponse.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 +23 -0
- package/dist/cjs/api/resources/posts/types/GetPostsIdResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/GetPostsResponse.d.ts +32 -0
- package/dist/cjs/api/resources/posts/types/GetPostsResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/PatchPostsIdResponse.d.ts +23 -0
- package/dist/cjs/api/resources/posts/types/PatchPostsIdResponse.js +3 -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 +23 -0
- package/dist/cjs/api/resources/posts/types/PostPostsResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/index.d.ts +13 -0
- package/dist/cjs/api/resources/posts/types/index.js +29 -0
- package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +148 -0
- package/dist/cjs/api/resources/privateMessages/client/Client.js +586 -0
- package/dist/cjs/api/resources/privateMessages/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/privateMessages/client/index.js +17 -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/DeletePrivateMessagesIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRequest.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/GetPrivateMessagesIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRequest.js +3 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesRequest.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/PostPrivateMessagesRequest.d.ts +21 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/PostPrivateMessagesRequest.js +3 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/index.d.ts +8 -0
- package/dist/cjs/api/resources/privateMessages/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/privateMessages/index.d.ts +2 -0
- package/dist/cjs/api/resources/privateMessages/index.js +18 -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/DeletePrivateMessagesIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/privateMessages/types/DeletePrivateMessagesIdResponse.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 +26 -0
- package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdResponse.js +3 -0
- package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesResponse.d.ts +35 -0
- package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesResponse.js +3 -0
- 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 +26 -0
- package/dist/cjs/api/resources/privateMessages/types/PostPrivateMessagesResponse.js +3 -0
- package/dist/cjs/api/resources/privateMessages/types/index.d.ts +8 -0
- package/dist/cjs/api/resources/privateMessages/types/index.js +24 -0
- package/dist/cjs/api/resources/reports/client/Client.d.ts +78 -0
- package/dist/cjs/api/resources/reports/client/Client.js +310 -0
- package/dist/cjs/api/resources/reports/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/reports/client/index.js +17 -0
- package/dist/cjs/api/resources/reports/client/requests/DeleteReportsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/reports/client/requests/DeleteReportsIdRequest.js +3 -0
- package/dist/cjs/api/resources/reports/client/requests/GetReportsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/reports/client/requests/GetReportsIdRequest.js +3 -0
- package/dist/cjs/api/resources/reports/client/requests/GetReportsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/reports/client/requests/GetReportsRequest.js +3 -0
- package/dist/cjs/api/resources/reports/client/requests/PostReportsRequest.d.ts +22 -0
- package/dist/cjs/api/resources/reports/client/requests/PostReportsRequest.js +3 -0
- package/dist/cjs/api/resources/reports/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/reports/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/reports/index.d.ts +2 -0
- package/dist/cjs/api/resources/reports/index.js +18 -0
- package/dist/cjs/api/resources/reports/types/DeleteReportsIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/reports/types/DeleteReportsIdResponse.js +3 -0
- package/dist/cjs/api/resources/reports/types/GetReportsIdResponse.d.ts +28 -0
- package/dist/cjs/api/resources/reports/types/GetReportsIdResponse.js +3 -0
- package/dist/cjs/api/resources/reports/types/GetReportsResponse.d.ts +37 -0
- package/dist/cjs/api/resources/reports/types/GetReportsResponse.js +3 -0
- package/dist/cjs/api/resources/reports/types/PostReportsResponse.d.ts +28 -0
- package/dist/cjs/api/resources/reports/types/PostReportsResponse.js +3 -0
- package/dist/cjs/api/resources/reports/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/reports/types/index.js +20 -0
- package/dist/cjs/api/resources/roles/client/Client.d.ts +96 -0
- package/dist/cjs/api/resources/roles/client/Client.js +388 -0
- package/dist/cjs/api/resources/roles/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/roles/client/index.js +17 -0
- package/dist/cjs/api/resources/roles/client/requests/DeleteRolesIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/roles/client/requests/DeleteRolesIdRequest.js +3 -0
- package/dist/cjs/api/resources/roles/client/requests/GetRolesIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/roles/client/requests/GetRolesIdRequest.js +3 -0
- package/dist/cjs/api/resources/roles/client/requests/GetRolesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/roles/client/requests/GetRolesRequest.js +3 -0
- package/dist/cjs/api/resources/roles/client/requests/PatchRolesIdRequest.d.ts +19 -0
- package/dist/cjs/api/resources/roles/client/requests/PatchRolesIdRequest.js +3 -0
- package/dist/cjs/api/resources/roles/client/requests/PostRolesRequest.d.ts +18 -0
- package/dist/cjs/api/resources/roles/client/requests/PostRolesRequest.js +3 -0
- package/dist/cjs/api/resources/roles/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/roles/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/roles/index.d.ts +2 -0
- package/dist/cjs/api/resources/roles/index.js +18 -0
- package/dist/cjs/api/resources/roles/types/DeleteRolesIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/roles/types/DeleteRolesIdResponse.js +3 -0
- package/dist/cjs/api/resources/roles/types/GetRolesIdResponse.d.ts +22 -0
- package/dist/cjs/api/resources/roles/types/GetRolesIdResponse.js +3 -0
- package/dist/cjs/api/resources/roles/types/GetRolesResponse.d.ts +31 -0
- package/dist/cjs/api/resources/roles/types/GetRolesResponse.js +3 -0
- package/dist/cjs/api/resources/roles/types/PatchRolesIdResponse.d.ts +22 -0
- package/dist/cjs/api/resources/roles/types/PatchRolesIdResponse.js +3 -0
- package/dist/cjs/api/resources/roles/types/PostRolesResponse.d.ts +22 -0
- package/dist/cjs/api/resources/roles/types/PostRolesResponse.js +3 -0
- package/dist/cjs/api/resources/roles/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/roles/types/index.js +21 -0
- package/dist/cjs/api/resources/ssOs/client/Client.d.ts +102 -0
- package/dist/cjs/api/resources/ssOs/client/Client.js +394 -0
- package/dist/cjs/api/resources/ssOs/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/ssOs/client/index.js +17 -0
- package/dist/cjs/api/resources/ssOs/client/requests/DeleteSsoIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/ssOs/client/requests/DeleteSsoIdRequest.js +3 -0
- package/dist/cjs/api/resources/ssOs/client/requests/GetSsoIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/ssOs/client/requests/GetSsoIdRequest.js +3 -0
- package/dist/cjs/api/resources/ssOs/client/requests/GetSsoRequest.d.ts +9 -0
- package/dist/cjs/api/resources/ssOs/client/requests/GetSsoRequest.js +3 -0
- package/dist/cjs/api/resources/ssOs/client/requests/PatchSsoIdRequest.d.ts +21 -0
- package/dist/cjs/api/resources/ssOs/client/requests/PatchSsoIdRequest.js +3 -0
- package/dist/cjs/api/resources/ssOs/client/requests/PostSsoRequest.d.ts +22 -0
- package/dist/cjs/api/resources/ssOs/client/requests/PostSsoRequest.js +3 -0
- package/dist/cjs/api/resources/ssOs/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/ssOs/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/ssOs/index.d.ts +2 -0
- package/dist/cjs/api/resources/ssOs/index.js +18 -0
- package/dist/cjs/api/resources/ssOs/types/DeleteSsoIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/ssOs/types/DeleteSsoIdResponse.js +3 -0
- package/dist/cjs/api/resources/ssOs/types/GetSsoIdResponse.d.ts +27 -0
- package/dist/cjs/api/resources/ssOs/types/GetSsoIdResponse.js +16 -0
- package/dist/cjs/api/resources/ssOs/types/GetSsoResponse.d.ts +36 -0
- package/dist/cjs/api/resources/ssOs/types/GetSsoResponse.js +19 -0
- package/dist/cjs/api/resources/ssOs/types/PatchSsoIdResponse.d.ts +27 -0
- package/dist/cjs/api/resources/ssOs/types/PatchSsoIdResponse.js +16 -0
- package/dist/cjs/api/resources/ssOs/types/PostSsoResponse.d.ts +27 -0
- package/dist/cjs/api/resources/ssOs/types/PostSsoResponse.js +16 -0
- package/dist/cjs/api/resources/ssOs/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/ssOs/types/index.js +21 -0
- package/dist/cjs/api/resources/tags/client/Client.d.ts +146 -0
- package/dist/cjs/api/resources/tags/client/Client.js +577 -0
- package/dist/cjs/api/resources/tags/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/tags/client/index.js +17 -0
- package/dist/cjs/api/resources/tags/client/requests/DeleteTagsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tags/client/requests/DeleteTagsIdRequest.js +3 -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/GetTagsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tags/client/requests/GetTagsIdRequest.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/GetTagsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tags/client/requests/GetTagsRequest.js +3 -0
- package/dist/cjs/api/resources/tags/client/requests/PatchTagsIdRequest.d.ts +19 -0
- package/dist/cjs/api/resources/tags/client/requests/PatchTagsIdRequest.js +3 -0
- package/dist/cjs/api/resources/tags/client/requests/PostTagsRequest.d.ts +18 -0
- package/dist/cjs/api/resources/tags/client/requests/PostTagsRequest.js +3 -0
- package/dist/cjs/api/resources/tags/client/requests/index.d.ts +8 -0
- package/dist/cjs/api/resources/tags/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tags/index.d.ts +2 -0
- package/dist/cjs/api/resources/tags/index.js +18 -0
- package/dist/cjs/api/resources/tags/types/DeleteTagsIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/tags/types/DeleteTagsIdResponse.js +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 +22 -0
- package/dist/cjs/api/resources/tags/types/GetTagsIdResponse.js +3 -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 +31 -0
- package/dist/cjs/api/resources/tags/types/GetTagsResponse.js +3 -0
- package/dist/cjs/api/resources/tags/types/PatchTagsIdResponse.d.ts +22 -0
- package/dist/cjs/api/resources/tags/types/PatchTagsIdResponse.js +3 -0
- package/dist/cjs/api/resources/tags/types/PostTagsResponse.d.ts +22 -0
- package/dist/cjs/api/resources/tags/types/PostTagsResponse.js +3 -0
- package/dist/cjs/api/resources/tags/types/index.d.ts +8 -0
- package/dist/cjs/api/resources/tags/types/index.js +24 -0
- package/dist/cjs/api/resources/threads/client/Client.d.ts +337 -0
- package/dist/cjs/api/resources/threads/client/Client.js +1274 -0
- package/dist/cjs/api/resources/threads/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/threads/client/index.js +17 -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/DeleteThreadsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdRequest.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/GetThreadsIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdRequest.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/GetThreadsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadsRequest.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/PatchThreadsIdRequest.d.ts +21 -0
- package/dist/cjs/api/resources/threads/client/requests/PatchThreadsIdRequest.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/PostThreadsRequest.d.ts +40 -0
- package/dist/cjs/api/resources/threads/client/requests/PostThreadsRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +19 -0
- package/dist/cjs/api/resources/threads/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/threads/index.d.ts +2 -0
- package/dist/cjs/api/resources/threads/index.js +18 -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/DeleteThreadsIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/threads/types/DeleteThreadsIdResponse.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 +55 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsIdResponse.js +3 -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 +64 -0
- package/dist/cjs/api/resources/threads/types/GetThreadsResponse.js +3 -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 +55 -0
- package/dist/cjs/api/resources/threads/types/PatchThreadsIdResponse.js +3 -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 +55 -0
- package/dist/cjs/api/resources/threads/types/PostThreadsResponse.js +3 -0
- package/dist/cjs/api/resources/threads/types/index.d.ts +19 -0
- package/dist/cjs/api/resources/threads/types/index.js +35 -0
- package/dist/cjs/api/resources/users/client/Client.d.ts +179 -0
- package/dist/cjs/api/resources/users/client/Client.js +703 -0
- package/dist/cjs/api/resources/users/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/users/client/index.js +17 -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/DeleteUsersIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdRequest.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/GetUsersIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersIdRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersRequest.d.ts +9 -0
- package/dist/cjs/api/resources/users/client/requests/GetUsersRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/PatchUsersIdRequest.d.ts +27 -0
- package/dist/cjs/api/resources/users/client/requests/PatchUsersIdRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/index.d.ts +10 -0
- package/dist/cjs/api/resources/users/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/users/index.d.ts +2 -0
- package/dist/cjs/api/resources/users/index.js +18 -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/DeleteUsersIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/users/types/DeleteUsersIdResponse.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 +43 -0
- package/dist/cjs/api/resources/users/types/GetUsersIdResponse.js +3 -0
- package/dist/cjs/api/resources/users/types/GetUsersResponse.d.ts +52 -0
- package/dist/cjs/api/resources/users/types/GetUsersResponse.js +3 -0
- package/dist/cjs/api/resources/users/types/PatchUsersIdResponse.d.ts +43 -0
- package/dist/cjs/api/resources/users/types/PatchUsersIdResponse.js +3 -0
- package/dist/cjs/api/resources/users/types/index.d.ts +10 -0
- package/dist/cjs/api/resources/users/types/index.js +26 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +130 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +504 -0
- package/dist/cjs/api/resources/webhooks/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/client/index.js +17 -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/DeleteWebhooksIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhooksIdRequest.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/GetWebhooksIdRequest.d.ts +9 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksRequest.d.ts +9 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/PostWebhooksRequest.d.ts +18 -0
- package/dist/cjs/api/resources/webhooks/client/requests/PostWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +7 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/webhooks/index.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/index.js +18 -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/DeleteWebhooksIdResponse.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/types/DeleteWebhooksIdResponse.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 +24 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponse.d.ts +33 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/PostWebhooksResponse.d.ts +24 -0
- package/dist/cjs/api/resources/webhooks/types/PostWebhooksResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/index.d.ts +7 -0
- package/dist/cjs/api/resources/webhooks/types/index.js +23 -0
- package/dist/cjs/api/types/AuthResponse.d.ts +1 -0
- package/dist/cjs/api/types/AuthResponse.js +3 -0
- package/dist/cjs/api/types/ErrorResponse.d.ts +10 -0
- package/dist/cjs/api/types/ErrorResponse.js +3 -0
- package/dist/cjs/api/types/IntegrationCreate.d.ts +7 -0
- package/dist/cjs/api/types/IntegrationCreate.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/IntegrationUpdate.d.ts +8 -0
- package/dist/cjs/api/types/IntegrationUpdate.js +3 -0
- package/dist/cjs/api/types/NotificationCreate.d.ts +30 -0
- package/dist/cjs/api/types/NotificationCreate.js +14 -0
- package/dist/cjs/api/types/NotificationList.d.ts +20 -0
- package/dist/cjs/api/types/NotificationList.js +14 -0
- package/dist/cjs/api/types/NotificationResponse.d.ts +25 -0
- package/dist/cjs/api/types/NotificationResponse.js +3 -0
- package/dist/cjs/api/types/NotificationUpdate.d.ts +16 -0
- package/dist/cjs/api/types/NotificationUpdate.js +14 -0
- package/dist/cjs/api/types/PostCreate.d.ts +11 -0
- package/dist/cjs/api/types/PostCreate.js +3 -0
- package/dist/cjs/api/types/PostList.d.ts +31 -0
- package/dist/cjs/api/types/PostList.js +20 -0
- package/dist/cjs/api/types/PostResponse.d.ts +18 -0
- package/dist/cjs/api/types/PostResponse.js +3 -0
- package/dist/cjs/api/types/PostUpdate.d.ts +10 -0
- package/dist/cjs/api/types/PostUpdate.js +3 -0
- package/dist/cjs/api/types/PrivateMessageCreate.d.ts +14 -0
- package/dist/cjs/api/types/PrivateMessageCreate.js +3 -0
- package/dist/cjs/api/types/PrivateMessageList.d.ts +8 -0
- package/dist/cjs/api/types/PrivateMessageList.js +3 -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/ReportCreate.d.ts +16 -0
- package/dist/cjs/api/types/ReportCreate.js +3 -0
- package/dist/cjs/api/types/ReportList.d.ts +12 -0
- package/dist/cjs/api/types/ReportList.js +3 -0
- package/dist/cjs/api/types/ReportResponse.d.ts +23 -0
- package/dist/cjs/api/types/ReportResponse.js +3 -0
- package/dist/cjs/api/types/RoleCreate.d.ts +12 -0
- package/dist/cjs/api/types/RoleCreate.js +3 -0
- package/dist/cjs/api/types/RoleResponse.d.ts +17 -0
- package/dist/cjs/api/types/RoleResponse.js +3 -0
- package/dist/cjs/api/types/RoleUpdate.d.ts +12 -0
- package/dist/cjs/api/types/RoleUpdate.js +3 -0
- package/dist/cjs/api/types/SsoCreate.d.ts +13 -0
- package/dist/cjs/api/types/SsoCreate.js +3 -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/SsoUpdate.d.ts +17 -0
- package/dist/cjs/api/types/SsoUpdate.js +3 -0
- package/dist/cjs/api/types/TagCreate.d.ts +12 -0
- package/dist/cjs/api/types/TagCreate.js +3 -0
- package/dist/cjs/api/types/TagList.d.ts +8 -0
- package/dist/cjs/api/types/TagList.js +3 -0
- package/dist/cjs/api/types/TagResponse.d.ts +17 -0
- package/dist/cjs/api/types/TagResponse.js +3 -0
- package/dist/cjs/api/types/TagUpdate.d.ts +12 -0
- package/dist/cjs/api/types/TagUpdate.js +3 -0
- package/dist/cjs/api/types/ThreadCreate.d.ts +33 -0
- package/dist/cjs/api/types/ThreadCreate.js +3 -0
- package/dist/cjs/api/types/ThreadList.d.ts +23 -0
- package/dist/cjs/api/types/ThreadList.js +13 -0
- package/dist/cjs/api/types/ThreadResponse.d.ts +50 -0
- package/dist/cjs/api/types/ThreadResponse.js +3 -0
- package/dist/cjs/api/types/ThreadUpdate.d.ts +14 -0
- package/dist/cjs/api/types/ThreadUpdate.js +3 -0
- package/dist/cjs/api/types/UserList.d.ts +18 -0
- package/dist/cjs/api/types/UserList.js +12 -0
- package/dist/cjs/api/types/UserResponse.d.ts +38 -0
- package/dist/cjs/api/types/UserResponse.js +3 -0
- package/dist/cjs/api/types/UserUpdate.d.ts +20 -0
- package/dist/cjs/api/types/UserUpdate.js +3 -0
- package/dist/cjs/api/types/WebhookCreate.d.ts +10 -0
- package/dist/cjs/api/types/WebhookCreate.js +3 -0
- package/dist/cjs/api/types/WebhookList.d.ts +6 -0
- package/dist/cjs/api/types/WebhookList.js +3 -0
- 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 +39 -0
- package/dist/cjs/api/types/index.js +55 -0
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +16 -0
- package/dist/cjs/auth/HeaderAuthProvider.js +71 -0
- package/dist/cjs/auth/index.d.ts +1 -0
- package/dist/cjs/auth/index.js +5 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
- package/dist/cjs/core/auth/AuthProvider.js +2 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/dist/cjs/core/auth/BasicAuth.js +27 -0
- package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
- package/dist/cjs/core/auth/BearerToken.js +16 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/core/auth/index.d.ts +5 -0
- package/dist/cjs/core/auth/index.js +9 -0
- package/dist/cjs/core/base64.d.ts +2 -0
- package/dist/cjs/core/base64.js +26 -0
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/APIResponse.js +2 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +19 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +49 -0
- package/dist/cjs/core/fetcher/Fetcher.js +316 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/dist/cjs/core/fetcher/Supplier.js +22 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +45 -0
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
- package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
- package/dist/cjs/core/fetcher/getHeader.js +11 -0
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +27 -0
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +69 -0
- package/dist/cjs/core/fetcher/index.d.ts +11 -0
- package/dist/cjs/core/fetcher/index.js +17 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/cjs/core/fetcher/makeRequest.js +40 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +67 -0
- package/dist/cjs/core/fetcher/signals.d.ts +5 -0
- package/dist/cjs/core/fetcher/signals.js +24 -0
- package/dist/cjs/core/headers.d.ts +2 -0
- package/dist/cjs/core/headers.js +31 -0
- package/dist/cjs/core/index.d.ts +6 -0
- package/dist/cjs/core/index.js +45 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +103 -0
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +3 -0
- package/dist/cjs/core/url/index.js +9 -0
- package/dist/cjs/core/url/join.d.ts +1 -0
- package/dist/cjs/core/url/join.js +68 -0
- package/dist/cjs/core/url/qs.d.ts +6 -0
- package/dist/cjs/core/url/qs.js +64 -0
- package/dist/cjs/environments.d.ts +4 -0
- package/dist/cjs/environments.js +7 -0
- package/dist/cjs/errors/ForumError.d.ts +12 -0
- package/dist/cjs/errors/ForumError.js +32 -0
- package/dist/cjs/errors/ForumTimeoutError.d.ts +3 -0
- package/dist/cjs/errors/ForumTimeoutError.js +15 -0
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.js +48 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/BaseClient.d.mts +39 -0
- package/dist/esm/BaseClient.mjs +25 -0
- package/dist/esm/Client.d.mts +47 -0
- package/dist/esm/Client.mjs +67 -0
- package/dist/esm/api/errors/BadRequestError.d.mts +6 -0
- package/dist/esm/api/errors/BadRequestError.mjs +17 -0
- package/dist/esm/api/errors/InternalServerError.d.mts +6 -0
- package/dist/esm/api/errors/InternalServerError.mjs +17 -0
- package/dist/esm/api/errors/NotFoundError.d.mts +6 -0
- package/dist/esm/api/errors/NotFoundError.mjs +17 -0
- package/dist/esm/api/errors/PaymentRequiredError.d.mts +6 -0
- package/dist/esm/api/errors/PaymentRequiredError.mjs +17 -0
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +6 -0
- package/dist/esm/api/errors/TooManyRequestsError.mjs +17 -0
- package/dist/esm/api/errors/UnauthorizedError.d.mts +6 -0
- package/dist/esm/api/errors/UnauthorizedError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +6 -0
- package/dist/esm/api/errors/index.mjs +6 -0
- package/dist/esm/api/index.d.mts +3 -0
- package/dist/esm/api/index.mjs +3 -0
- package/dist/esm/api/resources/auth/client/Client.d.mts +93 -0
- package/dist/esm/api/resources/auth/client/Client.mjs +315 -0
- package/dist/esm/api/resources/auth/client/index.d.mts +1 -0
- package/dist/esm/api/resources/auth/client/index.mjs +1 -0
- package/dist/esm/api/resources/auth/client/requests/PostAuthForgotPasswordRequest.d.mts +10 -0
- package/dist/esm/api/resources/auth/client/requests/PostAuthForgotPasswordRequest.mjs +2 -0
- package/dist/esm/api/resources/auth/client/requests/PostAuthLoginRequest.d.mts +13 -0
- package/dist/esm/api/resources/auth/client/requests/PostAuthLoginRequest.mjs +2 -0
- package/dist/esm/api/resources/auth/client/requests/PostAuthRegisterRequest.d.mts +24 -0
- package/dist/esm/api/resources/auth/client/requests/PostAuthRegisterRequest.mjs +2 -0
- package/dist/esm/api/resources/auth/client/requests/PostAuthResetPasswordRequest.d.mts +16 -0
- package/dist/esm/api/resources/auth/client/requests/PostAuthResetPasswordRequest.mjs +2 -0
- package/dist/esm/api/resources/auth/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/auth/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/auth/index.d.mts +2 -0
- package/dist/esm/api/resources/auth/index.mjs +2 -0
- package/dist/esm/api/resources/auth/types/GetAuthMeResponse.d.mts +4 -0
- package/dist/esm/api/resources/auth/types/GetAuthMeResponse.mjs +2 -0
- package/dist/esm/api/resources/auth/types/PostAuthForgotPasswordResponse.d.mts +4 -0
- package/dist/esm/api/resources/auth/types/PostAuthForgotPasswordResponse.mjs +2 -0
- package/dist/esm/api/resources/auth/types/PostAuthLoginResponse.d.mts +3 -0
- package/dist/esm/api/resources/auth/types/PostAuthLoginResponse.mjs +2 -0
- package/dist/esm/api/resources/auth/types/PostAuthRegisterResponse.d.mts +3 -0
- package/dist/esm/api/resources/auth/types/PostAuthRegisterResponse.mjs +2 -0
- package/dist/esm/api/resources/auth/types/PostAuthResetPasswordResponse.d.mts +3 -0
- package/dist/esm/api/resources/auth/types/PostAuthResetPasswordResponse.mjs +2 -0
- package/dist/esm/api/resources/auth/types/index.d.mts +5 -0
- package/dist/esm/api/resources/auth/types/index.mjs +5 -0
- package/dist/esm/api/resources/index.d.mts +36 -0
- package/dist/esm/api/resources/index.mjs +36 -0
- package/dist/esm/api/resources/integrations/client/Client.d.mts +99 -0
- package/dist/esm/api/resources/integrations/client/Client.mjs +354 -0
- package/dist/esm/api/resources/integrations/client/index.d.mts +1 -0
- package/dist/esm/api/resources/integrations/client/index.mjs +1 -0
- package/dist/esm/api/resources/integrations/client/requests/DeleteIntegrationsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/integrations/client/requests/DeleteIntegrationsIdRequest.mjs +2 -0
- package/dist/esm/api/resources/integrations/client/requests/GetIntegrationsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/integrations/client/requests/GetIntegrationsIdRequest.mjs +2 -0
- package/dist/esm/api/resources/integrations/client/requests/GetIntegrationsRequest.d.mts +9 -0
- package/dist/esm/api/resources/integrations/client/requests/GetIntegrationsRequest.mjs +2 -0
- package/dist/esm/api/resources/integrations/client/requests/PatchIntegrationsIdRequest.d.mts +15 -0
- package/dist/esm/api/resources/integrations/client/requests/PatchIntegrationsIdRequest.mjs +2 -0
- package/dist/esm/api/resources/integrations/client/requests/PostIntegrationsRequest.d.mts +16 -0
- package/dist/esm/api/resources/integrations/client/requests/PostIntegrationsRequest.mjs +2 -0
- package/dist/esm/api/resources/integrations/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/integrations/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/integrations/index.d.mts +2 -0
- package/dist/esm/api/resources/integrations/index.mjs +2 -0
- package/dist/esm/api/resources/integrations/types/DeleteIntegrationsIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/integrations/types/DeleteIntegrationsIdResponse.mjs +2 -0
- package/dist/esm/api/resources/integrations/types/GetIntegrationsIdResponse.d.mts +30 -0
- package/dist/esm/api/resources/integrations/types/GetIntegrationsIdResponse.mjs +16 -0
- package/dist/esm/api/resources/integrations/types/GetIntegrationsResponse.d.mts +39 -0
- package/dist/esm/api/resources/integrations/types/GetIntegrationsResponse.mjs +19 -0
- package/dist/esm/api/resources/integrations/types/PatchIntegrationsIdResponse.d.mts +30 -0
- package/dist/esm/api/resources/integrations/types/PatchIntegrationsIdResponse.mjs +16 -0
- package/dist/esm/api/resources/integrations/types/PostIntegrationsResponse.d.mts +30 -0
- package/dist/esm/api/resources/integrations/types/PostIntegrationsResponse.mjs +16 -0
- package/dist/esm/api/resources/integrations/types/index.d.mts +5 -0
- package/dist/esm/api/resources/integrations/types/index.mjs +5 -0
- package/dist/esm/api/resources/notifications/client/Client.d.mts +97 -0
- package/dist/esm/api/resources/notifications/client/Client.mjs +352 -0
- package/dist/esm/api/resources/notifications/client/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/client/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/client/requests/DeleteNotificationsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/notifications/client/requests/DeleteNotificationsIdRequest.mjs +2 -0
- package/dist/esm/api/resources/notifications/client/requests/GetNotificationsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/notifications/client/requests/GetNotificationsIdRequest.mjs +2 -0
- package/dist/esm/api/resources/notifications/client/requests/GetNotificationsRequest.d.mts +9 -0
- package/dist/esm/api/resources/notifications/client/requests/GetNotificationsRequest.mjs +2 -0
- package/dist/esm/api/resources/notifications/client/requests/PatchNotificationsIdRequest.d.mts +23 -0
- package/dist/esm/api/resources/notifications/client/requests/PatchNotificationsIdRequest.mjs +11 -0
- package/dist/esm/api/resources/notifications/client/requests/PostNotificationsRequest.d.mts +37 -0
- package/dist/esm/api/resources/notifications/client/requests/PostNotificationsRequest.mjs +11 -0
- package/dist/esm/api/resources/notifications/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/notifications/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/index.d.mts +2 -0
- package/dist/esm/api/resources/notifications/index.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/DeleteNotificationsIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/notifications/types/DeleteNotificationsIdResponse.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/GetNotificationsIdResponse.d.mts +30 -0
- package/dist/esm/api/resources/notifications/types/GetNotificationsIdResponse.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/GetNotificationsResponse.d.mts +39 -0
- package/dist/esm/api/resources/notifications/types/GetNotificationsResponse.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/PatchNotificationsIdResponse.d.mts +30 -0
- package/dist/esm/api/resources/notifications/types/PatchNotificationsIdResponse.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/PostNotificationsResponse.d.mts +30 -0
- package/dist/esm/api/resources/notifications/types/PostNotificationsResponse.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/index.d.mts +5 -0
- package/dist/esm/api/resources/notifications/types/index.mjs +5 -0
- package/dist/esm/api/resources/posts/client/Client.d.mts +233 -0
- package/dist/esm/api/resources/posts/client/Client.mjs +852 -0
- package/dist/esm/api/resources/posts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/posts/client/index.mjs +1 -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/DeletePostsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/posts/client/requests/DeletePostsIdRequest.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/GetPostsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsIdRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsRequest.d.mts +9 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/PatchPostsIdRequest.d.mts +17 -0
- package/dist/esm/api/resources/posts/client/requests/PatchPostsIdRequest.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/PostPostsRequest.d.mts +18 -0
- package/dist/esm/api/resources/posts/client/requests/PostPostsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/index.d.mts +13 -0
- package/dist/esm/api/resources/posts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/posts/index.d.mts +2 -0
- package/dist/esm/api/resources/posts/index.mjs +2 -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/DeletePostsIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/posts/types/DeletePostsIdResponse.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 +23 -0
- package/dist/esm/api/resources/posts/types/GetPostsIdResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/GetPostsResponse.d.mts +32 -0
- package/dist/esm/api/resources/posts/types/GetPostsResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/PatchPostsIdResponse.d.mts +23 -0
- package/dist/esm/api/resources/posts/types/PatchPostsIdResponse.mjs +2 -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 +23 -0
- package/dist/esm/api/resources/posts/types/PostPostsResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/index.d.mts +13 -0
- package/dist/esm/api/resources/posts/types/index.mjs +13 -0
- package/dist/esm/api/resources/privateMessages/client/Client.d.mts +148 -0
- package/dist/esm/api/resources/privateMessages/client/Client.mjs +549 -0
- package/dist/esm/api/resources/privateMessages/client/index.d.mts +1 -0
- package/dist/esm/api/resources/privateMessages/client/index.mjs +1 -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/DeletePrivateMessagesIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRequest.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/GetPrivateMessagesIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRequest.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesRequest.d.mts +9 -0
- package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesRequest.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/PostPrivateMessagesRequest.d.mts +21 -0
- package/dist/esm/api/resources/privateMessages/client/requests/PostPrivateMessagesRequest.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/client/requests/index.d.mts +8 -0
- package/dist/esm/api/resources/privateMessages/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/privateMessages/index.d.mts +2 -0
- package/dist/esm/api/resources/privateMessages/index.mjs +2 -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/DeletePrivateMessagesIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/privateMessages/types/DeletePrivateMessagesIdResponse.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 +26 -0
- package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdResponse.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesResponse.d.mts +35 -0
- package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesResponse.mjs +2 -0
- 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 +26 -0
- package/dist/esm/api/resources/privateMessages/types/PostPrivateMessagesResponse.mjs +2 -0
- package/dist/esm/api/resources/privateMessages/types/index.d.mts +8 -0
- package/dist/esm/api/resources/privateMessages/types/index.mjs +8 -0
- package/dist/esm/api/resources/reports/client/Client.d.mts +78 -0
- package/dist/esm/api/resources/reports/client/Client.mjs +273 -0
- package/dist/esm/api/resources/reports/client/index.d.mts +1 -0
- package/dist/esm/api/resources/reports/client/index.mjs +1 -0
- package/dist/esm/api/resources/reports/client/requests/DeleteReportsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/reports/client/requests/DeleteReportsIdRequest.mjs +2 -0
- package/dist/esm/api/resources/reports/client/requests/GetReportsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/reports/client/requests/GetReportsIdRequest.mjs +2 -0
- package/dist/esm/api/resources/reports/client/requests/GetReportsRequest.d.mts +9 -0
- package/dist/esm/api/resources/reports/client/requests/GetReportsRequest.mjs +2 -0
- package/dist/esm/api/resources/reports/client/requests/PostReportsRequest.d.mts +22 -0
- package/dist/esm/api/resources/reports/client/requests/PostReportsRequest.mjs +2 -0
- package/dist/esm/api/resources/reports/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/reports/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/reports/index.d.mts +2 -0
- package/dist/esm/api/resources/reports/index.mjs +2 -0
- package/dist/esm/api/resources/reports/types/DeleteReportsIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/reports/types/DeleteReportsIdResponse.mjs +2 -0
- package/dist/esm/api/resources/reports/types/GetReportsIdResponse.d.mts +28 -0
- package/dist/esm/api/resources/reports/types/GetReportsIdResponse.mjs +2 -0
- package/dist/esm/api/resources/reports/types/GetReportsResponse.d.mts +37 -0
- package/dist/esm/api/resources/reports/types/GetReportsResponse.mjs +2 -0
- package/dist/esm/api/resources/reports/types/PostReportsResponse.d.mts +28 -0
- package/dist/esm/api/resources/reports/types/PostReportsResponse.mjs +2 -0
- package/dist/esm/api/resources/reports/types/index.d.mts +4 -0
- package/dist/esm/api/resources/reports/types/index.mjs +4 -0
- package/dist/esm/api/resources/roles/client/Client.d.mts +96 -0
- package/dist/esm/api/resources/roles/client/Client.mjs +351 -0
- package/dist/esm/api/resources/roles/client/index.d.mts +1 -0
- package/dist/esm/api/resources/roles/client/index.mjs +1 -0
- package/dist/esm/api/resources/roles/client/requests/DeleteRolesIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/roles/client/requests/DeleteRolesIdRequest.mjs +2 -0
- package/dist/esm/api/resources/roles/client/requests/GetRolesIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/roles/client/requests/GetRolesIdRequest.mjs +2 -0
- package/dist/esm/api/resources/roles/client/requests/GetRolesRequest.d.mts +9 -0
- package/dist/esm/api/resources/roles/client/requests/GetRolesRequest.mjs +2 -0
- package/dist/esm/api/resources/roles/client/requests/PatchRolesIdRequest.d.mts +19 -0
- package/dist/esm/api/resources/roles/client/requests/PatchRolesIdRequest.mjs +2 -0
- package/dist/esm/api/resources/roles/client/requests/PostRolesRequest.d.mts +18 -0
- package/dist/esm/api/resources/roles/client/requests/PostRolesRequest.mjs +2 -0
- package/dist/esm/api/resources/roles/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/roles/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/roles/index.d.mts +2 -0
- package/dist/esm/api/resources/roles/index.mjs +2 -0
- package/dist/esm/api/resources/roles/types/DeleteRolesIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/roles/types/DeleteRolesIdResponse.mjs +2 -0
- package/dist/esm/api/resources/roles/types/GetRolesIdResponse.d.mts +22 -0
- package/dist/esm/api/resources/roles/types/GetRolesIdResponse.mjs +2 -0
- package/dist/esm/api/resources/roles/types/GetRolesResponse.d.mts +31 -0
- package/dist/esm/api/resources/roles/types/GetRolesResponse.mjs +2 -0
- package/dist/esm/api/resources/roles/types/PatchRolesIdResponse.d.mts +22 -0
- package/dist/esm/api/resources/roles/types/PatchRolesIdResponse.mjs +2 -0
- package/dist/esm/api/resources/roles/types/PostRolesResponse.d.mts +22 -0
- package/dist/esm/api/resources/roles/types/PostRolesResponse.mjs +2 -0
- package/dist/esm/api/resources/roles/types/index.d.mts +5 -0
- package/dist/esm/api/resources/roles/types/index.mjs +5 -0
- package/dist/esm/api/resources/ssOs/client/Client.d.mts +102 -0
- package/dist/esm/api/resources/ssOs/client/Client.mjs +357 -0
- package/dist/esm/api/resources/ssOs/client/index.d.mts +1 -0
- package/dist/esm/api/resources/ssOs/client/index.mjs +1 -0
- package/dist/esm/api/resources/ssOs/client/requests/DeleteSsoIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/ssOs/client/requests/DeleteSsoIdRequest.mjs +2 -0
- package/dist/esm/api/resources/ssOs/client/requests/GetSsoIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/ssOs/client/requests/GetSsoIdRequest.mjs +2 -0
- package/dist/esm/api/resources/ssOs/client/requests/GetSsoRequest.d.mts +9 -0
- package/dist/esm/api/resources/ssOs/client/requests/GetSsoRequest.mjs +2 -0
- package/dist/esm/api/resources/ssOs/client/requests/PatchSsoIdRequest.d.mts +21 -0
- package/dist/esm/api/resources/ssOs/client/requests/PatchSsoIdRequest.mjs +2 -0
- package/dist/esm/api/resources/ssOs/client/requests/PostSsoRequest.d.mts +22 -0
- package/dist/esm/api/resources/ssOs/client/requests/PostSsoRequest.mjs +2 -0
- package/dist/esm/api/resources/ssOs/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/ssOs/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/ssOs/index.d.mts +2 -0
- package/dist/esm/api/resources/ssOs/index.mjs +2 -0
- package/dist/esm/api/resources/ssOs/types/DeleteSsoIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/ssOs/types/DeleteSsoIdResponse.mjs +2 -0
- package/dist/esm/api/resources/ssOs/types/GetSsoIdResponse.d.mts +27 -0
- package/dist/esm/api/resources/ssOs/types/GetSsoIdResponse.mjs +13 -0
- package/dist/esm/api/resources/ssOs/types/GetSsoResponse.d.mts +36 -0
- package/dist/esm/api/resources/ssOs/types/GetSsoResponse.mjs +16 -0
- package/dist/esm/api/resources/ssOs/types/PatchSsoIdResponse.d.mts +27 -0
- package/dist/esm/api/resources/ssOs/types/PatchSsoIdResponse.mjs +13 -0
- package/dist/esm/api/resources/ssOs/types/PostSsoResponse.d.mts +27 -0
- package/dist/esm/api/resources/ssOs/types/PostSsoResponse.mjs +13 -0
- package/dist/esm/api/resources/ssOs/types/index.d.mts +5 -0
- package/dist/esm/api/resources/ssOs/types/index.mjs +5 -0
- package/dist/esm/api/resources/tags/client/Client.d.mts +146 -0
- package/dist/esm/api/resources/tags/client/Client.mjs +540 -0
- package/dist/esm/api/resources/tags/client/index.d.mts +1 -0
- package/dist/esm/api/resources/tags/client/index.mjs +1 -0
- package/dist/esm/api/resources/tags/client/requests/DeleteTagsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/tags/client/requests/DeleteTagsIdRequest.mjs +2 -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/GetTagsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/tags/client/requests/GetTagsIdRequest.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/GetTagsRequest.d.mts +9 -0
- package/dist/esm/api/resources/tags/client/requests/GetTagsRequest.mjs +2 -0
- package/dist/esm/api/resources/tags/client/requests/PatchTagsIdRequest.d.mts +19 -0
- package/dist/esm/api/resources/tags/client/requests/PatchTagsIdRequest.mjs +2 -0
- package/dist/esm/api/resources/tags/client/requests/PostTagsRequest.d.mts +18 -0
- package/dist/esm/api/resources/tags/client/requests/PostTagsRequest.mjs +2 -0
- package/dist/esm/api/resources/tags/client/requests/index.d.mts +8 -0
- package/dist/esm/api/resources/tags/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tags/index.d.mts +2 -0
- package/dist/esm/api/resources/tags/index.mjs +2 -0
- package/dist/esm/api/resources/tags/types/DeleteTagsIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/tags/types/DeleteTagsIdResponse.mjs +2 -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 +22 -0
- package/dist/esm/api/resources/tags/types/GetTagsIdResponse.mjs +2 -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 +31 -0
- package/dist/esm/api/resources/tags/types/GetTagsResponse.mjs +2 -0
- package/dist/esm/api/resources/tags/types/PatchTagsIdResponse.d.mts +22 -0
- package/dist/esm/api/resources/tags/types/PatchTagsIdResponse.mjs +2 -0
- package/dist/esm/api/resources/tags/types/PostTagsResponse.d.mts +22 -0
- package/dist/esm/api/resources/tags/types/PostTagsResponse.mjs +2 -0
- package/dist/esm/api/resources/tags/types/index.d.mts +8 -0
- package/dist/esm/api/resources/tags/types/index.mjs +8 -0
- package/dist/esm/api/resources/threads/client/Client.d.mts +337 -0
- package/dist/esm/api/resources/threads/client/Client.mjs +1237 -0
- package/dist/esm/api/resources/threads/client/index.d.mts +1 -0
- package/dist/esm/api/resources/threads/client/index.mjs +1 -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/DeleteThreadsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdRequest.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/GetThreadsIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsIdRequest.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/GetThreadsRequest.d.mts +9 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadsRequest.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/PatchThreadsIdRequest.d.mts +21 -0
- package/dist/esm/api/resources/threads/client/requests/PatchThreadsIdRequest.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/PostThreadsRequest.d.mts +40 -0
- package/dist/esm/api/resources/threads/client/requests/PostThreadsRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +19 -0
- package/dist/esm/api/resources/threads/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/threads/index.d.mts +2 -0
- package/dist/esm/api/resources/threads/index.mjs +2 -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/DeleteThreadsIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/threads/types/DeleteThreadsIdResponse.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 +55 -0
- package/dist/esm/api/resources/threads/types/GetThreadsIdResponse.mjs +2 -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 +64 -0
- package/dist/esm/api/resources/threads/types/GetThreadsResponse.mjs +2 -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 +55 -0
- package/dist/esm/api/resources/threads/types/PatchThreadsIdResponse.mjs +2 -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 +55 -0
- package/dist/esm/api/resources/threads/types/PostThreadsResponse.mjs +2 -0
- package/dist/esm/api/resources/threads/types/index.d.mts +19 -0
- package/dist/esm/api/resources/threads/types/index.mjs +19 -0
- package/dist/esm/api/resources/users/client/Client.d.mts +179 -0
- package/dist/esm/api/resources/users/client/Client.mjs +666 -0
- package/dist/esm/api/resources/users/client/index.d.mts +1 -0
- package/dist/esm/api/resources/users/client/index.mjs +1 -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/DeleteUsersIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/users/client/requests/DeleteUsersIdRequest.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/GetUsersIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersIdRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersRequest.d.mts +9 -0
- package/dist/esm/api/resources/users/client/requests/GetUsersRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/PatchUsersIdRequest.d.mts +27 -0
- package/dist/esm/api/resources/users/client/requests/PatchUsersIdRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/index.d.mts +10 -0
- package/dist/esm/api/resources/users/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/users/index.d.mts +2 -0
- package/dist/esm/api/resources/users/index.mjs +2 -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/DeleteUsersIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/users/types/DeleteUsersIdResponse.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 +43 -0
- package/dist/esm/api/resources/users/types/GetUsersIdResponse.mjs +2 -0
- package/dist/esm/api/resources/users/types/GetUsersResponse.d.mts +52 -0
- package/dist/esm/api/resources/users/types/GetUsersResponse.mjs +2 -0
- package/dist/esm/api/resources/users/types/PatchUsersIdResponse.d.mts +43 -0
- package/dist/esm/api/resources/users/types/PatchUsersIdResponse.mjs +2 -0
- package/dist/esm/api/resources/users/types/index.d.mts +10 -0
- package/dist/esm/api/resources/users/types/index.mjs +10 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +130 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +467 -0
- package/dist/esm/api/resources/webhooks/client/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/client/index.mjs +1 -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/DeleteWebhooksIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhooksIdRequest.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/GetWebhooksIdRequest.d.mts +9 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksRequest.d.mts +9 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/PostWebhooksRequest.d.mts +18 -0
- package/dist/esm/api/resources/webhooks/client/requests/PostWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +7 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/index.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/index.mjs +2 -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/DeleteWebhooksIdResponse.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/types/DeleteWebhooksIdResponse.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 +24 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksIdResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksResponse.d.mts +33 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/PostWebhooksResponse.d.mts +24 -0
- package/dist/esm/api/resources/webhooks/types/PostWebhooksResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/index.d.mts +7 -0
- package/dist/esm/api/resources/webhooks/types/index.mjs +7 -0
- package/dist/esm/api/types/AuthResponse.d.mts +1 -0
- package/dist/esm/api/types/AuthResponse.mjs +2 -0
- package/dist/esm/api/types/ErrorResponse.d.mts +10 -0
- package/dist/esm/api/types/ErrorResponse.mjs +2 -0
- package/dist/esm/api/types/IntegrationCreate.d.mts +7 -0
- package/dist/esm/api/types/IntegrationCreate.mjs +2 -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/IntegrationUpdate.d.mts +8 -0
- package/dist/esm/api/types/IntegrationUpdate.mjs +2 -0
- package/dist/esm/api/types/NotificationCreate.d.mts +30 -0
- package/dist/esm/api/types/NotificationCreate.mjs +11 -0
- package/dist/esm/api/types/NotificationList.d.mts +20 -0
- package/dist/esm/api/types/NotificationList.mjs +11 -0
- package/dist/esm/api/types/NotificationResponse.d.mts +25 -0
- package/dist/esm/api/types/NotificationResponse.mjs +2 -0
- package/dist/esm/api/types/NotificationUpdate.d.mts +16 -0
- package/dist/esm/api/types/NotificationUpdate.mjs +11 -0
- package/dist/esm/api/types/PostCreate.d.mts +11 -0
- package/dist/esm/api/types/PostCreate.mjs +2 -0
- package/dist/esm/api/types/PostList.d.mts +31 -0
- package/dist/esm/api/types/PostList.mjs +17 -0
- package/dist/esm/api/types/PostResponse.d.mts +18 -0
- package/dist/esm/api/types/PostResponse.mjs +2 -0
- package/dist/esm/api/types/PostUpdate.d.mts +10 -0
- package/dist/esm/api/types/PostUpdate.mjs +2 -0
- package/dist/esm/api/types/PrivateMessageCreate.d.mts +14 -0
- package/dist/esm/api/types/PrivateMessageCreate.mjs +2 -0
- package/dist/esm/api/types/PrivateMessageList.d.mts +8 -0
- package/dist/esm/api/types/PrivateMessageList.mjs +2 -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/ReportCreate.d.mts +16 -0
- package/dist/esm/api/types/ReportCreate.mjs +2 -0
- package/dist/esm/api/types/ReportList.d.mts +12 -0
- package/dist/esm/api/types/ReportList.mjs +2 -0
- package/dist/esm/api/types/ReportResponse.d.mts +23 -0
- package/dist/esm/api/types/ReportResponse.mjs +2 -0
- package/dist/esm/api/types/RoleCreate.d.mts +12 -0
- package/dist/esm/api/types/RoleCreate.mjs +2 -0
- package/dist/esm/api/types/RoleResponse.d.mts +17 -0
- package/dist/esm/api/types/RoleResponse.mjs +2 -0
- package/dist/esm/api/types/RoleUpdate.d.mts +12 -0
- package/dist/esm/api/types/RoleUpdate.mjs +2 -0
- package/dist/esm/api/types/SsoCreate.d.mts +13 -0
- package/dist/esm/api/types/SsoCreate.mjs +2 -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/SsoUpdate.d.mts +17 -0
- package/dist/esm/api/types/SsoUpdate.mjs +2 -0
- package/dist/esm/api/types/TagCreate.d.mts +12 -0
- package/dist/esm/api/types/TagCreate.mjs +2 -0
- package/dist/esm/api/types/TagList.d.mts +8 -0
- package/dist/esm/api/types/TagList.mjs +2 -0
- package/dist/esm/api/types/TagResponse.d.mts +17 -0
- package/dist/esm/api/types/TagResponse.mjs +2 -0
- package/dist/esm/api/types/TagUpdate.d.mts +12 -0
- package/dist/esm/api/types/TagUpdate.mjs +2 -0
- package/dist/esm/api/types/ThreadCreate.d.mts +33 -0
- package/dist/esm/api/types/ThreadCreate.mjs +2 -0
- package/dist/esm/api/types/ThreadList.d.mts +23 -0
- package/dist/esm/api/types/ThreadList.mjs +10 -0
- package/dist/esm/api/types/ThreadResponse.d.mts +50 -0
- package/dist/esm/api/types/ThreadResponse.mjs +2 -0
- package/dist/esm/api/types/ThreadUpdate.d.mts +14 -0
- package/dist/esm/api/types/ThreadUpdate.mjs +2 -0
- package/dist/esm/api/types/UserList.d.mts +18 -0
- package/dist/esm/api/types/UserList.mjs +9 -0
- package/dist/esm/api/types/UserResponse.d.mts +38 -0
- package/dist/esm/api/types/UserResponse.mjs +2 -0
- package/dist/esm/api/types/UserUpdate.d.mts +20 -0
- package/dist/esm/api/types/UserUpdate.mjs +2 -0
- package/dist/esm/api/types/WebhookCreate.d.mts +10 -0
- package/dist/esm/api/types/WebhookCreate.mjs +2 -0
- package/dist/esm/api/types/WebhookList.d.mts +6 -0
- package/dist/esm/api/types/WebhookList.mjs +2 -0
- 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 +39 -0
- package/dist/esm/api/types/index.mjs +39 -0
- package/dist/esm/auth/HeaderAuthProvider.d.mts +16 -0
- package/dist/esm/auth/HeaderAuthProvider.mjs +34 -0
- package/dist/esm/auth/index.d.mts +1 -0
- package/dist/esm/auth/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
- package/dist/esm/core/auth/AuthProvider.mjs +1 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
- package/dist/esm/core/auth/BasicAuth.mjs +24 -0
- package/dist/esm/core/auth/BearerToken.d.mts +7 -0
- package/dist/esm/core/auth/BearerToken.mjs +13 -0
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/core/auth/index.d.mts +5 -0
- package/dist/esm/core/auth/index.mjs +3 -0
- package/dist/esm/core/base64.d.mts +2 -0
- package/dist/esm/core/base64.mjs +22 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +19 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +49 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +312 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +42 -0
- package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
- package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +24 -0
- package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +66 -0
- package/dist/esm/core/fetcher/index.d.mts +11 -0
- package/dist/esm/core/fetcher/index.mjs +6 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +36 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +64 -0
- package/dist/esm/core/fetcher/signals.d.mts +5 -0
- package/dist/esm/core/fetcher/signals.mjs +20 -0
- package/dist/esm/core/headers.d.mts +2 -0
- package/dist/esm/core/headers.mjs +27 -0
- package/dist/esm/core/index.d.mts +6 -0
- package/dist/esm/core/index.mjs +6 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +100 -0
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +3 -0
- package/dist/esm/core/url/index.mjs +3 -0
- package/dist/esm/core/url/join.d.mts +1 -0
- package/dist/esm/core/url/join.mjs +65 -0
- package/dist/esm/core/url/qs.d.mts +6 -0
- package/dist/esm/core/url/qs.mjs +61 -0
- package/dist/esm/environments.d.mts +4 -0
- package/dist/esm/environments.mjs +4 -0
- package/dist/esm/errors/ForumError.d.mts +12 -0
- package/dist/esm/errors/ForumError.mjs +28 -0
- package/dist/esm/errors/ForumTimeoutError.d.mts +3 -0
- package/dist/esm/errors/ForumTimeoutError.mjs +11 -0
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
- package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +6 -0
- package/dist/esm/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +69 -33
- package/reference.md +4848 -0
- package/LICENSE +0 -21
- package/dist/Client.d.ts +0 -98
- package/dist/Client.js +0 -172
- package/dist/errors.d.ts +0 -52
- package/dist/errors.js +0 -95
- package/dist/index.d.ts +0 -19
- package/dist/index.js +0 -35
- package/dist/resources/Auth.d.ts +0 -33
- package/dist/resources/Auth.js +0 -66
- package/dist/resources/Integrations.d.ts +0 -27
- package/dist/resources/Integrations.js +0 -36
- package/dist/resources/Notifications.d.ts +0 -33
- package/dist/resources/Notifications.js +0 -50
- package/dist/resources/Posts.d.ts +0 -52
- package/dist/resources/Posts.js +0 -152
- package/dist/resources/PrivateMessages.d.ts +0 -34
- package/dist/resources/PrivateMessages.js +0 -50
- package/dist/resources/Reports.d.ts +0 -47
- package/dist/resources/Reports.js +0 -56
- package/dist/resources/Roles.d.ts +0 -27
- package/dist/resources/Roles.js +0 -44
- package/dist/resources/SSO.d.ts +0 -27
- package/dist/resources/SSO.js +0 -36
- package/dist/resources/Search.d.ts +0 -12
- package/dist/resources/Search.js +0 -20
- package/dist/resources/Stats.d.ts +0 -13
- package/dist/resources/Stats.js +0 -22
- package/dist/resources/Tags.d.ts +0 -49
- package/dist/resources/Tags.js +0 -96
- package/dist/resources/Threads.d.ts +0 -65
- package/dist/resources/Threads.js +0 -205
- package/dist/resources/Users.d.ts +0 -74
- package/dist/resources/Users.js +0 -108
- package/dist/resources/Webhooks.d.ts +0 -105
- package/dist/resources/Webhooks.js +0 -161
- package/dist/response-types.d.ts +0 -127
- package/dist/types.d.ts +0 -306
- package/dist/utils.d.ts +0 -80
- package/dist/utils.js +0 -138
- package/examples/README.md +0 -38
- package/examples/authentication.ts +0 -91
- package/examples/error-handling.ts +0 -132
- package/examples/managing-threads.ts +0 -133
- package/examples/pagination.ts +0 -80
- package/examples/webhooks.ts +0 -176
- package/src/Client.ts +0 -233
- package/src/errors.ts +0 -95
- package/src/index.ts +0 -19
- package/src/resources/Auth.ts +0 -84
- package/src/resources/Integrations.ts +0 -50
- package/src/resources/Notifications.ts +0 -72
- package/src/resources/Posts.ts +0 -195
- package/src/resources/PrivateMessages.ts +0 -78
- package/src/resources/Reports.ts +0 -94
- package/src/resources/Roles.ts +0 -65
- package/src/resources/SSO.ts +0 -50
- package/src/resources/Search.ts +0 -28
- package/src/resources/Stats.ts +0 -31
- package/src/resources/Tags.ts +0 -135
- package/src/resources/Threads.ts +0 -269
- package/src/resources/Users.ts +0 -168
- package/src/resources/Webhooks.ts +0 -192
- package/src/response-types.ts +0 -137
- package/src/types.ts +0 -342
- package/src/utils.ts +0 -182
- package/tsconfig.json +0 -21
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
let Headers;
|
|
2
|
+
if (typeof globalThis.Headers !== "undefined") {
|
|
3
|
+
Headers = globalThis.Headers;
|
|
4
|
+
}
|
|
5
|
+
else {
|
|
6
|
+
Headers = class Headers {
|
|
7
|
+
constructor(init) {
|
|
8
|
+
this.headers = new Map();
|
|
9
|
+
if (init) {
|
|
10
|
+
if (init instanceof Headers) {
|
|
11
|
+
init.forEach((value, key) => this.append(key, value));
|
|
12
|
+
}
|
|
13
|
+
else if (Array.isArray(init)) {
|
|
14
|
+
for (const [key, value] of init) {
|
|
15
|
+
if (typeof key === "string" && typeof value === "string") {
|
|
16
|
+
this.append(key, value);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
throw new TypeError("Each header entry must be a [string, string] tuple");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
for (const [key, value] of Object.entries(init)) {
|
|
25
|
+
if (typeof value === "string") {
|
|
26
|
+
this.append(key, value);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
throw new TypeError("Header values must be strings");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
append(name, value) {
|
|
36
|
+
const key = name.toLowerCase();
|
|
37
|
+
const existing = this.headers.get(key) || [];
|
|
38
|
+
this.headers.set(key, [...existing, value]);
|
|
39
|
+
}
|
|
40
|
+
delete(name) {
|
|
41
|
+
const key = name.toLowerCase();
|
|
42
|
+
this.headers.delete(key);
|
|
43
|
+
}
|
|
44
|
+
get(name) {
|
|
45
|
+
const key = name.toLowerCase();
|
|
46
|
+
const values = this.headers.get(key);
|
|
47
|
+
return values ? values.join(", ") : null;
|
|
48
|
+
}
|
|
49
|
+
has(name) {
|
|
50
|
+
const key = name.toLowerCase();
|
|
51
|
+
return this.headers.has(key);
|
|
52
|
+
}
|
|
53
|
+
set(name, value) {
|
|
54
|
+
const key = name.toLowerCase();
|
|
55
|
+
this.headers.set(key, [value]);
|
|
56
|
+
}
|
|
57
|
+
forEach(callbackfn, thisArg) {
|
|
58
|
+
const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;
|
|
59
|
+
this.headers.forEach((values, key) => boundCallback(values.join(", "), key, this));
|
|
60
|
+
}
|
|
61
|
+
getSetCookie() {
|
|
62
|
+
return this.headers.get("set-cookie") || [];
|
|
63
|
+
}
|
|
64
|
+
*entries() {
|
|
65
|
+
for (const [key, values] of this.headers.entries()) {
|
|
66
|
+
yield [key, values.join(", ")];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
*keys() {
|
|
70
|
+
yield* this.headers.keys();
|
|
71
|
+
}
|
|
72
|
+
*values() {
|
|
73
|
+
for (const values of this.headers.values()) {
|
|
74
|
+
yield values.join(", ");
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
[Symbol.iterator]() {
|
|
78
|
+
return this.entries();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export { Headers };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { WithRawResponse } from "./RawResponse.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* A promise that returns the parsed response and lets you retrieve the raw response too.
|
|
4
|
+
*/
|
|
5
|
+
export declare class HttpResponsePromise<T> extends Promise<T> {
|
|
6
|
+
private innerPromise;
|
|
7
|
+
private unwrappedPromise;
|
|
8
|
+
private constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Creates an `HttpResponsePromise` from a function that returns a promise.
|
|
11
|
+
*
|
|
12
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
13
|
+
* @param args - Arguments to pass to the function.
|
|
14
|
+
* @returns An `HttpResponsePromise` instance.
|
|
15
|
+
*/
|
|
16
|
+
static fromFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T>(fn: F, ...args: Parameters<F>): HttpResponsePromise<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a function that returns an `HttpResponsePromise` from a function that returns a promise.
|
|
19
|
+
*
|
|
20
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
21
|
+
* @returns A function that returns an `HttpResponsePromise` instance.
|
|
22
|
+
*/
|
|
23
|
+
static interceptFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T = Awaited<ReturnType<F>>["data"]>(fn: F): (...args: Parameters<F>) => HttpResponsePromise<T>;
|
|
24
|
+
/**
|
|
25
|
+
* Creates an `HttpResponsePromise` from an existing promise.
|
|
26
|
+
*
|
|
27
|
+
* @param promise - A promise resolving to a `WithRawResponse` object.
|
|
28
|
+
* @returns An `HttpResponsePromise` instance.
|
|
29
|
+
*/
|
|
30
|
+
static fromPromise<T>(promise: Promise<WithRawResponse<T>>): HttpResponsePromise<T>;
|
|
31
|
+
/**
|
|
32
|
+
* Creates an `HttpResponsePromise` from an executor function.
|
|
33
|
+
*
|
|
34
|
+
* @param executor - A function that takes resolve and reject callbacks to create a promise.
|
|
35
|
+
* @returns An `HttpResponsePromise` instance.
|
|
36
|
+
*/
|
|
37
|
+
static fromExecutor<T>(executor: (resolve: (value: WithRawResponse<T>) => void, reject: (reason?: unknown) => void) => void): HttpResponsePromise<T>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates an `HttpResponsePromise` from a resolved result.
|
|
40
|
+
*
|
|
41
|
+
* @param result - A `WithRawResponse` object to resolve immediately.
|
|
42
|
+
* @returns An `HttpResponsePromise` instance.
|
|
43
|
+
*/
|
|
44
|
+
static fromResult<T>(result: WithRawResponse<T>): HttpResponsePromise<T>;
|
|
45
|
+
private unwrap;
|
|
46
|
+
/** @inheritdoc */
|
|
47
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
48
|
+
/** @inheritdoc */
|
|
49
|
+
catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
50
|
+
/** @inheritdoc */
|
|
51
|
+
finally(onfinally?: (() => void) | null): Promise<T>;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves the data and raw response.
|
|
54
|
+
*
|
|
55
|
+
* @returns A promise resolving to a `WithRawResponse` object.
|
|
56
|
+
*/
|
|
57
|
+
withRawResponse(): Promise<WithRawResponse<T>>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A promise that returns the parsed response and lets you retrieve the raw response too.
|
|
12
|
+
*/
|
|
13
|
+
export class HttpResponsePromise extends Promise {
|
|
14
|
+
constructor(promise) {
|
|
15
|
+
// Initialize with a no-op to avoid premature parsing
|
|
16
|
+
super((resolve) => {
|
|
17
|
+
resolve(undefined);
|
|
18
|
+
});
|
|
19
|
+
this.innerPromise = promise;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Creates an `HttpResponsePromise` from a function that returns a promise.
|
|
23
|
+
*
|
|
24
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
25
|
+
* @param args - Arguments to pass to the function.
|
|
26
|
+
* @returns An `HttpResponsePromise` instance.
|
|
27
|
+
*/
|
|
28
|
+
static fromFunction(fn, ...args) {
|
|
29
|
+
return new HttpResponsePromise(fn(...args));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Creates a function that returns an `HttpResponsePromise` from a function that returns a promise.
|
|
33
|
+
*
|
|
34
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
35
|
+
* @returns A function that returns an `HttpResponsePromise` instance.
|
|
36
|
+
*/
|
|
37
|
+
static interceptFunction(fn) {
|
|
38
|
+
return (...args) => {
|
|
39
|
+
return HttpResponsePromise.fromPromise(fn(...args));
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Creates an `HttpResponsePromise` from an existing promise.
|
|
44
|
+
*
|
|
45
|
+
* @param promise - A promise resolving to a `WithRawResponse` object.
|
|
46
|
+
* @returns An `HttpResponsePromise` instance.
|
|
47
|
+
*/
|
|
48
|
+
static fromPromise(promise) {
|
|
49
|
+
return new HttpResponsePromise(promise);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Creates an `HttpResponsePromise` from an executor function.
|
|
53
|
+
*
|
|
54
|
+
* @param executor - A function that takes resolve and reject callbacks to create a promise.
|
|
55
|
+
* @returns An `HttpResponsePromise` instance.
|
|
56
|
+
*/
|
|
57
|
+
static fromExecutor(executor) {
|
|
58
|
+
const promise = new Promise(executor);
|
|
59
|
+
return new HttpResponsePromise(promise);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates an `HttpResponsePromise` from a resolved result.
|
|
63
|
+
*
|
|
64
|
+
* @param result - A `WithRawResponse` object to resolve immediately.
|
|
65
|
+
* @returns An `HttpResponsePromise` instance.
|
|
66
|
+
*/
|
|
67
|
+
static fromResult(result) {
|
|
68
|
+
const promise = Promise.resolve(result);
|
|
69
|
+
return new HttpResponsePromise(promise);
|
|
70
|
+
}
|
|
71
|
+
unwrap() {
|
|
72
|
+
if (!this.unwrappedPromise) {
|
|
73
|
+
this.unwrappedPromise = this.innerPromise.then(({ data }) => data);
|
|
74
|
+
}
|
|
75
|
+
return this.unwrappedPromise;
|
|
76
|
+
}
|
|
77
|
+
/** @inheritdoc */
|
|
78
|
+
then(onfulfilled, onrejected) {
|
|
79
|
+
return this.unwrap().then(onfulfilled, onrejected);
|
|
80
|
+
}
|
|
81
|
+
/** @inheritdoc */
|
|
82
|
+
catch(onrejected) {
|
|
83
|
+
return this.unwrap().catch(onrejected);
|
|
84
|
+
}
|
|
85
|
+
/** @inheritdoc */
|
|
86
|
+
finally(onfinally) {
|
|
87
|
+
return this.unwrap().finally(onfinally);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves the data and raw response.
|
|
91
|
+
*
|
|
92
|
+
* @returns A promise resolving to a `WithRawResponse` object.
|
|
93
|
+
*/
|
|
94
|
+
withRawResponse() {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
return yield this.innerPromise;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The raw response from the fetch call excluding the body.
|
|
3
|
+
*/
|
|
4
|
+
export type RawResponse = Omit<{
|
|
5
|
+
[K in keyof Response as Response[K] extends Function ? never : K]: Response[K];
|
|
6
|
+
}, "ok" | "body" | "bodyUsed">;
|
|
7
|
+
/**
|
|
8
|
+
* A raw response indicating that the request was aborted.
|
|
9
|
+
*/
|
|
10
|
+
export declare const abortRawResponse: RawResponse;
|
|
11
|
+
/**
|
|
12
|
+
* A raw response indicating an unknown error.
|
|
13
|
+
*/
|
|
14
|
+
export declare const unknownRawResponse: RawResponse;
|
|
15
|
+
/**
|
|
16
|
+
* Converts a `RawResponse` object into a `RawResponse` by extracting its properties,
|
|
17
|
+
* excluding the `body` and `bodyUsed` fields.
|
|
18
|
+
*
|
|
19
|
+
* @param response - The `RawResponse` object to convert.
|
|
20
|
+
* @returns A `RawResponse` object containing the extracted properties of the input response.
|
|
21
|
+
*/
|
|
22
|
+
export declare function toRawResponse(response: Response): RawResponse;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a `RawResponse` from a standard `Response` object.
|
|
25
|
+
*/
|
|
26
|
+
export interface WithRawResponse<T> {
|
|
27
|
+
readonly data: T;
|
|
28
|
+
readonly rawResponse: RawResponse;
|
|
29
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Headers } from "./Headers.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* A raw response indicating that the request was aborted.
|
|
4
|
+
*/
|
|
5
|
+
export const abortRawResponse = {
|
|
6
|
+
headers: new Headers(),
|
|
7
|
+
redirected: false,
|
|
8
|
+
status: 499,
|
|
9
|
+
statusText: "Client Closed Request",
|
|
10
|
+
type: "error",
|
|
11
|
+
url: "",
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A raw response indicating an unknown error.
|
|
15
|
+
*/
|
|
16
|
+
export const unknownRawResponse = {
|
|
17
|
+
headers: new Headers(),
|
|
18
|
+
redirected: false,
|
|
19
|
+
status: 0,
|
|
20
|
+
statusText: "Unknown Error",
|
|
21
|
+
type: "error",
|
|
22
|
+
url: "",
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Converts a `RawResponse` object into a `RawResponse` by extracting its properties,
|
|
26
|
+
* excluding the `body` and `bodyUsed` fields.
|
|
27
|
+
*
|
|
28
|
+
* @param response - The `RawResponse` object to convert.
|
|
29
|
+
* @returns A `RawResponse` object containing the extracted properties of the input response.
|
|
30
|
+
*/
|
|
31
|
+
export function toRawResponse(response) {
|
|
32
|
+
return {
|
|
33
|
+
headers: response.headers,
|
|
34
|
+
redirected: response.redirected,
|
|
35
|
+
status: response.status,
|
|
36
|
+
statusText: response.statusText,
|
|
37
|
+
type: response.type,
|
|
38
|
+
url: response.url,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export const Supplier = {
|
|
11
|
+
get: (supplier) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12
|
+
if (typeof supplier === "function") {
|
|
13
|
+
return supplier();
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return supplier;
|
|
17
|
+
}
|
|
18
|
+
}),
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createRequestUrl(baseUrl: string, queryParameters?: Record<string, unknown>): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getErrorResponseBody(response: Response): Promise<unknown>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { fromJson } from "../json.mjs";
|
|
11
|
+
import { getResponseBody } from "./getResponseBody.mjs";
|
|
12
|
+
export function getErrorResponseBody(response) {
|
|
13
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
+
var _a, _b, _c;
|
|
15
|
+
let contentType = (_a = response.headers.get("Content-Type")) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
16
|
+
if (contentType == null || contentType.length === 0) {
|
|
17
|
+
return getResponseBody(response);
|
|
18
|
+
}
|
|
19
|
+
if (contentType.indexOf(";") !== -1) {
|
|
20
|
+
contentType = (_c = (_b = contentType.split(";")[0]) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : "";
|
|
21
|
+
}
|
|
22
|
+
switch (contentType) {
|
|
23
|
+
case "application/hal+json":
|
|
24
|
+
case "application/json":
|
|
25
|
+
case "application/ld+json":
|
|
26
|
+
case "application/problem+json":
|
|
27
|
+
case "application/vnd.api+json":
|
|
28
|
+
case "text/json": {
|
|
29
|
+
const text = yield response.text();
|
|
30
|
+
return text.length > 0 ? fromJson(text) : undefined;
|
|
31
|
+
}
|
|
32
|
+
default:
|
|
33
|
+
if (contentType.startsWith("application/vnd.") && contentType.endsWith("+json")) {
|
|
34
|
+
const text = yield response.text();
|
|
35
|
+
return text.length > 0 ? fromJson(text) : undefined;
|
|
36
|
+
}
|
|
37
|
+
// Fallback to plain text if content type is not recognized
|
|
38
|
+
// Even if no body is present, the response will be an empty string
|
|
39
|
+
return yield response.text();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getFetchFn(): Promise<typeof fetch>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export function getFetchFn() {
|
|
11
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12
|
+
return fetch;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getHeader(headers: Record<string, any>, header: string): string | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { toJson } from "../json.mjs";
|
|
11
|
+
import { toQueryString } from "../url/qs.mjs";
|
|
12
|
+
export function getRequestBody(_a) {
|
|
13
|
+
return __awaiter(this, arguments, void 0, function* ({ body, type }) {
|
|
14
|
+
if (type === "form") {
|
|
15
|
+
return toQueryString(body, { arrayFormat: "repeat", encode: true });
|
|
16
|
+
}
|
|
17
|
+
if (type.includes("json")) {
|
|
18
|
+
return toJson(body);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
return body;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getResponseBody(response: Response, responseType?: string): Promise<unknown>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { fromJson } from "../json.mjs";
|
|
11
|
+
import { getBinaryResponse } from "./BinaryResponse.mjs";
|
|
12
|
+
export function getResponseBody(response, responseType) {
|
|
13
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
+
switch (responseType) {
|
|
15
|
+
case "binary-response":
|
|
16
|
+
return getBinaryResponse(response);
|
|
17
|
+
case "blob":
|
|
18
|
+
return yield response.blob();
|
|
19
|
+
case "arrayBuffer":
|
|
20
|
+
return yield response.arrayBuffer();
|
|
21
|
+
case "sse":
|
|
22
|
+
if (response.body == null) {
|
|
23
|
+
return {
|
|
24
|
+
ok: false,
|
|
25
|
+
error: {
|
|
26
|
+
reason: "body-is-null",
|
|
27
|
+
statusCode: response.status,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return response.body;
|
|
32
|
+
case "streaming":
|
|
33
|
+
if (response.body == null) {
|
|
34
|
+
return {
|
|
35
|
+
ok: false,
|
|
36
|
+
error: {
|
|
37
|
+
reason: "body-is-null",
|
|
38
|
+
statusCode: response.status,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
return response.body;
|
|
43
|
+
case "text":
|
|
44
|
+
return yield response.text();
|
|
45
|
+
}
|
|
46
|
+
// if responseType is "json" or not specified, try to parse as JSON
|
|
47
|
+
const text = yield response.text();
|
|
48
|
+
if (text.length > 0) {
|
|
49
|
+
try {
|
|
50
|
+
const responseBody = fromJson(text);
|
|
51
|
+
return responseBody;
|
|
52
|
+
}
|
|
53
|
+
catch (_err) {
|
|
54
|
+
return {
|
|
55
|
+
ok: false,
|
|
56
|
+
error: {
|
|
57
|
+
reason: "non-json",
|
|
58
|
+
statusCode: response.status,
|
|
59
|
+
rawBody: text,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return undefined;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type { APIResponse } from "./APIResponse.mjs";
|
|
2
|
+
export type { BinaryResponse } from "./BinaryResponse.mjs";
|
|
3
|
+
export type { EndpointMetadata } from "./EndpointMetadata.mjs";
|
|
4
|
+
export { EndpointSupplier } from "./EndpointSupplier.mjs";
|
|
5
|
+
export type { Fetcher, FetchFunction } from "./Fetcher.mjs";
|
|
6
|
+
export { fetcher } from "./Fetcher.mjs";
|
|
7
|
+
export { getHeader } from "./getHeader.mjs";
|
|
8
|
+
export { HttpResponsePromise } from "./HttpResponsePromise.mjs";
|
|
9
|
+
export type { RawResponse, WithRawResponse } from "./RawResponse.mjs";
|
|
10
|
+
export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
|
|
11
|
+
export { Supplier } from "./Supplier.mjs";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { EndpointSupplier } from "./EndpointSupplier.mjs";
|
|
2
|
+
export { fetcher } from "./Fetcher.mjs";
|
|
3
|
+
export { getHeader } from "./getHeader.mjs";
|
|
4
|
+
export { HttpResponsePromise } from "./HttpResponsePromise.mjs";
|
|
5
|
+
export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
|
|
6
|
+
export { Supplier } from "./Supplier.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Headers | Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number, abortSignal?: AbortSignal, withCredentials?: boolean, duplex?: "half") => Promise<Response>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { anySignal, getTimeoutSignal } from "./signals.mjs";
|
|
11
|
+
export const makeRequest = (fetchFn, url, method, headers, requestBody, timeoutMs, abortSignal, withCredentials, duplex) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12
|
+
const signals = [];
|
|
13
|
+
let timeoutAbortId;
|
|
14
|
+
if (timeoutMs != null) {
|
|
15
|
+
const { signal, abortId } = getTimeoutSignal(timeoutMs);
|
|
16
|
+
timeoutAbortId = abortId;
|
|
17
|
+
signals.push(signal);
|
|
18
|
+
}
|
|
19
|
+
if (abortSignal != null) {
|
|
20
|
+
signals.push(abortSignal);
|
|
21
|
+
}
|
|
22
|
+
const newSignals = anySignal(signals);
|
|
23
|
+
const response = yield fetchFn(url, {
|
|
24
|
+
method: method,
|
|
25
|
+
headers,
|
|
26
|
+
body: requestBody,
|
|
27
|
+
signal: newSignals,
|
|
28
|
+
credentials: withCredentials ? "include" : undefined,
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
duplex,
|
|
31
|
+
});
|
|
32
|
+
if (timeoutAbortId != null) {
|
|
33
|
+
clearTimeout(timeoutAbortId);
|
|
34
|
+
}
|
|
35
|
+
return response;
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function requestWithRetries(requestFn: () => Promise<Response>, maxRetries?: number): Promise<Response>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
const INITIAL_RETRY_DELAY = 1000; // in milliseconds
|
|
11
|
+
const MAX_RETRY_DELAY = 60000; // in milliseconds
|
|
12
|
+
const DEFAULT_MAX_RETRIES = 2;
|
|
13
|
+
const JITTER_FACTOR = 0.2; // 20% random jitter
|
|
14
|
+
function addPositiveJitter(delay) {
|
|
15
|
+
const jitterMultiplier = 1 + Math.random() * JITTER_FACTOR;
|
|
16
|
+
return delay * jitterMultiplier;
|
|
17
|
+
}
|
|
18
|
+
function addSymmetricJitter(delay) {
|
|
19
|
+
const jitterMultiplier = 1 + (Math.random() - 0.5) * JITTER_FACTOR;
|
|
20
|
+
return delay * jitterMultiplier;
|
|
21
|
+
}
|
|
22
|
+
function getRetryDelayFromHeaders(response, retryAttempt) {
|
|
23
|
+
const retryAfter = response.headers.get("Retry-After");
|
|
24
|
+
if (retryAfter) {
|
|
25
|
+
const retryAfterSeconds = parseInt(retryAfter, 10);
|
|
26
|
+
if (!Number.isNaN(retryAfterSeconds) && retryAfterSeconds > 0) {
|
|
27
|
+
return Math.min(retryAfterSeconds * 1000, MAX_RETRY_DELAY);
|
|
28
|
+
}
|
|
29
|
+
const retryAfterDate = new Date(retryAfter);
|
|
30
|
+
if (!Number.isNaN(retryAfterDate.getTime())) {
|
|
31
|
+
const delay = retryAfterDate.getTime() - Date.now();
|
|
32
|
+
if (delay > 0) {
|
|
33
|
+
return Math.min(Math.max(delay, 0), MAX_RETRY_DELAY);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const rateLimitReset = response.headers.get("X-RateLimit-Reset");
|
|
38
|
+
if (rateLimitReset) {
|
|
39
|
+
const resetTime = parseInt(rateLimitReset, 10);
|
|
40
|
+
if (!Number.isNaN(resetTime)) {
|
|
41
|
+
const delay = resetTime * 1000 - Date.now();
|
|
42
|
+
if (delay > 0) {
|
|
43
|
+
return addPositiveJitter(Math.min(delay, MAX_RETRY_DELAY));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return addSymmetricJitter(Math.min(INITIAL_RETRY_DELAY * Math.pow(2, retryAttempt), MAX_RETRY_DELAY));
|
|
48
|
+
}
|
|
49
|
+
export function requestWithRetries(requestFn_1) {
|
|
50
|
+
return __awaiter(this, arguments, void 0, function* (requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
|
|
51
|
+
let response = yield requestFn();
|
|
52
|
+
for (let i = 0; i < maxRetries; ++i) {
|
|
53
|
+
if ([408, 429].includes(response.status) || response.status >= 500) {
|
|
54
|
+
const delay = getRetryDelayFromHeaders(response, i);
|
|
55
|
+
yield new Promise((resolve) => setTimeout(resolve, delay));
|
|
56
|
+
response = yield requestFn();
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return response;
|
|
63
|
+
});
|
|
64
|
+
}
|