rizamo 0.0.0 → 1.1.0
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/LICENSE +21 -0
- package/README.md +340 -2
- package/dist/cjs/BaseClient.d.ts +57 -0
- package/dist/cjs/BaseClient.js +77 -0
- package/dist/cjs/Client.d.ts +71 -0
- package/dist/cjs/Client.js +158 -0
- package/dist/cjs/api/errors/BadGatewayError.d.ts +7 -0
- package/dist/cjs/api/errors/BadGatewayError.js +54 -0
- package/dist/cjs/api/errors/BadRequestError.d.ts +7 -0
- package/dist/cjs/api/errors/BadRequestError.js +54 -0
- package/dist/cjs/api/errors/ConflictError.d.ts +7 -0
- package/dist/cjs/api/errors/ConflictError.js +54 -0
- package/dist/cjs/api/errors/ContentTooLargeError.d.ts +7 -0
- package/dist/cjs/api/errors/ContentTooLargeError.js +54 -0
- package/dist/cjs/api/errors/ForbiddenError.d.ts +7 -0
- package/dist/cjs/api/errors/ForbiddenError.js +54 -0
- package/dist/cjs/api/errors/InternalServerError.d.ts +7 -0
- package/dist/cjs/api/errors/InternalServerError.js +54 -0
- package/dist/cjs/api/errors/NotFoundError.d.ts +7 -0
- package/dist/cjs/api/errors/NotFoundError.js +54 -0
- package/dist/cjs/api/errors/NotImplementedError.d.ts +7 -0
- package/dist/cjs/api/errors/NotImplementedError.js +54 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +7 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.js +54 -0
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +7 -0
- package/dist/cjs/api/errors/TooManyRequestsError.js +54 -0
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +7 -0
- package/dist/cjs/api/errors/UnauthorizedError.js +54 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +7 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +54 -0
- package/dist/cjs/api/errors/UnsupportedMediaTypeError.d.ts +7 -0
- package/dist/cjs/api/errors/UnsupportedMediaTypeError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +13 -0
- package/dist/cjs/api/errors/index.js +29 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +191 -0
- package/dist/cjs/api/resources/accounts/client/Client.js +646 -0
- package/dist/cjs/api/resources/accounts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/client/index.js +17 -0
- package/dist/cjs/api/resources/accounts/client/requests/GetAccountsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/accounts/client/requests/GetAccountsRequest.js +3 -0
- package/dist/cjs/api/resources/accounts/client/requests/ListAccountsRequest.d.ts +17 -0
- package/dist/cjs/api/resources/accounts/client/requests/ListAccountsRequest.js +3 -0
- package/dist/cjs/api/resources/accounts/client/requests/RemovalAccountsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/accounts/client/requests/RemovalAccountsRequest.js +3 -0
- package/dist/cjs/api/resources/accounts/client/requests/RemoveAccountsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/accounts/client/requests/RemoveAccountsRequest.js +3 -0
- package/dist/cjs/api/resources/accounts/client/requests/SearchMusicAccountsRequest.d.ts +22 -0
- package/dist/cjs/api/resources/accounts/client/requests/SearchMusicAccountsRequest.js +3 -0
- package/dist/cjs/api/resources/accounts/client/requests/TiktokCreatorInfoAccountsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/accounts/client/requests/TiktokCreatorInfoAccountsRequest.js +3 -0
- package/dist/cjs/api/resources/accounts/client/requests/UpdateAccountsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/accounts/client/requests/UpdateAccountsRequest.js +3 -0
- package/dist/cjs/api/resources/accounts/client/requests/index.d.ts +7 -0
- package/dist/cjs/api/resources/accounts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/accounts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/accounts/exports.js +21 -0
- package/dist/cjs/api/resources/accounts/index.d.ts +2 -0
- package/dist/cjs/api/resources/accounts/index.js +18 -0
- package/dist/cjs/api/resources/accounts/types/ListAccountsRequestStatus.d.ts +7 -0
- package/dist/cjs/api/resources/accounts/types/ListAccountsRequestStatus.js +10 -0
- package/dist/cjs/api/resources/accounts/types/ListAccountsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/accounts/types/ListAccountsResponse.js +3 -0
- package/dist/cjs/api/resources/accounts/types/SearchMusicAccountsRequestGenre.d.ts +114 -0
- package/dist/cjs/api/resources/accounts/types/SearchMusicAccountsRequestGenre.js +117 -0
- package/dist/cjs/api/resources/accounts/types/SearchMusicAccountsRequestPeriod.d.ts +8 -0
- package/dist/cjs/api/resources/accounts/types/SearchMusicAccountsRequestPeriod.js +11 -0
- package/dist/cjs/api/resources/accounts/types/SearchMusicAccountsRequestType.d.ts +6 -0
- package/dist/cjs/api/resources/accounts/types/SearchMusicAccountsRequestType.js +9 -0
- package/dist/cjs/api/resources/accounts/types/SearchMusicAccountsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/accounts/types/SearchMusicAccountsResponse.js +3 -0
- package/dist/cjs/api/resources/accounts/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/accounts/types/index.js +22 -0
- package/dist/cjs/api/resources/analytics/client/Client.d.ts +85 -0
- package/dist/cjs/api/resources/analytics/client/Client.js +314 -0
- package/dist/cjs/api/resources/analytics/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/analytics/client/index.js +17 -0
- package/dist/cjs/api/resources/analytics/client/requests/AudienceAnalyticsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/analytics/client/requests/AudienceAnalyticsRequest.js +3 -0
- package/dist/cjs/api/resources/analytics/client/requests/OverviewAnalyticsRequest.d.ts +25 -0
- package/dist/cjs/api/resources/analytics/client/requests/OverviewAnalyticsRequest.js +3 -0
- package/dist/cjs/api/resources/analytics/client/requests/PostsAnalyticsRequest.d.ts +29 -0
- package/dist/cjs/api/resources/analytics/client/requests/PostsAnalyticsRequest.js +3 -0
- package/dist/cjs/api/resources/analytics/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/analytics/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/analytics/exports.d.ts +2 -0
- package/dist/cjs/api/resources/analytics/exports.js +21 -0
- package/dist/cjs/api/resources/analytics/index.d.ts +2 -0
- package/dist/cjs/api/resources/analytics/index.js +18 -0
- package/dist/cjs/api/resources/analytics/types/OverviewAnalyticsRequestAttribution.d.ts +6 -0
- package/dist/cjs/api/resources/analytics/types/OverviewAnalyticsRequestAttribution.js +9 -0
- package/dist/cjs/api/resources/analytics/types/OverviewAnalyticsRequestInterval.d.ts +7 -0
- package/dist/cjs/api/resources/analytics/types/OverviewAnalyticsRequestInterval.js +10 -0
- package/dist/cjs/api/resources/analytics/types/PostsAnalyticsRequestOrder.d.ts +6 -0
- package/dist/cjs/api/resources/analytics/types/PostsAnalyticsRequestOrder.js +9 -0
- package/dist/cjs/api/resources/analytics/types/PostsAnalyticsRequestSort.d.ts +9 -0
- package/dist/cjs/api/resources/analytics/types/PostsAnalyticsRequestSort.js +12 -0
- package/dist/cjs/api/resources/analytics/types/PostsAnalyticsResponse.d.ts +10 -0
- package/dist/cjs/api/resources/analytics/types/PostsAnalyticsResponse.js +3 -0
- package/dist/cjs/api/resources/analytics/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/analytics/types/index.js +21 -0
- package/dist/cjs/api/resources/billing/client/Client.d.ts +34 -0
- package/dist/cjs/api/resources/billing/client/Client.js +123 -0
- package/dist/cjs/api/resources/billing/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/billing/client/index.js +2 -0
- package/dist/cjs/api/resources/billing/exports.d.ts +2 -0
- package/dist/cjs/api/resources/billing/exports.js +21 -0
- package/dist/cjs/api/resources/billing/index.d.ts +1 -0
- package/dist/cjs/api/resources/billing/index.js +17 -0
- package/dist/cjs/api/resources/commentAutomations/client/Client.d.ts +203 -0
- package/dist/cjs/api/resources/commentAutomations/client/Client.js +682 -0
- package/dist/cjs/api/resources/commentAutomations/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/commentAutomations/client/index.js +17 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/CreateCommentAutomationsRequest.d.ts +95 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/CreateCommentAutomationsRequest.js +18 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/DeleteCommentAutomationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/DeleteCommentAutomationsRequest.js +3 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/GetCommentAutomationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/GetCommentAutomationsRequest.js +3 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/ListCommentAutomationsRequest.d.ts +19 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/ListCommentAutomationsRequest.js +3 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/RunsCommentAutomationsRequest.d.ts +17 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/RunsCommentAutomationsRequest.js +3 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/TestCommentAutomationsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/TestCommentAutomationsRequest.js +3 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/UpdateCommentAutomationsRequest.d.ts +82 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/UpdateCommentAutomationsRequest.js +18 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/index.d.ts +7 -0
- package/dist/cjs/api/resources/commentAutomations/client/requests/index.js +7 -0
- package/dist/cjs/api/resources/commentAutomations/exports.d.ts +2 -0
- package/dist/cjs/api/resources/commentAutomations/exports.js +21 -0
- package/dist/cjs/api/resources/commentAutomations/index.d.ts +2 -0
- package/dist/cjs/api/resources/commentAutomations/index.js +18 -0
- package/dist/cjs/api/resources/commentAutomations/types/DeleteCommentAutomationsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/commentAutomations/types/DeleteCommentAutomationsResponse.js +3 -0
- package/dist/cjs/api/resources/commentAutomations/types/ListCommentAutomationsRequestStatus.d.ts +6 -0
- package/dist/cjs/api/resources/commentAutomations/types/ListCommentAutomationsRequestStatus.js +9 -0
- package/dist/cjs/api/resources/commentAutomations/types/ListCommentAutomationsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/commentAutomations/types/ListCommentAutomationsResponse.js +3 -0
- package/dist/cjs/api/resources/commentAutomations/types/RunsCommentAutomationsRequestStatus.d.ts +10 -0
- package/dist/cjs/api/resources/commentAutomations/types/RunsCommentAutomationsRequestStatus.js +13 -0
- package/dist/cjs/api/resources/commentAutomations/types/RunsCommentAutomationsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/commentAutomations/types/RunsCommentAutomationsResponse.js +3 -0
- package/dist/cjs/api/resources/commentAutomations/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/commentAutomations/types/index.js +21 -0
- package/dist/cjs/api/resources/connect/client/Client.d.ts +46 -0
- package/dist/cjs/api/resources/connect/client/Client.js +149 -0
- package/dist/cjs/api/resources/connect/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/connect/client/index.js +17 -0
- package/dist/cjs/api/resources/connect/client/requests/LinkConnectRequest.d.ts +19 -0
- package/dist/cjs/api/resources/connect/client/requests/LinkConnectRequest.js +3 -0
- package/dist/cjs/api/resources/connect/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/connect/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/connect/exports.d.ts +2 -0
- package/dist/cjs/api/resources/connect/exports.js +21 -0
- package/dist/cjs/api/resources/connect/index.d.ts +2 -0
- package/dist/cjs/api/resources/connect/index.js +18 -0
- package/dist/cjs/api/resources/connect/types/LinkConnectRequestNetwork.d.ts +9 -0
- package/dist/cjs/api/resources/connect/types/LinkConnectRequestNetwork.js +12 -0
- package/dist/cjs/api/resources/connect/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/connect/types/index.js +17 -0
- package/dist/cjs/api/resources/events/client/Client.d.ts +37 -0
- package/dist/cjs/api/resources/events/client/Client.js +152 -0
- package/dist/cjs/api/resources/events/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/events/client/index.js +17 -0
- package/dist/cjs/api/resources/events/client/requests/ListEventsRequest.d.ts +21 -0
- package/dist/cjs/api/resources/events/client/requests/ListEventsRequest.js +3 -0
- package/dist/cjs/api/resources/events/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/events/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/events/exports.d.ts +2 -0
- package/dist/cjs/api/resources/events/exports.js +21 -0
- package/dist/cjs/api/resources/events/index.d.ts +2 -0
- package/dist/cjs/api/resources/events/index.js +18 -0
- package/dist/cjs/api/resources/events/types/ListEventsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/events/types/ListEventsResponse.js +3 -0
- package/dist/cjs/api/resources/events/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/events/types/index.js +17 -0
- package/dist/cjs/api/resources/fields/client/Client.d.ts +118 -0
- package/dist/cjs/api/resources/fields/client/Client.js +394 -0
- package/dist/cjs/api/resources/fields/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/fields/client/index.js +17 -0
- package/dist/cjs/api/resources/fields/client/requests/CreateFieldsRequest.d.ts +42 -0
- package/dist/cjs/api/resources/fields/client/requests/CreateFieldsRequest.js +21 -0
- package/dist/cjs/api/resources/fields/client/requests/DeleteFieldsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/fields/client/requests/DeleteFieldsRequest.js +3 -0
- package/dist/cjs/api/resources/fields/client/requests/ListFieldsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/fields/client/requests/ListFieldsRequest.js +3 -0
- package/dist/cjs/api/resources/fields/client/requests/UpdateFieldsRequest.d.ts +17 -0
- package/dist/cjs/api/resources/fields/client/requests/UpdateFieldsRequest.js +3 -0
- package/dist/cjs/api/resources/fields/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/fields/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/fields/exports.d.ts +2 -0
- package/dist/cjs/api/resources/fields/exports.js +21 -0
- package/dist/cjs/api/resources/fields/index.d.ts +2 -0
- package/dist/cjs/api/resources/fields/index.js +18 -0
- package/dist/cjs/api/resources/fields/types/DeleteFieldsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/fields/types/DeleteFieldsResponse.js +3 -0
- package/dist/cjs/api/resources/fields/types/ListFieldsRequestEntity.d.ts +5 -0
- package/dist/cjs/api/resources/fields/types/ListFieldsRequestEntity.js +8 -0
- package/dist/cjs/api/resources/fields/types/ListFieldsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/fields/types/ListFieldsResponse.js +3 -0
- package/dist/cjs/api/resources/fields/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/fields/types/index.js +19 -0
- package/dist/cjs/api/resources/inbox/client/Client.d.ts +252 -0
- package/dist/cjs/api/resources/inbox/client/Client.js +853 -0
- package/dist/cjs/api/resources/inbox/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/inbox/client/index.js +17 -0
- package/dist/cjs/api/resources/inbox/client/requests/DeleteCommentInboxRequest.d.ts +13 -0
- package/dist/cjs/api/resources/inbox/client/requests/DeleteCommentInboxRequest.js +3 -0
- package/dist/cjs/api/resources/inbox/client/requests/GetInboxRequest.d.ts +14 -0
- package/dist/cjs/api/resources/inbox/client/requests/GetInboxRequest.js +3 -0
- package/dist/cjs/api/resources/inbox/client/requests/HideCommentInboxRequest.d.ts +16 -0
- package/dist/cjs/api/resources/inbox/client/requests/HideCommentInboxRequest.js +3 -0
- package/dist/cjs/api/resources/inbox/client/requests/LikeCommentInboxRequest.d.ts +16 -0
- package/dist/cjs/api/resources/inbox/client/requests/LikeCommentInboxRequest.js +3 -0
- package/dist/cjs/api/resources/inbox/client/requests/ListInboxRequest.d.ts +21 -0
- package/dist/cjs/api/resources/inbox/client/requests/ListInboxRequest.js +3 -0
- package/dist/cjs/api/resources/inbox/client/requests/MarkPostDoneInboxRequest.d.ts +13 -0
- package/dist/cjs/api/resources/inbox/client/requests/MarkPostDoneInboxRequest.js +3 -0
- package/dist/cjs/api/resources/inbox/client/requests/PostsInboxRequest.d.ts +14 -0
- package/dist/cjs/api/resources/inbox/client/requests/PostsInboxRequest.js +3 -0
- package/dist/cjs/api/resources/inbox/client/requests/ReplyInboxRequest.d.ts +15 -0
- package/dist/cjs/api/resources/inbox/client/requests/ReplyInboxRequest.js +3 -0
- package/dist/cjs/api/resources/inbox/client/requests/UpdateInboxRequest.d.ts +25 -0
- package/dist/cjs/api/resources/inbox/client/requests/UpdateInboxRequest.js +12 -0
- package/dist/cjs/api/resources/inbox/client/requests/index.d.ts +9 -0
- package/dist/cjs/api/resources/inbox/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/inbox/exports.d.ts +2 -0
- package/dist/cjs/api/resources/inbox/exports.js +21 -0
- package/dist/cjs/api/resources/inbox/index.d.ts +2 -0
- package/dist/cjs/api/resources/inbox/index.js +18 -0
- package/dist/cjs/api/resources/inbox/types/DeleteCommentInboxResponse.d.ts +6 -0
- package/dist/cjs/api/resources/inbox/types/DeleteCommentInboxResponse.js +3 -0
- package/dist/cjs/api/resources/inbox/types/GetInboxResponse.d.ts +7 -0
- package/dist/cjs/api/resources/inbox/types/GetInboxResponse.js +3 -0
- package/dist/cjs/api/resources/inbox/types/ListInboxRequestKind.d.ts +8 -0
- package/dist/cjs/api/resources/inbox/types/ListInboxRequestKind.js +11 -0
- package/dist/cjs/api/resources/inbox/types/ListInboxRequestStatus.d.ts +6 -0
- package/dist/cjs/api/resources/inbox/types/ListInboxRequestStatus.js +9 -0
- package/dist/cjs/api/resources/inbox/types/ListInboxResponse.d.ts +6 -0
- package/dist/cjs/api/resources/inbox/types/ListInboxResponse.js +3 -0
- package/dist/cjs/api/resources/inbox/types/MarkPostDoneInboxResponse.d.ts +4 -0
- package/dist/cjs/api/resources/inbox/types/MarkPostDoneInboxResponse.js +3 -0
- package/dist/cjs/api/resources/inbox/types/PostsInboxResponse.d.ts +6 -0
- package/dist/cjs/api/resources/inbox/types/PostsInboxResponse.js +3 -0
- package/dist/cjs/api/resources/inbox/types/index.d.ts +7 -0
- package/dist/cjs/api/resources/inbox/types/index.js +23 -0
- package/dist/cjs/api/resources/index.d.ts +44 -0
- package/dist/cjs/api/resources/index.js +83 -0
- package/dist/cjs/api/resources/links/client/Client.d.ts +149 -0
- package/dist/cjs/api/resources/links/client/Client.js +492 -0
- package/dist/cjs/api/resources/links/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/links/client/index.js +17 -0
- package/dist/cjs/api/resources/links/client/requests/CreateLinksRequest.d.ts +39 -0
- package/dist/cjs/api/resources/links/client/requests/CreateLinksRequest.js +3 -0
- package/dist/cjs/api/resources/links/client/requests/DeleteLinksRequest.d.ts +10 -0
- package/dist/cjs/api/resources/links/client/requests/DeleteLinksRequest.js +3 -0
- package/dist/cjs/api/resources/links/client/requests/GetLinksRequest.d.ts +10 -0
- package/dist/cjs/api/resources/links/client/requests/GetLinksRequest.js +3 -0
- package/dist/cjs/api/resources/links/client/requests/ListLinksRequest.d.ts +19 -0
- package/dist/cjs/api/resources/links/client/requests/ListLinksRequest.js +3 -0
- package/dist/cjs/api/resources/links/client/requests/UpdateLinksRequest.d.ts +15 -0
- package/dist/cjs/api/resources/links/client/requests/UpdateLinksRequest.js +3 -0
- package/dist/cjs/api/resources/links/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/links/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/links/exports.d.ts +2 -0
- package/dist/cjs/api/resources/links/exports.js +21 -0
- package/dist/cjs/api/resources/links/index.d.ts +2 -0
- package/dist/cjs/api/resources/links/index.js +18 -0
- package/dist/cjs/api/resources/links/types/DeleteLinksResponse.d.ts +3 -0
- package/dist/cjs/api/resources/links/types/DeleteLinksResponse.js +3 -0
- package/dist/cjs/api/resources/links/types/GetLinksResponse.d.ts +40 -0
- package/dist/cjs/api/resources/links/types/GetLinksResponse.js +14 -0
- package/dist/cjs/api/resources/links/types/ListLinksRequestSourceType.d.ts +6 -0
- package/dist/cjs/api/resources/links/types/ListLinksRequestSourceType.js +9 -0
- package/dist/cjs/api/resources/links/types/ListLinksResponse.d.ts +6 -0
- package/dist/cjs/api/resources/links/types/ListLinksResponse.js +3 -0
- package/dist/cjs/api/resources/links/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/links/types/index.js +20 -0
- package/dist/cjs/api/resources/media/client/Client.d.ts +72 -0
- package/dist/cjs/api/resources/media/client/Client.js +225 -0
- package/dist/cjs/api/resources/media/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/media/client/index.js +17 -0
- package/dist/cjs/api/resources/media/client/requests/CreateMediaRequest.d.ts +33 -0
- package/dist/cjs/api/resources/media/client/requests/CreateMediaRequest.js +16 -0
- package/dist/cjs/api/resources/media/client/requests/GetMediaRequest.d.ts +10 -0
- package/dist/cjs/api/resources/media/client/requests/GetMediaRequest.js +3 -0
- package/dist/cjs/api/resources/media/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/media/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/media/exports.d.ts +2 -0
- package/dist/cjs/api/resources/media/exports.js +21 -0
- package/dist/cjs/api/resources/media/index.d.ts +2 -0
- package/dist/cjs/api/resources/media/index.js +18 -0
- package/dist/cjs/api/resources/media/types/CreateMediaResponse.d.ts +41 -0
- package/dist/cjs/api/resources/media/types/CreateMediaResponse.js +25 -0
- package/dist/cjs/api/resources/media/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/media/types/index.js +17 -0
- package/dist/cjs/api/resources/members/client/Client.d.ts +31 -0
- package/dist/cjs/api/resources/members/client/Client.js +120 -0
- package/dist/cjs/api/resources/members/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/members/client/index.js +2 -0
- package/dist/cjs/api/resources/members/exports.d.ts +2 -0
- package/dist/cjs/api/resources/members/exports.js +21 -0
- package/dist/cjs/api/resources/members/index.d.ts +2 -0
- package/dist/cjs/api/resources/members/index.js +18 -0
- package/dist/cjs/api/resources/members/types/ListMembersResponse.d.ts +4 -0
- package/dist/cjs/api/resources/members/types/ListMembersResponse.js +3 -0
- package/dist/cjs/api/resources/members/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/members/types/index.js +17 -0
- package/dist/cjs/api/resources/networkPosts/client/Client.d.ts +84 -0
- package/dist/cjs/api/resources/networkPosts/client/Client.js +310 -0
- package/dist/cjs/api/resources/networkPosts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/networkPosts/client/index.js +17 -0
- package/dist/cjs/api/resources/networkPosts/client/requests/GetNetworkPostsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/networkPosts/client/requests/GetNetworkPostsRequest.js +3 -0
- package/dist/cjs/api/resources/networkPosts/client/requests/ListNetworkPostsRequest.d.ts +27 -0
- package/dist/cjs/api/resources/networkPosts/client/requests/ListNetworkPostsRequest.js +3 -0
- package/dist/cjs/api/resources/networkPosts/client/requests/TimelineNetworkPostsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/networkPosts/client/requests/TimelineNetworkPostsRequest.js +3 -0
- package/dist/cjs/api/resources/networkPosts/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/networkPosts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/networkPosts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/networkPosts/exports.js +21 -0
- package/dist/cjs/api/resources/networkPosts/index.d.ts +2 -0
- package/dist/cjs/api/resources/networkPosts/index.js +18 -0
- package/dist/cjs/api/resources/networkPosts/types/ListNetworkPostsRequestDeleted.d.ts +7 -0
- package/dist/cjs/api/resources/networkPosts/types/ListNetworkPostsRequestDeleted.js +10 -0
- package/dist/cjs/api/resources/networkPosts/types/ListNetworkPostsRequestOrigin.d.ts +6 -0
- package/dist/cjs/api/resources/networkPosts/types/ListNetworkPostsRequestOrigin.js +9 -0
- package/dist/cjs/api/resources/networkPosts/types/ListNetworkPostsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/networkPosts/types/ListNetworkPostsResponse.js +3 -0
- package/dist/cjs/api/resources/networkPosts/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/networkPosts/types/index.js +19 -0
- package/dist/cjs/api/resources/posts/client/Client.d.ts +308 -0
- package/dist/cjs/api/resources/posts/client/Client.js +940 -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/CreatePostsRequest.d.ts +93 -0
- package/dist/cjs/api/resources/posts/client/requests/CreatePostsRequest.js +12 -0
- package/dist/cjs/api/resources/posts/client/requests/DeletePostsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/posts/client/requests/DeletePostsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/posts/client/requests/GetPostsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/ListPostsRequest.d.ts +31 -0
- package/dist/cjs/api/resources/posts/client/requests/ListPostsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/PublishPostsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/posts/client/requests/PublishPostsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/RestorePostsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/posts/client/requests/RestorePostsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/SharePostsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/posts/client/requests/SharePostsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/UnsharePostsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/posts/client/requests/UnsharePostsRequest.js +3 -0
- package/dist/cjs/api/resources/posts/client/requests/UpdatePostsRequest.d.ts +80 -0
- package/dist/cjs/api/resources/posts/client/requests/UpdatePostsRequest.js +12 -0
- package/dist/cjs/api/resources/posts/client/requests/ValidatePostsRequest.d.ts +88 -0
- package/dist/cjs/api/resources/posts/client/requests/ValidatePostsRequest.js +12 -0
- package/dist/cjs/api/resources/posts/client/requests/index.d.ts +10 -0
- package/dist/cjs/api/resources/posts/client/requests/index.js +9 -0
- package/dist/cjs/api/resources/posts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/posts/exports.js +21 -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/ListPostsRequestDeleted.d.ts +7 -0
- package/dist/cjs/api/resources/posts/types/ListPostsRequestDeleted.js +10 -0
- package/dist/cjs/api/resources/posts/types/ListPostsRequestOrder.d.ts +6 -0
- package/dist/cjs/api/resources/posts/types/ListPostsRequestOrder.js +9 -0
- package/dist/cjs/api/resources/posts/types/ListPostsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/posts/types/ListPostsResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/SharePostsResponse.d.ts +5 -0
- package/dist/cjs/api/resources/posts/types/SharePostsResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/UpdatePostsResponse.d.ts +31 -0
- package/dist/cjs/api/resources/posts/types/UpdatePostsResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/ValidatePostsResponse.d.ts +35 -0
- package/dist/cjs/api/resources/posts/types/ValidatePostsResponse.js +3 -0
- package/dist/cjs/api/resources/posts/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/posts/types/index.js +22 -0
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +175 -0
- package/dist/cjs/api/resources/profiles/client/Client.js +553 -0
- package/dist/cjs/api/resources/profiles/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/client/index.js +17 -0
- package/dist/cjs/api/resources/profiles/client/requests/CreateProfilesRequest.d.ts +15 -0
- package/dist/cjs/api/resources/profiles/client/requests/CreateProfilesRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/client/requests/DeleteProfilesRequest.d.ts +10 -0
- package/dist/cjs/api/resources/profiles/client/requests/DeleteProfilesRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/client/requests/QueueProfilesRequest.d.ts +12 -0
- package/dist/cjs/api/resources/profiles/client/requests/QueueProfilesRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/client/requests/SetQueueProfilesRequest.d.ts +23 -0
- package/dist/cjs/api/resources/profiles/client/requests/SetQueueProfilesRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/client/requests/UpdateProfilesRequest.d.ts +17 -0
- package/dist/cjs/api/resources/profiles/client/requests/UpdateProfilesRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/profiles/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/profiles/exports.d.ts +2 -0
- package/dist/cjs/api/resources/profiles/exports.js +21 -0
- package/dist/cjs/api/resources/profiles/index.d.ts +2 -0
- package/dist/cjs/api/resources/profiles/index.js +18 -0
- package/dist/cjs/api/resources/profiles/types/DeleteProfilesResponse.d.ts +3 -0
- package/dist/cjs/api/resources/profiles/types/DeleteProfilesResponse.js +3 -0
- package/dist/cjs/api/resources/profiles/types/ListProfilesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/profiles/types/ListProfilesResponse.js +3 -0
- package/dist/cjs/api/resources/profiles/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/profiles/types/index.js +18 -0
- package/dist/cjs/api/resources/uploads/client/Client.d.ts +67 -0
- package/dist/cjs/api/resources/uploads/client/Client.js +218 -0
- package/dist/cjs/api/resources/uploads/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/uploads/client/index.js +17 -0
- package/dist/cjs/api/resources/uploads/client/requests/CreateUploadsRequest.d.ts +16 -0
- package/dist/cjs/api/resources/uploads/client/requests/CreateUploadsRequest.js +3 -0
- package/dist/cjs/api/resources/uploads/client/requests/GetUploadsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/uploads/client/requests/GetUploadsRequest.js +3 -0
- package/dist/cjs/api/resources/uploads/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/uploads/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/uploads/exports.d.ts +2 -0
- package/dist/cjs/api/resources/uploads/exports.js +21 -0
- package/dist/cjs/api/resources/uploads/index.d.ts +1 -0
- package/dist/cjs/api/resources/uploads/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +246 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +809 -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/CreateWebhooksRequest.d.ts +19 -0
- package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhooksRequest.d.ts +10 -0
- package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/DeliveriesWebhooksRequest.d.ts +17 -0
- package/dist/cjs/api/resources/webhooks/client/requests/DeliveriesWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/ReplayRangeWebhooksRequest.d.ts +27 -0
- package/dist/cjs/api/resources/webhooks/client/requests/ReplayRangeWebhooksRequest.js +12 -0
- package/dist/cjs/api/resources/webhooks/client/requests/ReplayWebhooksRequest.d.ts +10 -0
- package/dist/cjs/api/resources/webhooks/client/requests/ReplayWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.d.ts +10 -0
- package/dist/cjs/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/TestWebhooksRequest.d.ts +10 -0
- package/dist/cjs/api/resources/webhooks/client/requests/TestWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.ts +21 -0
- package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +8 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/webhooks/exports.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/exports.js +21 -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/DeleteWebhooksResponse.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/types/DeleteWebhooksResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/DeliveriesWebhooksRequestStatus.d.ts +8 -0
- package/dist/cjs/api/resources/webhooks/types/DeliveriesWebhooksRequestStatus.js +11 -0
- package/dist/cjs/api/resources/webhooks/types/DeliveriesWebhooksResponse.d.ts +6 -0
- package/dist/cjs/api/resources/webhooks/types/DeliveriesWebhooksResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/ListWebhooksResponse.d.ts +4 -0
- package/dist/cjs/api/resources/webhooks/types/ListWebhooksResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/webhooks/types/index.js +20 -0
- package/dist/cjs/api/types/Account.d.ts +31 -0
- package/dist/cjs/api/types/Account.js +13 -0
- package/dist/cjs/api/types/AccountAudience.d.ts +18 -0
- package/dist/cjs/api/types/AccountAudience.js +3 -0
- package/dist/cjs/api/types/AccountBilling.d.ts +7 -0
- package/dist/cjs/api/types/AccountBilling.js +10 -0
- package/dist/cjs/api/types/AccountRemoval.d.ts +45 -0
- package/dist/cjs/api/types/AccountRemoval.js +3 -0
- package/dist/cjs/api/types/AccountRemoved.d.ts +46 -0
- package/dist/cjs/api/types/AccountRemoved.js +3 -0
- package/dist/cjs/api/types/ActiveHours.d.ts +20 -0
- package/dist/cjs/api/types/ActiveHours.js +3 -0
- package/dist/cjs/api/types/Actor.d.ts +51 -0
- package/dist/cjs/api/types/Actor.js +23 -0
- package/dist/cjs/api/types/AnalyticsNote.d.ts +7 -0
- package/dist/cjs/api/types/AnalyticsNote.js +3 -0
- package/dist/cjs/api/types/AnalyticsOverview.d.ts +169 -0
- package/dist/cjs/api/types/AnalyticsOverview.js +12 -0
- package/dist/cjs/api/types/Audience.d.ts +5 -0
- package/dist/cjs/api/types/Audience.js +3 -0
- package/dist/cjs/api/types/AudienceBreakdowns.d.ts +17 -0
- package/dist/cjs/api/types/AudienceBreakdowns.js +3 -0
- package/dist/cjs/api/types/AudienceShare.d.ts +8 -0
- package/dist/cjs/api/types/AudienceShare.js +3 -0
- package/dist/cjs/api/types/Billing.d.ts +72 -0
- package/dist/cjs/api/types/Billing.js +31 -0
- package/dist/cjs/api/types/Capability.d.ts +13 -0
- package/dist/cjs/api/types/Capability.js +16 -0
- package/dist/cjs/api/types/ChainPart.d.ts +6 -0
- package/dist/cjs/api/types/ChainPart.js +3 -0
- package/dist/cjs/api/types/ChainPartResult.d.ts +15 -0
- package/dist/cjs/api/types/ChainPartResult.js +13 -0
- package/dist/cjs/api/types/CommentAutomation.d.ts +150 -0
- package/dist/cjs/api/types/CommentAutomation.js +35 -0
- package/dist/cjs/api/types/CommentAutomationRun.d.ts +59 -0
- package/dist/cjs/api/types/CommentAutomationRun.js +30 -0
- package/dist/cjs/api/types/CommentAutomationTest.d.ts +54 -0
- package/dist/cjs/api/types/CommentAutomationTest.js +3 -0
- package/dist/cjs/api/types/ConnectLink.d.ts +14 -0
- package/dist/cjs/api/types/ConnectLink.js +3 -0
- package/dist/cjs/api/types/Contact.d.ts +8 -0
- package/dist/cjs/api/types/Contact.js +3 -0
- package/dist/cjs/api/types/DetailsAt.d.ts +6 -0
- package/dist/cjs/api/types/DetailsAt.js +3 -0
- package/dist/cjs/api/types/Error_.d.ts +40 -0
- package/dist/cjs/api/types/Error_.js +31 -0
- package/dist/cjs/api/types/Event.d.ts +28 -0
- package/dist/cjs/api/types/Event.js +16 -0
- package/dist/cjs/api/types/EventType.d.ts +25 -0
- package/dist/cjs/api/types/EventType.js +28 -0
- package/dist/cjs/api/types/FieldDefinition.d.ts +24 -0
- package/dist/cjs/api/types/FieldDefinition.js +19 -0
- package/dist/cjs/api/types/InboxPost.d.ts +12 -0
- package/dist/cjs/api/types/InboxPost.js +3 -0
- package/dist/cjs/api/types/Kpi.d.ts +5 -0
- package/dist/cjs/api/types/Kpi.js +3 -0
- package/dist/cjs/api/types/Link.d.ts +39 -0
- package/dist/cjs/api/types/Link.js +14 -0
- package/dist/cjs/api/types/LinkStats.d.ts +22 -0
- package/dist/cjs/api/types/LinkStats.js +3 -0
- package/dist/cjs/api/types/Media.d.ts +38 -0
- package/dist/cjs/api/types/Media.js +19 -0
- package/dist/cjs/api/types/MediaChange.d.ts +21 -0
- package/dist/cjs/api/types/MediaChange.js +19 -0
- package/dist/cjs/api/types/Message.d.ts +35 -0
- package/dist/cjs/api/types/Message.js +16 -0
- package/dist/cjs/api/types/MusicTrack.d.ts +24 -0
- package/dist/cjs/api/types/MusicTrack.js +12 -0
- package/dist/cjs/api/types/Network.d.ts +12 -0
- package/dist/cjs/api/types/Network.js +15 -0
- package/dist/cjs/api/types/NetworkPost.d.ts +47 -0
- package/dist/cjs/api/types/NetworkPost.js +16 -0
- package/dist/cjs/api/types/NetworkPostTimeline.d.ts +45 -0
- package/dist/cjs/api/types/NetworkPostTimeline.js +18 -0
- package/dist/cjs/api/types/Post.d.ts +29 -0
- package/dist/cjs/api/types/Post.js +3 -0
- package/dist/cjs/api/types/PostDetails.d.ts +79 -0
- package/dist/cjs/api/types/PostDetails.js +28 -0
- package/dist/cjs/api/types/PostFormat.d.ts +13 -0
- package/dist/cjs/api/types/PostFormat.js +16 -0
- package/dist/cjs/api/types/PostMetrics.d.ts +25 -0
- package/dist/cjs/api/types/PostMetrics.js +3 -0
- package/dist/cjs/api/types/PostResult.d.ts +35 -0
- package/dist/cjs/api/types/PostResult.js +3 -0
- package/dist/cjs/api/types/PostStatus.d.ts +9 -0
- package/dist/cjs/api/types/PostStatus.js +12 -0
- package/dist/cjs/api/types/PostTarget.d.ts +64 -0
- package/dist/cjs/api/types/PostTarget.js +33 -0
- package/dist/cjs/api/types/Profile.d.ts +8 -0
- package/dist/cjs/api/types/Profile.js +3 -0
- package/dist/cjs/api/types/Queue.d.ts +30 -0
- package/dist/cjs/api/types/Queue.js +3 -0
- package/dist/cjs/api/types/QueueSlot.d.ts +17 -0
- package/dist/cjs/api/types/QueueSlot.js +16 -0
- package/dist/cjs/api/types/TargetEdit.d.ts +19 -0
- package/dist/cjs/api/types/TargetEdit.js +14 -0
- package/dist/cjs/api/types/TargetOptions.d.ts +304 -0
- package/dist/cjs/api/types/TargetOptions.js +100 -0
- package/dist/cjs/api/types/Teammate.d.ts +18 -0
- package/dist/cjs/api/types/Teammate.js +13 -0
- package/dist/cjs/api/types/Thread.d.ts +47 -0
- package/dist/cjs/api/types/Thread.js +24 -0
- package/dist/cjs/api/types/TikTokCreatorInfo.d.ts +29 -0
- package/dist/cjs/api/types/TikTokCreatorInfo.js +16 -0
- package/dist/cjs/api/types/UploadRequest.d.ts +24 -0
- package/dist/cjs/api/types/UploadRequest.js +13 -0
- package/dist/cjs/api/types/WebhookAttempt.d.ts +23 -0
- package/dist/cjs/api/types/WebhookAttempt.js +17 -0
- package/dist/cjs/api/types/WebhookDelivery.d.ts +34 -0
- package/dist/cjs/api/types/WebhookDelivery.js +14 -0
- package/dist/cjs/api/types/WebhookEndpoint.d.ts +55 -0
- package/dist/cjs/api/types/WebhookEndpoint.js +24 -0
- package/dist/cjs/api/types/WebhookEventType.d.ts +25 -0
- package/dist/cjs/api/types/WebhookEventType.js +28 -0
- package/dist/cjs/api/types/WebhookReplay.d.ts +10 -0
- package/dist/cjs/api/types/WebhookReplay.js +3 -0
- package/dist/cjs/api/types/WebhookSecret.d.ts +6 -0
- package/dist/cjs/api/types/WebhookSecret.js +3 -0
- package/dist/cjs/api/types/index.d.ts +59 -0
- package/dist/cjs/api/types/index.js +75 -0
- package/dist/cjs/auth/BearerAuthProvider.d.ts +20 -0
- package/dist/cjs/auth/BearerAuthProvider.js +82 -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 +8 -0
- package/dist/cjs/core/auth/AuthProvider.js +9 -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 +33 -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 +11 -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 +2 -0
- package/dist/cjs/core/exports.js +18 -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 +56 -0
- package/dist/cjs/core/fetcher/Fetcher.js +274 -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 +58 -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 +17 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +85 -0
- package/dist/cjs/core/fetcher/index.d.ts +13 -0
- package/dist/cjs/core/fetcher/index.js +19 -0
- package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/cjs/core/fetcher/makePassthroughRequest.js +173 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +11 -0
- package/dist/cjs/core/fetcher/makeRequest.js +94 -0
- package/dist/cjs/core/fetcher/redactUrl.d.ts +2 -0
- package/dist/cjs/core/fetcher/redactUrl.js +88 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +91 -0
- package/dist/cjs/core/fetcher/signals.d.ts +6 -0
- package/dist/cjs/core/fetcher/signals.js +33 -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 +8 -0
- package/dist/cjs/core/index.js +47 -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/pagination/Page.d.ts +33 -0
- package/dist/cjs/core/pagination/Page.js +101 -0
- package/dist/cjs/core/pagination/exports.d.ts +1 -0
- package/dist/cjs/core/pagination/exports.js +2 -0
- package/dist/cjs/core/pagination/index.d.ts +1 -0
- package/dist/cjs/core/pagination/index.js +5 -0
- package/dist/cjs/core/requestBody.d.ts +12 -0
- package/dist/cjs/core/requestBody.js +26 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +6 -0
- package/dist/cjs/core/runtime/runtime.d.ts +28 -0
- package/dist/cjs/core/runtime/runtime.js +176 -0
- package/dist/cjs/core/url/QueryStringBuilder.d.ts +47 -0
- package/dist/cjs/core/url/QueryStringBuilder.js +83 -0
- package/dist/cjs/core/url/encodePathParam.d.ts +3 -0
- package/dist/cjs/core/url/encodePathParam.js +27 -0
- package/dist/cjs/core/url/index.d.ts +4 -0
- package/dist/cjs/core/url/index.js +11 -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 +7 -0
- package/dist/cjs/core/url/qs.js +76 -0
- package/dist/cjs/core/utils/index.d.ts +1 -0
- package/dist/cjs/core/utils/index.js +5 -0
- package/dist/cjs/core/utils/setObjectProperty.d.ts +12 -0
- package/dist/cjs/core/utils/setObjectProperty.js +48 -0
- package/dist/cjs/environments.d.ts +4 -0
- package/dist/cjs/environments.js +7 -0
- package/dist/cjs/errors/RizamoError.d.ts +15 -0
- package/dist/cjs/errors/RizamoError.js +53 -0
- package/dist/cjs/errors/RizamoTimeoutError.d.ts +6 -0
- package/dist/cjs/errors/RizamoTimeoutError.js +52 -0
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/cjs/errors/handleNonStatusCodeError.js +68 -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 +57 -0
- package/dist/esm/BaseClient.mjs +40 -0
- package/dist/esm/Client.d.mts +71 -0
- package/dist/esm/Client.mjs +121 -0
- package/dist/esm/api/errors/BadGatewayError.d.mts +7 -0
- package/dist/esm/api/errors/BadGatewayError.mjs +17 -0
- package/dist/esm/api/errors/BadRequestError.d.mts +7 -0
- package/dist/esm/api/errors/BadRequestError.mjs +17 -0
- package/dist/esm/api/errors/ConflictError.d.mts +7 -0
- package/dist/esm/api/errors/ConflictError.mjs +17 -0
- package/dist/esm/api/errors/ContentTooLargeError.d.mts +7 -0
- package/dist/esm/api/errors/ContentTooLargeError.mjs +17 -0
- package/dist/esm/api/errors/ForbiddenError.d.mts +7 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +17 -0
- package/dist/esm/api/errors/InternalServerError.d.mts +7 -0
- package/dist/esm/api/errors/InternalServerError.mjs +17 -0
- package/dist/esm/api/errors/NotFoundError.d.mts +7 -0
- package/dist/esm/api/errors/NotFoundError.mjs +17 -0
- package/dist/esm/api/errors/NotImplementedError.d.mts +7 -0
- package/dist/esm/api/errors/NotImplementedError.mjs +17 -0
- package/dist/esm/api/errors/ServiceUnavailableError.d.mts +7 -0
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +17 -0
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +7 -0
- package/dist/esm/api/errors/TooManyRequestsError.mjs +17 -0
- package/dist/esm/api/errors/UnauthorizedError.d.mts +7 -0
- package/dist/esm/api/errors/UnauthorizedError.mjs +17 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +7 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +17 -0
- package/dist/esm/api/errors/UnsupportedMediaTypeError.d.mts +7 -0
- package/dist/esm/api/errors/UnsupportedMediaTypeError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +13 -0
- package/dist/esm/api/errors/index.mjs +13 -0
- package/dist/esm/api/index.d.mts +3 -0
- package/dist/esm/api/index.mjs +3 -0
- package/dist/esm/api/resources/accounts/client/Client.d.mts +191 -0
- package/dist/esm/api/resources/accounts/client/Client.mjs +609 -0
- package/dist/esm/api/resources/accounts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/accounts/client/index.mjs +1 -0
- package/dist/esm/api/resources/accounts/client/requests/GetAccountsRequest.d.mts +10 -0
- package/dist/esm/api/resources/accounts/client/requests/GetAccountsRequest.mjs +2 -0
- package/dist/esm/api/resources/accounts/client/requests/ListAccountsRequest.d.mts +17 -0
- package/dist/esm/api/resources/accounts/client/requests/ListAccountsRequest.mjs +2 -0
- package/dist/esm/api/resources/accounts/client/requests/RemovalAccountsRequest.d.mts +10 -0
- package/dist/esm/api/resources/accounts/client/requests/RemovalAccountsRequest.mjs +2 -0
- package/dist/esm/api/resources/accounts/client/requests/RemoveAccountsRequest.d.mts +10 -0
- package/dist/esm/api/resources/accounts/client/requests/RemoveAccountsRequest.mjs +2 -0
- package/dist/esm/api/resources/accounts/client/requests/SearchMusicAccountsRequest.d.mts +22 -0
- package/dist/esm/api/resources/accounts/client/requests/SearchMusicAccountsRequest.mjs +2 -0
- package/dist/esm/api/resources/accounts/client/requests/TiktokCreatorInfoAccountsRequest.d.mts +10 -0
- package/dist/esm/api/resources/accounts/client/requests/TiktokCreatorInfoAccountsRequest.mjs +2 -0
- package/dist/esm/api/resources/accounts/client/requests/UpdateAccountsRequest.d.mts +13 -0
- package/dist/esm/api/resources/accounts/client/requests/UpdateAccountsRequest.mjs +2 -0
- package/dist/esm/api/resources/accounts/client/requests/index.d.mts +7 -0
- package/dist/esm/api/resources/accounts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/accounts/exports.d.mts +2 -0
- package/dist/esm/api/resources/accounts/exports.mjs +3 -0
- package/dist/esm/api/resources/accounts/index.d.mts +2 -0
- package/dist/esm/api/resources/accounts/index.mjs +2 -0
- package/dist/esm/api/resources/accounts/types/ListAccountsRequestStatus.d.mts +7 -0
- package/dist/esm/api/resources/accounts/types/ListAccountsRequestStatus.mjs +7 -0
- package/dist/esm/api/resources/accounts/types/ListAccountsResponse.d.mts +6 -0
- package/dist/esm/api/resources/accounts/types/ListAccountsResponse.mjs +2 -0
- package/dist/esm/api/resources/accounts/types/SearchMusicAccountsRequestGenre.d.mts +114 -0
- package/dist/esm/api/resources/accounts/types/SearchMusicAccountsRequestGenre.mjs +114 -0
- package/dist/esm/api/resources/accounts/types/SearchMusicAccountsRequestPeriod.d.mts +8 -0
- package/dist/esm/api/resources/accounts/types/SearchMusicAccountsRequestPeriod.mjs +8 -0
- package/dist/esm/api/resources/accounts/types/SearchMusicAccountsRequestType.d.mts +6 -0
- package/dist/esm/api/resources/accounts/types/SearchMusicAccountsRequestType.mjs +6 -0
- package/dist/esm/api/resources/accounts/types/SearchMusicAccountsResponse.d.mts +4 -0
- package/dist/esm/api/resources/accounts/types/SearchMusicAccountsResponse.mjs +2 -0
- package/dist/esm/api/resources/accounts/types/index.d.mts +6 -0
- package/dist/esm/api/resources/accounts/types/index.mjs +6 -0
- package/dist/esm/api/resources/analytics/client/Client.d.mts +85 -0
- package/dist/esm/api/resources/analytics/client/Client.mjs +277 -0
- package/dist/esm/api/resources/analytics/client/index.d.mts +1 -0
- package/dist/esm/api/resources/analytics/client/index.mjs +1 -0
- package/dist/esm/api/resources/analytics/client/requests/AudienceAnalyticsRequest.d.mts +12 -0
- package/dist/esm/api/resources/analytics/client/requests/AudienceAnalyticsRequest.mjs +2 -0
- package/dist/esm/api/resources/analytics/client/requests/OverviewAnalyticsRequest.d.mts +25 -0
- package/dist/esm/api/resources/analytics/client/requests/OverviewAnalyticsRequest.mjs +2 -0
- package/dist/esm/api/resources/analytics/client/requests/PostsAnalyticsRequest.d.mts +29 -0
- package/dist/esm/api/resources/analytics/client/requests/PostsAnalyticsRequest.mjs +2 -0
- package/dist/esm/api/resources/analytics/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/analytics/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/analytics/exports.d.mts +2 -0
- package/dist/esm/api/resources/analytics/exports.mjs +3 -0
- package/dist/esm/api/resources/analytics/index.d.mts +2 -0
- package/dist/esm/api/resources/analytics/index.mjs +2 -0
- package/dist/esm/api/resources/analytics/types/OverviewAnalyticsRequestAttribution.d.mts +6 -0
- package/dist/esm/api/resources/analytics/types/OverviewAnalyticsRequestAttribution.mjs +6 -0
- package/dist/esm/api/resources/analytics/types/OverviewAnalyticsRequestInterval.d.mts +7 -0
- package/dist/esm/api/resources/analytics/types/OverviewAnalyticsRequestInterval.mjs +7 -0
- package/dist/esm/api/resources/analytics/types/PostsAnalyticsRequestOrder.d.mts +6 -0
- package/dist/esm/api/resources/analytics/types/PostsAnalyticsRequestOrder.mjs +6 -0
- package/dist/esm/api/resources/analytics/types/PostsAnalyticsRequestSort.d.mts +9 -0
- package/dist/esm/api/resources/analytics/types/PostsAnalyticsRequestSort.mjs +9 -0
- package/dist/esm/api/resources/analytics/types/PostsAnalyticsResponse.d.mts +10 -0
- package/dist/esm/api/resources/analytics/types/PostsAnalyticsResponse.mjs +2 -0
- package/dist/esm/api/resources/analytics/types/index.d.mts +5 -0
- package/dist/esm/api/resources/analytics/types/index.mjs +5 -0
- package/dist/esm/api/resources/billing/client/Client.d.mts +34 -0
- package/dist/esm/api/resources/billing/client/Client.mjs +86 -0
- package/dist/esm/api/resources/billing/client/index.d.mts +1 -0
- package/dist/esm/api/resources/billing/client/index.mjs +1 -0
- package/dist/esm/api/resources/billing/exports.d.mts +2 -0
- package/dist/esm/api/resources/billing/exports.mjs +3 -0
- package/dist/esm/api/resources/billing/index.d.mts +1 -0
- package/dist/esm/api/resources/billing/index.mjs +1 -0
- package/dist/esm/api/resources/commentAutomations/client/Client.d.mts +203 -0
- package/dist/esm/api/resources/commentAutomations/client/Client.mjs +645 -0
- package/dist/esm/api/resources/commentAutomations/client/index.d.mts +1 -0
- package/dist/esm/api/resources/commentAutomations/client/index.mjs +1 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/CreateCommentAutomationsRequest.d.mts +95 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/CreateCommentAutomationsRequest.mjs +15 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/DeleteCommentAutomationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/DeleteCommentAutomationsRequest.mjs +2 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/GetCommentAutomationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/GetCommentAutomationsRequest.mjs +2 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/ListCommentAutomationsRequest.d.mts +19 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/ListCommentAutomationsRequest.mjs +2 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/RunsCommentAutomationsRequest.d.mts +17 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/RunsCommentAutomationsRequest.mjs +2 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/TestCommentAutomationsRequest.d.mts +13 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/TestCommentAutomationsRequest.mjs +2 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/UpdateCommentAutomationsRequest.d.mts +82 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/UpdateCommentAutomationsRequest.mjs +15 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/index.d.mts +7 -0
- package/dist/esm/api/resources/commentAutomations/client/requests/index.mjs +2 -0
- package/dist/esm/api/resources/commentAutomations/exports.d.mts +2 -0
- package/dist/esm/api/resources/commentAutomations/exports.mjs +3 -0
- package/dist/esm/api/resources/commentAutomations/index.d.mts +2 -0
- package/dist/esm/api/resources/commentAutomations/index.mjs +2 -0
- package/dist/esm/api/resources/commentAutomations/types/DeleteCommentAutomationsResponse.d.mts +3 -0
- package/dist/esm/api/resources/commentAutomations/types/DeleteCommentAutomationsResponse.mjs +2 -0
- package/dist/esm/api/resources/commentAutomations/types/ListCommentAutomationsRequestStatus.d.mts +6 -0
- package/dist/esm/api/resources/commentAutomations/types/ListCommentAutomationsRequestStatus.mjs +6 -0
- package/dist/esm/api/resources/commentAutomations/types/ListCommentAutomationsResponse.d.mts +6 -0
- package/dist/esm/api/resources/commentAutomations/types/ListCommentAutomationsResponse.mjs +2 -0
- package/dist/esm/api/resources/commentAutomations/types/RunsCommentAutomationsRequestStatus.d.mts +10 -0
- package/dist/esm/api/resources/commentAutomations/types/RunsCommentAutomationsRequestStatus.mjs +10 -0
- package/dist/esm/api/resources/commentAutomations/types/RunsCommentAutomationsResponse.d.mts +6 -0
- package/dist/esm/api/resources/commentAutomations/types/RunsCommentAutomationsResponse.mjs +2 -0
- package/dist/esm/api/resources/commentAutomations/types/index.d.mts +5 -0
- package/dist/esm/api/resources/commentAutomations/types/index.mjs +5 -0
- package/dist/esm/api/resources/connect/client/Client.d.mts +46 -0
- package/dist/esm/api/resources/connect/client/Client.mjs +112 -0
- package/dist/esm/api/resources/connect/client/index.d.mts +1 -0
- package/dist/esm/api/resources/connect/client/index.mjs +1 -0
- package/dist/esm/api/resources/connect/client/requests/LinkConnectRequest.d.mts +19 -0
- package/dist/esm/api/resources/connect/client/requests/LinkConnectRequest.mjs +2 -0
- package/dist/esm/api/resources/connect/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/connect/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/connect/exports.d.mts +2 -0
- package/dist/esm/api/resources/connect/exports.mjs +3 -0
- package/dist/esm/api/resources/connect/index.d.mts +2 -0
- package/dist/esm/api/resources/connect/index.mjs +2 -0
- package/dist/esm/api/resources/connect/types/LinkConnectRequestNetwork.d.mts +9 -0
- package/dist/esm/api/resources/connect/types/LinkConnectRequestNetwork.mjs +9 -0
- package/dist/esm/api/resources/connect/types/index.d.mts +1 -0
- package/dist/esm/api/resources/connect/types/index.mjs +1 -0
- package/dist/esm/api/resources/events/client/Client.d.mts +37 -0
- package/dist/esm/api/resources/events/client/Client.mjs +115 -0
- package/dist/esm/api/resources/events/client/index.d.mts +1 -0
- package/dist/esm/api/resources/events/client/index.mjs +1 -0
- package/dist/esm/api/resources/events/client/requests/ListEventsRequest.d.mts +21 -0
- package/dist/esm/api/resources/events/client/requests/ListEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/events/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/events/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/events/exports.d.mts +2 -0
- package/dist/esm/api/resources/events/exports.mjs +3 -0
- package/dist/esm/api/resources/events/index.d.mts +2 -0
- package/dist/esm/api/resources/events/index.mjs +2 -0
- package/dist/esm/api/resources/events/types/ListEventsResponse.d.mts +6 -0
- package/dist/esm/api/resources/events/types/ListEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/events/types/index.d.mts +1 -0
- package/dist/esm/api/resources/events/types/index.mjs +1 -0
- package/dist/esm/api/resources/fields/client/Client.d.mts +118 -0
- package/dist/esm/api/resources/fields/client/Client.mjs +357 -0
- package/dist/esm/api/resources/fields/client/index.d.mts +1 -0
- package/dist/esm/api/resources/fields/client/index.mjs +1 -0
- package/dist/esm/api/resources/fields/client/requests/CreateFieldsRequest.d.mts +42 -0
- package/dist/esm/api/resources/fields/client/requests/CreateFieldsRequest.mjs +18 -0
- package/dist/esm/api/resources/fields/client/requests/DeleteFieldsRequest.d.mts +10 -0
- package/dist/esm/api/resources/fields/client/requests/DeleteFieldsRequest.mjs +2 -0
- package/dist/esm/api/resources/fields/client/requests/ListFieldsRequest.d.mts +9 -0
- package/dist/esm/api/resources/fields/client/requests/ListFieldsRequest.mjs +2 -0
- package/dist/esm/api/resources/fields/client/requests/UpdateFieldsRequest.d.mts +17 -0
- package/dist/esm/api/resources/fields/client/requests/UpdateFieldsRequest.mjs +2 -0
- package/dist/esm/api/resources/fields/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/fields/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/fields/exports.d.mts +2 -0
- package/dist/esm/api/resources/fields/exports.mjs +3 -0
- package/dist/esm/api/resources/fields/index.d.mts +2 -0
- package/dist/esm/api/resources/fields/index.mjs +2 -0
- package/dist/esm/api/resources/fields/types/DeleteFieldsResponse.d.mts +3 -0
- package/dist/esm/api/resources/fields/types/DeleteFieldsResponse.mjs +2 -0
- package/dist/esm/api/resources/fields/types/ListFieldsRequestEntity.d.mts +5 -0
- package/dist/esm/api/resources/fields/types/ListFieldsRequestEntity.mjs +5 -0
- package/dist/esm/api/resources/fields/types/ListFieldsResponse.d.mts +4 -0
- package/dist/esm/api/resources/fields/types/ListFieldsResponse.mjs +2 -0
- package/dist/esm/api/resources/fields/types/index.d.mts +3 -0
- package/dist/esm/api/resources/fields/types/index.mjs +3 -0
- package/dist/esm/api/resources/inbox/client/Client.d.mts +252 -0
- package/dist/esm/api/resources/inbox/client/Client.mjs +816 -0
- package/dist/esm/api/resources/inbox/client/index.d.mts +1 -0
- package/dist/esm/api/resources/inbox/client/index.mjs +1 -0
- package/dist/esm/api/resources/inbox/client/requests/DeleteCommentInboxRequest.d.mts +13 -0
- package/dist/esm/api/resources/inbox/client/requests/DeleteCommentInboxRequest.mjs +2 -0
- package/dist/esm/api/resources/inbox/client/requests/GetInboxRequest.d.mts +14 -0
- package/dist/esm/api/resources/inbox/client/requests/GetInboxRequest.mjs +2 -0
- package/dist/esm/api/resources/inbox/client/requests/HideCommentInboxRequest.d.mts +16 -0
- package/dist/esm/api/resources/inbox/client/requests/HideCommentInboxRequest.mjs +2 -0
- package/dist/esm/api/resources/inbox/client/requests/LikeCommentInboxRequest.d.mts +16 -0
- package/dist/esm/api/resources/inbox/client/requests/LikeCommentInboxRequest.mjs +2 -0
- package/dist/esm/api/resources/inbox/client/requests/ListInboxRequest.d.mts +21 -0
- package/dist/esm/api/resources/inbox/client/requests/ListInboxRequest.mjs +2 -0
- package/dist/esm/api/resources/inbox/client/requests/MarkPostDoneInboxRequest.d.mts +13 -0
- package/dist/esm/api/resources/inbox/client/requests/MarkPostDoneInboxRequest.mjs +2 -0
- package/dist/esm/api/resources/inbox/client/requests/PostsInboxRequest.d.mts +14 -0
- package/dist/esm/api/resources/inbox/client/requests/PostsInboxRequest.mjs +2 -0
- package/dist/esm/api/resources/inbox/client/requests/ReplyInboxRequest.d.mts +15 -0
- package/dist/esm/api/resources/inbox/client/requests/ReplyInboxRequest.mjs +2 -0
- package/dist/esm/api/resources/inbox/client/requests/UpdateInboxRequest.d.mts +25 -0
- package/dist/esm/api/resources/inbox/client/requests/UpdateInboxRequest.mjs +9 -0
- package/dist/esm/api/resources/inbox/client/requests/index.d.mts +9 -0
- package/dist/esm/api/resources/inbox/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/inbox/exports.d.mts +2 -0
- package/dist/esm/api/resources/inbox/exports.mjs +3 -0
- package/dist/esm/api/resources/inbox/index.d.mts +2 -0
- package/dist/esm/api/resources/inbox/index.mjs +2 -0
- package/dist/esm/api/resources/inbox/types/DeleteCommentInboxResponse.d.mts +6 -0
- package/dist/esm/api/resources/inbox/types/DeleteCommentInboxResponse.mjs +2 -0
- package/dist/esm/api/resources/inbox/types/GetInboxResponse.d.mts +7 -0
- package/dist/esm/api/resources/inbox/types/GetInboxResponse.mjs +2 -0
- package/dist/esm/api/resources/inbox/types/ListInboxRequestKind.d.mts +8 -0
- package/dist/esm/api/resources/inbox/types/ListInboxRequestKind.mjs +8 -0
- package/dist/esm/api/resources/inbox/types/ListInboxRequestStatus.d.mts +6 -0
- package/dist/esm/api/resources/inbox/types/ListInboxRequestStatus.mjs +6 -0
- package/dist/esm/api/resources/inbox/types/ListInboxResponse.d.mts +6 -0
- package/dist/esm/api/resources/inbox/types/ListInboxResponse.mjs +2 -0
- package/dist/esm/api/resources/inbox/types/MarkPostDoneInboxResponse.d.mts +4 -0
- package/dist/esm/api/resources/inbox/types/MarkPostDoneInboxResponse.mjs +2 -0
- package/dist/esm/api/resources/inbox/types/PostsInboxResponse.d.mts +6 -0
- package/dist/esm/api/resources/inbox/types/PostsInboxResponse.mjs +2 -0
- package/dist/esm/api/resources/inbox/types/index.d.mts +7 -0
- package/dist/esm/api/resources/inbox/types/index.mjs +7 -0
- package/dist/esm/api/resources/index.d.mts +44 -0
- package/dist/esm/api/resources/index.mjs +44 -0
- package/dist/esm/api/resources/links/client/Client.d.mts +149 -0
- package/dist/esm/api/resources/links/client/Client.mjs +455 -0
- package/dist/esm/api/resources/links/client/index.d.mts +1 -0
- package/dist/esm/api/resources/links/client/index.mjs +1 -0
- package/dist/esm/api/resources/links/client/requests/CreateLinksRequest.d.mts +39 -0
- package/dist/esm/api/resources/links/client/requests/CreateLinksRequest.mjs +2 -0
- package/dist/esm/api/resources/links/client/requests/DeleteLinksRequest.d.mts +10 -0
- package/dist/esm/api/resources/links/client/requests/DeleteLinksRequest.mjs +2 -0
- package/dist/esm/api/resources/links/client/requests/GetLinksRequest.d.mts +10 -0
- package/dist/esm/api/resources/links/client/requests/GetLinksRequest.mjs +2 -0
- package/dist/esm/api/resources/links/client/requests/ListLinksRequest.d.mts +19 -0
- package/dist/esm/api/resources/links/client/requests/ListLinksRequest.mjs +2 -0
- package/dist/esm/api/resources/links/client/requests/UpdateLinksRequest.d.mts +15 -0
- package/dist/esm/api/resources/links/client/requests/UpdateLinksRequest.mjs +2 -0
- package/dist/esm/api/resources/links/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/links/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/links/exports.d.mts +2 -0
- package/dist/esm/api/resources/links/exports.mjs +3 -0
- package/dist/esm/api/resources/links/index.d.mts +2 -0
- package/dist/esm/api/resources/links/index.mjs +2 -0
- package/dist/esm/api/resources/links/types/DeleteLinksResponse.d.mts +3 -0
- package/dist/esm/api/resources/links/types/DeleteLinksResponse.mjs +2 -0
- package/dist/esm/api/resources/links/types/GetLinksResponse.d.mts +40 -0
- package/dist/esm/api/resources/links/types/GetLinksResponse.mjs +11 -0
- package/dist/esm/api/resources/links/types/ListLinksRequestSourceType.d.mts +6 -0
- package/dist/esm/api/resources/links/types/ListLinksRequestSourceType.mjs +6 -0
- package/dist/esm/api/resources/links/types/ListLinksResponse.d.mts +6 -0
- package/dist/esm/api/resources/links/types/ListLinksResponse.mjs +2 -0
- package/dist/esm/api/resources/links/types/index.d.mts +4 -0
- package/dist/esm/api/resources/links/types/index.mjs +4 -0
- package/dist/esm/api/resources/media/client/Client.d.mts +72 -0
- package/dist/esm/api/resources/media/client/Client.mjs +188 -0
- package/dist/esm/api/resources/media/client/index.d.mts +1 -0
- package/dist/esm/api/resources/media/client/index.mjs +1 -0
- package/dist/esm/api/resources/media/client/requests/CreateMediaRequest.d.mts +33 -0
- package/dist/esm/api/resources/media/client/requests/CreateMediaRequest.mjs +13 -0
- package/dist/esm/api/resources/media/client/requests/GetMediaRequest.d.mts +10 -0
- package/dist/esm/api/resources/media/client/requests/GetMediaRequest.mjs +2 -0
- package/dist/esm/api/resources/media/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/media/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/media/exports.d.mts +2 -0
- package/dist/esm/api/resources/media/exports.mjs +3 -0
- package/dist/esm/api/resources/media/index.d.mts +2 -0
- package/dist/esm/api/resources/media/index.mjs +2 -0
- package/dist/esm/api/resources/media/types/CreateMediaResponse.d.mts +41 -0
- package/dist/esm/api/resources/media/types/CreateMediaResponse.mjs +22 -0
- package/dist/esm/api/resources/media/types/index.d.mts +1 -0
- package/dist/esm/api/resources/media/types/index.mjs +1 -0
- package/dist/esm/api/resources/members/client/Client.d.mts +31 -0
- package/dist/esm/api/resources/members/client/Client.mjs +83 -0
- package/dist/esm/api/resources/members/client/index.d.mts +1 -0
- package/dist/esm/api/resources/members/client/index.mjs +1 -0
- package/dist/esm/api/resources/members/exports.d.mts +2 -0
- package/dist/esm/api/resources/members/exports.mjs +3 -0
- package/dist/esm/api/resources/members/index.d.mts +2 -0
- package/dist/esm/api/resources/members/index.mjs +2 -0
- package/dist/esm/api/resources/members/types/ListMembersResponse.d.mts +4 -0
- package/dist/esm/api/resources/members/types/ListMembersResponse.mjs +2 -0
- package/dist/esm/api/resources/members/types/index.d.mts +1 -0
- package/dist/esm/api/resources/members/types/index.mjs +1 -0
- package/dist/esm/api/resources/networkPosts/client/Client.d.mts +84 -0
- package/dist/esm/api/resources/networkPosts/client/Client.mjs +273 -0
- package/dist/esm/api/resources/networkPosts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/networkPosts/client/index.mjs +1 -0
- package/dist/esm/api/resources/networkPosts/client/requests/GetNetworkPostsRequest.d.mts +10 -0
- package/dist/esm/api/resources/networkPosts/client/requests/GetNetworkPostsRequest.mjs +2 -0
- package/dist/esm/api/resources/networkPosts/client/requests/ListNetworkPostsRequest.d.mts +27 -0
- package/dist/esm/api/resources/networkPosts/client/requests/ListNetworkPostsRequest.mjs +2 -0
- package/dist/esm/api/resources/networkPosts/client/requests/TimelineNetworkPostsRequest.d.mts +12 -0
- package/dist/esm/api/resources/networkPosts/client/requests/TimelineNetworkPostsRequest.mjs +2 -0
- package/dist/esm/api/resources/networkPosts/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/networkPosts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/networkPosts/exports.d.mts +2 -0
- package/dist/esm/api/resources/networkPosts/exports.mjs +3 -0
- package/dist/esm/api/resources/networkPosts/index.d.mts +2 -0
- package/dist/esm/api/resources/networkPosts/index.mjs +2 -0
- package/dist/esm/api/resources/networkPosts/types/ListNetworkPostsRequestDeleted.d.mts +7 -0
- package/dist/esm/api/resources/networkPosts/types/ListNetworkPostsRequestDeleted.mjs +7 -0
- package/dist/esm/api/resources/networkPosts/types/ListNetworkPostsRequestOrigin.d.mts +6 -0
- package/dist/esm/api/resources/networkPosts/types/ListNetworkPostsRequestOrigin.mjs +6 -0
- package/dist/esm/api/resources/networkPosts/types/ListNetworkPostsResponse.d.mts +6 -0
- package/dist/esm/api/resources/networkPosts/types/ListNetworkPostsResponse.mjs +2 -0
- package/dist/esm/api/resources/networkPosts/types/index.d.mts +3 -0
- package/dist/esm/api/resources/networkPosts/types/index.mjs +3 -0
- package/dist/esm/api/resources/posts/client/Client.d.mts +308 -0
- package/dist/esm/api/resources/posts/client/Client.mjs +903 -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/CreatePostsRequest.d.mts +93 -0
- package/dist/esm/api/resources/posts/client/requests/CreatePostsRequest.mjs +9 -0
- package/dist/esm/api/resources/posts/client/requests/DeletePostsRequest.d.mts +10 -0
- package/dist/esm/api/resources/posts/client/requests/DeletePostsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsRequest.d.mts +10 -0
- package/dist/esm/api/resources/posts/client/requests/GetPostsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/ListPostsRequest.d.mts +31 -0
- package/dist/esm/api/resources/posts/client/requests/ListPostsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/PublishPostsRequest.d.mts +10 -0
- package/dist/esm/api/resources/posts/client/requests/PublishPostsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/RestorePostsRequest.d.mts +10 -0
- package/dist/esm/api/resources/posts/client/requests/RestorePostsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/SharePostsRequest.d.mts +10 -0
- package/dist/esm/api/resources/posts/client/requests/SharePostsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/UnsharePostsRequest.d.mts +10 -0
- package/dist/esm/api/resources/posts/client/requests/UnsharePostsRequest.mjs +2 -0
- package/dist/esm/api/resources/posts/client/requests/UpdatePostsRequest.d.mts +80 -0
- package/dist/esm/api/resources/posts/client/requests/UpdatePostsRequest.mjs +9 -0
- package/dist/esm/api/resources/posts/client/requests/ValidatePostsRequest.d.mts +88 -0
- package/dist/esm/api/resources/posts/client/requests/ValidatePostsRequest.mjs +9 -0
- package/dist/esm/api/resources/posts/client/requests/index.d.mts +10 -0
- package/dist/esm/api/resources/posts/client/requests/index.mjs +3 -0
- package/dist/esm/api/resources/posts/exports.d.mts +2 -0
- package/dist/esm/api/resources/posts/exports.mjs +3 -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/ListPostsRequestDeleted.d.mts +7 -0
- package/dist/esm/api/resources/posts/types/ListPostsRequestDeleted.mjs +7 -0
- package/dist/esm/api/resources/posts/types/ListPostsRequestOrder.d.mts +6 -0
- package/dist/esm/api/resources/posts/types/ListPostsRequestOrder.mjs +6 -0
- package/dist/esm/api/resources/posts/types/ListPostsResponse.d.mts +6 -0
- package/dist/esm/api/resources/posts/types/ListPostsResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/SharePostsResponse.d.mts +5 -0
- package/dist/esm/api/resources/posts/types/SharePostsResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/UpdatePostsResponse.d.mts +31 -0
- package/dist/esm/api/resources/posts/types/UpdatePostsResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/ValidatePostsResponse.d.mts +35 -0
- package/dist/esm/api/resources/posts/types/ValidatePostsResponse.mjs +2 -0
- package/dist/esm/api/resources/posts/types/index.d.mts +6 -0
- package/dist/esm/api/resources/posts/types/index.mjs +6 -0
- package/dist/esm/api/resources/profiles/client/Client.d.mts +175 -0
- package/dist/esm/api/resources/profiles/client/Client.mjs +516 -0
- package/dist/esm/api/resources/profiles/client/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/client/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/client/requests/CreateProfilesRequest.d.mts +15 -0
- package/dist/esm/api/resources/profiles/client/requests/CreateProfilesRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/client/requests/DeleteProfilesRequest.d.mts +10 -0
- package/dist/esm/api/resources/profiles/client/requests/DeleteProfilesRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/client/requests/QueueProfilesRequest.d.mts +12 -0
- package/dist/esm/api/resources/profiles/client/requests/QueueProfilesRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/client/requests/SetQueueProfilesRequest.d.mts +23 -0
- package/dist/esm/api/resources/profiles/client/requests/SetQueueProfilesRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/client/requests/UpdateProfilesRequest.d.mts +17 -0
- package/dist/esm/api/resources/profiles/client/requests/UpdateProfilesRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/profiles/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/exports.d.mts +2 -0
- package/dist/esm/api/resources/profiles/exports.mjs +3 -0
- package/dist/esm/api/resources/profiles/index.d.mts +2 -0
- package/dist/esm/api/resources/profiles/index.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/DeleteProfilesResponse.d.mts +3 -0
- package/dist/esm/api/resources/profiles/types/DeleteProfilesResponse.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/ListProfilesResponse.d.mts +4 -0
- package/dist/esm/api/resources/profiles/types/ListProfilesResponse.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/index.d.mts +2 -0
- package/dist/esm/api/resources/profiles/types/index.mjs +2 -0
- package/dist/esm/api/resources/uploads/client/Client.d.mts +67 -0
- package/dist/esm/api/resources/uploads/client/Client.mjs +181 -0
- package/dist/esm/api/resources/uploads/client/index.d.mts +1 -0
- package/dist/esm/api/resources/uploads/client/index.mjs +1 -0
- package/dist/esm/api/resources/uploads/client/requests/CreateUploadsRequest.d.mts +16 -0
- package/dist/esm/api/resources/uploads/client/requests/CreateUploadsRequest.mjs +2 -0
- package/dist/esm/api/resources/uploads/client/requests/GetUploadsRequest.d.mts +10 -0
- package/dist/esm/api/resources/uploads/client/requests/GetUploadsRequest.mjs +2 -0
- package/dist/esm/api/resources/uploads/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/uploads/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/uploads/exports.d.mts +2 -0
- package/dist/esm/api/resources/uploads/exports.mjs +3 -0
- package/dist/esm/api/resources/uploads/index.d.mts +1 -0
- package/dist/esm/api/resources/uploads/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +246 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +772 -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/CreateWebhooksRequest.d.mts +19 -0
- package/dist/esm/api/resources/webhooks/client/requests/CreateWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhooksRequest.d.mts +10 -0
- package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/DeliveriesWebhooksRequest.d.mts +17 -0
- package/dist/esm/api/resources/webhooks/client/requests/DeliveriesWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/ReplayRangeWebhooksRequest.d.mts +27 -0
- package/dist/esm/api/resources/webhooks/client/requests/ReplayRangeWebhooksRequest.mjs +9 -0
- package/dist/esm/api/resources/webhooks/client/requests/ReplayWebhooksRequest.d.mts +10 -0
- package/dist/esm/api/resources/webhooks/client/requests/ReplayWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.d.mts +10 -0
- package/dist/esm/api/resources/webhooks/client/requests/RotateSecretWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/TestWebhooksRequest.d.mts +10 -0
- package/dist/esm/api/resources/webhooks/client/requests/TestWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.mts +21 -0
- package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +8 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/exports.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/exports.mjs +3 -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/DeleteWebhooksResponse.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/types/DeleteWebhooksResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/DeliveriesWebhooksRequestStatus.d.mts +8 -0
- package/dist/esm/api/resources/webhooks/types/DeliveriesWebhooksRequestStatus.mjs +8 -0
- package/dist/esm/api/resources/webhooks/types/DeliveriesWebhooksResponse.d.mts +6 -0
- package/dist/esm/api/resources/webhooks/types/DeliveriesWebhooksResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/ListWebhooksResponse.d.mts +4 -0
- package/dist/esm/api/resources/webhooks/types/ListWebhooksResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/types/index.d.mts +4 -0
- package/dist/esm/api/resources/webhooks/types/index.mjs +4 -0
- package/dist/esm/api/types/Account.d.mts +31 -0
- package/dist/esm/api/types/Account.mjs +10 -0
- package/dist/esm/api/types/AccountAudience.d.mts +18 -0
- package/dist/esm/api/types/AccountAudience.mjs +2 -0
- package/dist/esm/api/types/AccountBilling.d.mts +7 -0
- package/dist/esm/api/types/AccountBilling.mjs +7 -0
- package/dist/esm/api/types/AccountRemoval.d.mts +45 -0
- package/dist/esm/api/types/AccountRemoval.mjs +2 -0
- package/dist/esm/api/types/AccountRemoved.d.mts +46 -0
- package/dist/esm/api/types/AccountRemoved.mjs +2 -0
- package/dist/esm/api/types/ActiveHours.d.mts +20 -0
- package/dist/esm/api/types/ActiveHours.mjs +2 -0
- package/dist/esm/api/types/Actor.d.mts +51 -0
- package/dist/esm/api/types/Actor.mjs +20 -0
- package/dist/esm/api/types/AnalyticsNote.d.mts +7 -0
- package/dist/esm/api/types/AnalyticsNote.mjs +2 -0
- package/dist/esm/api/types/AnalyticsOverview.d.mts +169 -0
- package/dist/esm/api/types/AnalyticsOverview.mjs +9 -0
- package/dist/esm/api/types/Audience.d.mts +5 -0
- package/dist/esm/api/types/Audience.mjs +2 -0
- package/dist/esm/api/types/AudienceBreakdowns.d.mts +17 -0
- package/dist/esm/api/types/AudienceBreakdowns.mjs +2 -0
- package/dist/esm/api/types/AudienceShare.d.mts +8 -0
- package/dist/esm/api/types/AudienceShare.mjs +2 -0
- package/dist/esm/api/types/Billing.d.mts +72 -0
- package/dist/esm/api/types/Billing.mjs +28 -0
- package/dist/esm/api/types/Capability.d.mts +13 -0
- package/dist/esm/api/types/Capability.mjs +13 -0
- package/dist/esm/api/types/ChainPart.d.mts +6 -0
- package/dist/esm/api/types/ChainPart.mjs +2 -0
- package/dist/esm/api/types/ChainPartResult.d.mts +15 -0
- package/dist/esm/api/types/ChainPartResult.mjs +10 -0
- package/dist/esm/api/types/CommentAutomation.d.mts +150 -0
- package/dist/esm/api/types/CommentAutomation.mjs +32 -0
- package/dist/esm/api/types/CommentAutomationRun.d.mts +59 -0
- package/dist/esm/api/types/CommentAutomationRun.mjs +27 -0
- package/dist/esm/api/types/CommentAutomationTest.d.mts +54 -0
- package/dist/esm/api/types/CommentAutomationTest.mjs +2 -0
- package/dist/esm/api/types/ConnectLink.d.mts +14 -0
- package/dist/esm/api/types/ConnectLink.mjs +2 -0
- package/dist/esm/api/types/Contact.d.mts +8 -0
- package/dist/esm/api/types/Contact.mjs +2 -0
- package/dist/esm/api/types/DetailsAt.d.mts +6 -0
- package/dist/esm/api/types/DetailsAt.mjs +2 -0
- package/dist/esm/api/types/Error_.d.mts +40 -0
- package/dist/esm/api/types/Error_.mjs +28 -0
- package/dist/esm/api/types/Event.d.mts +28 -0
- package/dist/esm/api/types/Event.mjs +13 -0
- package/dist/esm/api/types/EventType.d.mts +25 -0
- package/dist/esm/api/types/EventType.mjs +25 -0
- package/dist/esm/api/types/FieldDefinition.d.mts +24 -0
- package/dist/esm/api/types/FieldDefinition.mjs +16 -0
- package/dist/esm/api/types/InboxPost.d.mts +12 -0
- package/dist/esm/api/types/InboxPost.mjs +2 -0
- package/dist/esm/api/types/Kpi.d.mts +5 -0
- package/dist/esm/api/types/Kpi.mjs +2 -0
- package/dist/esm/api/types/Link.d.mts +39 -0
- package/dist/esm/api/types/Link.mjs +11 -0
- package/dist/esm/api/types/LinkStats.d.mts +22 -0
- package/dist/esm/api/types/LinkStats.mjs +2 -0
- package/dist/esm/api/types/Media.d.mts +38 -0
- package/dist/esm/api/types/Media.mjs +16 -0
- package/dist/esm/api/types/MediaChange.d.mts +21 -0
- package/dist/esm/api/types/MediaChange.mjs +16 -0
- package/dist/esm/api/types/Message.d.mts +35 -0
- package/dist/esm/api/types/Message.mjs +13 -0
- package/dist/esm/api/types/MusicTrack.d.mts +24 -0
- package/dist/esm/api/types/MusicTrack.mjs +9 -0
- package/dist/esm/api/types/Network.d.mts +12 -0
- package/dist/esm/api/types/Network.mjs +12 -0
- package/dist/esm/api/types/NetworkPost.d.mts +47 -0
- package/dist/esm/api/types/NetworkPost.mjs +13 -0
- package/dist/esm/api/types/NetworkPostTimeline.d.mts +45 -0
- package/dist/esm/api/types/NetworkPostTimeline.mjs +15 -0
- package/dist/esm/api/types/Post.d.mts +29 -0
- package/dist/esm/api/types/Post.mjs +2 -0
- package/dist/esm/api/types/PostDetails.d.mts +79 -0
- package/dist/esm/api/types/PostDetails.mjs +25 -0
- package/dist/esm/api/types/PostFormat.d.mts +13 -0
- package/dist/esm/api/types/PostFormat.mjs +13 -0
- package/dist/esm/api/types/PostMetrics.d.mts +25 -0
- package/dist/esm/api/types/PostMetrics.mjs +2 -0
- package/dist/esm/api/types/PostResult.d.mts +35 -0
- package/dist/esm/api/types/PostResult.mjs +2 -0
- package/dist/esm/api/types/PostStatus.d.mts +9 -0
- package/dist/esm/api/types/PostStatus.mjs +9 -0
- package/dist/esm/api/types/PostTarget.d.mts +64 -0
- package/dist/esm/api/types/PostTarget.mjs +30 -0
- package/dist/esm/api/types/Profile.d.mts +8 -0
- package/dist/esm/api/types/Profile.mjs +2 -0
- package/dist/esm/api/types/Queue.d.mts +30 -0
- package/dist/esm/api/types/Queue.mjs +2 -0
- package/dist/esm/api/types/QueueSlot.d.mts +17 -0
- package/dist/esm/api/types/QueueSlot.mjs +13 -0
- package/dist/esm/api/types/TargetEdit.d.mts +19 -0
- package/dist/esm/api/types/TargetEdit.mjs +11 -0
- package/dist/esm/api/types/TargetOptions.d.mts +304 -0
- package/dist/esm/api/types/TargetOptions.mjs +97 -0
- package/dist/esm/api/types/Teammate.d.mts +18 -0
- package/dist/esm/api/types/Teammate.mjs +10 -0
- package/dist/esm/api/types/Thread.d.mts +47 -0
- package/dist/esm/api/types/Thread.mjs +21 -0
- package/dist/esm/api/types/TikTokCreatorInfo.d.mts +29 -0
- package/dist/esm/api/types/TikTokCreatorInfo.mjs +13 -0
- package/dist/esm/api/types/UploadRequest.d.mts +24 -0
- package/dist/esm/api/types/UploadRequest.mjs +10 -0
- package/dist/esm/api/types/WebhookAttempt.d.mts +23 -0
- package/dist/esm/api/types/WebhookAttempt.mjs +14 -0
- package/dist/esm/api/types/WebhookDelivery.d.mts +34 -0
- package/dist/esm/api/types/WebhookDelivery.mjs +11 -0
- package/dist/esm/api/types/WebhookEndpoint.d.mts +55 -0
- package/dist/esm/api/types/WebhookEndpoint.mjs +21 -0
- package/dist/esm/api/types/WebhookEventType.d.mts +25 -0
- package/dist/esm/api/types/WebhookEventType.mjs +25 -0
- package/dist/esm/api/types/WebhookReplay.d.mts +10 -0
- package/dist/esm/api/types/WebhookReplay.mjs +2 -0
- package/dist/esm/api/types/WebhookSecret.d.mts +6 -0
- package/dist/esm/api/types/WebhookSecret.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +59 -0
- package/dist/esm/api/types/index.mjs +59 -0
- package/dist/esm/auth/BearerAuthProvider.d.mts +20 -0
- package/dist/esm/auth/BearerAuthProvider.mjs +45 -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 +8 -0
- package/dist/esm/core/auth/AuthProvider.mjs +6 -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 +30 -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 +4 -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 +2 -0
- package/dist/esm/core/exports.mjs +2 -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 +56 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +270 -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 +55 -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 +17 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +81 -0
- package/dist/esm/core/fetcher/index.d.mts +13 -0
- package/dist/esm/core/fetcher/index.mjs +7 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.mjs +170 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +11 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +87 -0
- package/dist/esm/core/fetcher/redactUrl.d.mts +2 -0
- package/dist/esm/core/fetcher/redactUrl.mjs +84 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +88 -0
- package/dist/esm/core/fetcher/signals.d.mts +6 -0
- package/dist/esm/core/fetcher/signals.mjs +28 -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 +8 -0
- package/dist/esm/core/index.mjs +8 -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/pagination/Page.d.mts +33 -0
- package/dist/esm/core/pagination/Page.mjs +97 -0
- package/dist/esm/core/pagination/exports.d.mts +1 -0
- package/dist/esm/core/pagination/exports.mjs +1 -0
- package/dist/esm/core/pagination/index.d.mts +1 -0
- package/dist/esm/core/pagination/index.mjs +1 -0
- package/dist/esm/core/requestBody.d.mts +12 -0
- package/dist/esm/core/requestBody.mjs +23 -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 +28 -0
- package/dist/esm/core/runtime/runtime.mjs +172 -0
- package/dist/esm/core/url/QueryStringBuilder.d.mts +47 -0
- package/dist/esm/core/url/QueryStringBuilder.mjs +80 -0
- package/dist/esm/core/url/encodePathParam.d.mts +3 -0
- package/dist/esm/core/url/encodePathParam.mjs +24 -0
- package/dist/esm/core/url/index.d.mts +4 -0
- package/dist/esm/core/url/index.mjs +4 -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 +7 -0
- package/dist/esm/core/url/qs.mjs +73 -0
- package/dist/esm/core/utils/index.d.mts +1 -0
- package/dist/esm/core/utils/index.mjs +1 -0
- package/dist/esm/core/utils/setObjectProperty.d.mts +12 -0
- package/dist/esm/core/utils/setObjectProperty.mjs +45 -0
- package/dist/esm/environments.d.mts +4 -0
- package/dist/esm/environments.mjs +4 -0
- package/dist/esm/errors/RizamoError.d.mts +15 -0
- package/dist/esm/errors/RizamoError.mjs +49 -0
- package/dist/esm/errors/RizamoTimeoutError.d.mts +6 -0
- package/dist/esm/errors/RizamoTimeoutError.mjs +15 -0
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
- package/dist/esm/errors/handleNonStatusCodeError.mjs +32 -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 +244 -6
- package/reference.md +4821 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* url: "https://cafelumen.pt/menu",
|
|
5
|
+
* utm: {
|
|
6
|
+
* source: "instagram",
|
|
7
|
+
* medium: "social",
|
|
8
|
+
* campaign: "winter-menu"
|
|
9
|
+
* },
|
|
10
|
+
* profileId: "prof_01m40k9k80fxd8cvng8derm7g9"
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateLinksRequest {
|
|
14
|
+
/** Where the link sends people: a public http or https address, up to 2,048 characters, without line breaks. It is kept as the URL standard writes it (`url` in the answer: the host in ASCII, the path encoded). Rizamo's own short links are refused, so a link never points at another. */
|
|
15
|
+
url: string;
|
|
16
|
+
/** UTM tags Rizamo adds to `url` as `utm_*` parameters, so your own analytics (Google Analytics and the like) see where visitors came from. A tag the address already has stays as it is, never overwritten; empty ones add nothing. The tagged address is what `url` shows in the answer, and it must fit in 2,048 characters too. */
|
|
17
|
+
utm?: CreateLinksRequest.Utm;
|
|
18
|
+
/** A profile you reach, which the link belongs to. */
|
|
19
|
+
profileId?: string;
|
|
20
|
+
/** When it stops working, in the future. Left out, it never expires. */
|
|
21
|
+
expiresAt?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace CreateLinksRequest {
|
|
24
|
+
/**
|
|
25
|
+
* UTM tags Rizamo adds to `url` as `utm_*` parameters, so your own analytics (Google Analytics and the like) see where visitors came from. A tag the address already has stays as it is, never overwritten; empty ones add nothing. The tagged address is what `url` shows in the answer, and it must fit in 2,048 characters too.
|
|
26
|
+
*/
|
|
27
|
+
interface Utm {
|
|
28
|
+
/** `utm_source`: where visitors come from, such as instagram. */
|
|
29
|
+
source?: string | undefined;
|
|
30
|
+
/** `utm_medium`: the kind of traffic, such as social. */
|
|
31
|
+
medium?: string | undefined;
|
|
32
|
+
/** `utm_campaign`: the campaign, such as autumn-menu. */
|
|
33
|
+
campaign?: string | undefined;
|
|
34
|
+
/** `utm_term`: a keyword, mostly for paid search. */
|
|
35
|
+
term?: string | undefined;
|
|
36
|
+
/** `utm_content`: tells apart links of one campaign. */
|
|
37
|
+
content?: string | undefined;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as Rizamo from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* profileId: "prof_01m40k9k80fxd8cvng8derm7g9"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface ListLinksRequest {
|
|
9
|
+
/** Only this profile's (`prof_`): one brand or client, from List profiles. A profile you do not reach is refused as not found. */
|
|
10
|
+
profileId?: string;
|
|
11
|
+
/** Only links Rizamo made for this kind of thing. */
|
|
12
|
+
sourceType?: Rizamo.ListLinksRequestSourceType;
|
|
13
|
+
/** Only links made for this comment automation or post. */
|
|
14
|
+
sourceId?: string;
|
|
15
|
+
/** How many to return, up to 200: 100 when left out. */
|
|
16
|
+
limit?: number;
|
|
17
|
+
/** `nextCursor` from the page before. */
|
|
18
|
+
cursor?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* id: "lnk_01m4b3r6g0e48txnypr2tcytdp",
|
|
5
|
+
* expiresAt: "2026-12-31T23:59:59Z"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface UpdateLinksRequest {
|
|
9
|
+
/** The short link's id (`lnk_`). */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Where the link sends people: a public http or https address, up to 2,048 characters, without line breaks. It is kept as the URL standard writes it (`url` in the answer: the host in ASCII, the path encoded). Rizamo's own short links are refused, so a link never points at another. */
|
|
12
|
+
url?: string;
|
|
13
|
+
/** When it stops working, in the future. Null: it never expires. */
|
|
14
|
+
expiresAt?: string | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { CreateLinksRequest } from "./CreateLinksRequest.js";
|
|
2
|
+
export type { DeleteLinksRequest } from "./DeleteLinksRequest.js";
|
|
3
|
+
export type { GetLinksRequest } from "./GetLinksRequest.js";
|
|
4
|
+
export type { ListLinksRequest } from "./ListLinksRequest.js";
|
|
5
|
+
export type { UpdateLinksRequest } from "./UpdateLinksRequest.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.LinksClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "LinksClient", { enumerable: true, get: function () { return Client_js_1.LinksClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type * as Rizamo from "../../../index.js";
|
|
2
|
+
export interface GetLinksResponse {
|
|
3
|
+
id: string;
|
|
4
|
+
code: string;
|
|
5
|
+
/** The link to share. It sends people on to `url` and counts the click. */
|
|
6
|
+
shortUrl: string;
|
|
7
|
+
/** Where it sends people. */
|
|
8
|
+
url: string;
|
|
9
|
+
/** The profile it belongs to. Null: it is its creator's (the person, key or agent that made it). */
|
|
10
|
+
profileId: string | null;
|
|
11
|
+
/** What made the link, when Rizamo made it for something: a comment automation's messages or a post. Null for links made through the API. */
|
|
12
|
+
source: GetLinksResponse.Source | null;
|
|
13
|
+
/** Null when Rizamo made it on its own, such as for a comment automation. */
|
|
14
|
+
createdBy: Rizamo.Actor | null;
|
|
15
|
+
/** Clicks so far. Link previews and bots are not counted; one person clicking twice counts twice. */
|
|
16
|
+
clicks: number;
|
|
17
|
+
/** From then on the link answers 404. Null: it never expires. */
|
|
18
|
+
expiresAt: string | null;
|
|
19
|
+
/** When Rizamo disabled it for breaking the Acceptable Use Policy: it answers 404 from then on, whatever changes. Null for every other link. */
|
|
20
|
+
disabledAt: string | null;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
stats: Rizamo.LinkStats;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace GetLinksResponse {
|
|
26
|
+
/**
|
|
27
|
+
* What made the link, when Rizamo made it for something: a comment automation's messages or a post. Null for links made through the API.
|
|
28
|
+
*/
|
|
29
|
+
interface Source {
|
|
30
|
+
type: Source.Type;
|
|
31
|
+
id: string;
|
|
32
|
+
}
|
|
33
|
+
namespace Source {
|
|
34
|
+
const Type: {
|
|
35
|
+
readonly CommentAutomation: "comment_automation";
|
|
36
|
+
readonly Post: "post";
|
|
37
|
+
};
|
|
38
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GetLinksResponse = void 0;
|
|
5
|
+
var GetLinksResponse;
|
|
6
|
+
(function (GetLinksResponse) {
|
|
7
|
+
let Source;
|
|
8
|
+
(function (Source) {
|
|
9
|
+
Source.Type = {
|
|
10
|
+
CommentAutomation: "comment_automation",
|
|
11
|
+
Post: "post",
|
|
12
|
+
};
|
|
13
|
+
})(Source = GetLinksResponse.Source || (GetLinksResponse.Source = {}));
|
|
14
|
+
})(GetLinksResponse || (exports.GetLinksResponse = GetLinksResponse = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Only links Rizamo made for this kind of thing. */
|
|
2
|
+
export declare const ListLinksRequestSourceType: {
|
|
3
|
+
readonly CommentAutomation: "comment_automation";
|
|
4
|
+
readonly Post: "post";
|
|
5
|
+
};
|
|
6
|
+
export type ListLinksRequestSourceType = (typeof ListLinksRequestSourceType)[keyof typeof ListLinksRequestSourceType];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListLinksRequestSourceType = void 0;
|
|
5
|
+
/** Only links Rizamo made for this kind of thing. */
|
|
6
|
+
exports.ListLinksRequestSourceType = {
|
|
7
|
+
CommentAutomation: "comment_automation",
|
|
8
|
+
Post: "post",
|
|
9
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DeleteLinksResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./GetLinksResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./ListLinksRequestSourceType.js"), exports);
|
|
20
|
+
__exportStar(require("./ListLinksResponse.js"), exports);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Rizamo from "../../../index.js";
|
|
5
|
+
export declare namespace MediaClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Images and videos for posts: imported from a link, uploaded, or asked of a person.
|
|
14
|
+
*/
|
|
15
|
+
export declare class MediaClient {
|
|
16
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<MediaClient.Options>;
|
|
17
|
+
constructor(options?: MediaClient.Options);
|
|
18
|
+
/**
|
|
19
|
+
* With `contentType` and `size` (up to 4 GB), the answer says where to send the file: PUT each part, then call `complete` if there is one, and the media is `ready`. With `url`, Rizamo downloads the file and the media is ready in the answer. Media is yours until a post uses it, and then belongs to that post's profile (or to `profileId` at once): keys and people limited to some profiles reach their own media and their profiles'. Media not used by a post within 7 days is deleted.
|
|
20
|
+
*
|
|
21
|
+
* @param {Rizamo.CreateMediaRequest} request
|
|
22
|
+
* @param {MediaClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
23
|
+
*
|
|
24
|
+
* @throws {@link Rizamo.BadRequestError}
|
|
25
|
+
* @throws {@link Rizamo.UnauthorizedError}
|
|
26
|
+
* @throws {@link Rizamo.ForbiddenError}
|
|
27
|
+
* @throws {@link Rizamo.NotFoundError}
|
|
28
|
+
* @throws {@link Rizamo.ConflictError}
|
|
29
|
+
* @throws {@link Rizamo.ContentTooLargeError}
|
|
30
|
+
* @throws {@link Rizamo.UnsupportedMediaTypeError}
|
|
31
|
+
* @throws {@link Rizamo.UnprocessableEntityError}
|
|
32
|
+
* @throws {@link Rizamo.TooManyRequestsError}
|
|
33
|
+
* @throws {@link Rizamo.InternalServerError}
|
|
34
|
+
* @throws {@link Rizamo.NotImplementedError}
|
|
35
|
+
* @throws {@link Rizamo.ServiceUnavailableError}
|
|
36
|
+
* @throws {@link errors.RizamoError}
|
|
37
|
+
* @throws {@link errors.RizamoTimeoutError}
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.media.create({
|
|
41
|
+
* contentType: "video/mp4",
|
|
42
|
+
* size: 48211334,
|
|
43
|
+
* alt: "Pouring latte art in slow motion",
|
|
44
|
+
* profileId: "prof_01m40k9k80fxd8cvng8derm7g9"
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
create(request?: Rizamo.CreateMediaRequest, requestOptions?: MediaClient.IdempotentRequestOptions): core.HttpResponsePromise<Rizamo.CreateMediaResponse>;
|
|
48
|
+
private __create;
|
|
49
|
+
/**
|
|
50
|
+
* One image or video: `ready` once its file arrived, with its size, dimensions and length, and a link to view it that works for a few hours.
|
|
51
|
+
*
|
|
52
|
+
* @param {Rizamo.GetMediaRequest} request
|
|
53
|
+
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link Rizamo.BadRequestError}
|
|
56
|
+
* @throws {@link Rizamo.UnauthorizedError}
|
|
57
|
+
* @throws {@link Rizamo.ForbiddenError}
|
|
58
|
+
* @throws {@link Rizamo.NotFoundError}
|
|
59
|
+
* @throws {@link Rizamo.TooManyRequestsError}
|
|
60
|
+
* @throws {@link Rizamo.InternalServerError}
|
|
61
|
+
* @throws {@link Rizamo.ServiceUnavailableError}
|
|
62
|
+
* @throws {@link errors.RizamoError}
|
|
63
|
+
* @throws {@link errors.RizamoTimeoutError}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* await client.media.get({
|
|
67
|
+
* id: "med_01m48vn2c0emgvm8bkwtj1hayp"
|
|
68
|
+
* })
|
|
69
|
+
*/
|
|
70
|
+
get(request: Rizamo.GetMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Rizamo.Media>;
|
|
71
|
+
private __get;
|
|
72
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.MediaClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
+
const requestBody_js_1 = require("../../../../core/requestBody.js");
|
|
51
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
52
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
53
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
+
const Rizamo = __importStar(require("../../../index.js"));
|
|
55
|
+
/**
|
|
56
|
+
* Images and videos for posts: imported from a link, uploaded, or asked of a person.
|
|
57
|
+
*/
|
|
58
|
+
class MediaClient {
|
|
59
|
+
constructor(options = {}) {
|
|
60
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* With `contentType` and `size` (up to 4 GB), the answer says where to send the file: PUT each part, then call `complete` if there is one, and the media is `ready`. With `url`, Rizamo downloads the file and the media is ready in the answer. Media is yours until a post uses it, and then belongs to that post's profile (or to `profileId` at once): keys and people limited to some profiles reach their own media and their profiles'. Media not used by a post within 7 days is deleted.
|
|
64
|
+
*
|
|
65
|
+
* @param {Rizamo.CreateMediaRequest} request
|
|
66
|
+
* @param {MediaClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link Rizamo.BadRequestError}
|
|
69
|
+
* @throws {@link Rizamo.UnauthorizedError}
|
|
70
|
+
* @throws {@link Rizamo.ForbiddenError}
|
|
71
|
+
* @throws {@link Rizamo.NotFoundError}
|
|
72
|
+
* @throws {@link Rizamo.ConflictError}
|
|
73
|
+
* @throws {@link Rizamo.ContentTooLargeError}
|
|
74
|
+
* @throws {@link Rizamo.UnsupportedMediaTypeError}
|
|
75
|
+
* @throws {@link Rizamo.UnprocessableEntityError}
|
|
76
|
+
* @throws {@link Rizamo.TooManyRequestsError}
|
|
77
|
+
* @throws {@link Rizamo.InternalServerError}
|
|
78
|
+
* @throws {@link Rizamo.NotImplementedError}
|
|
79
|
+
* @throws {@link Rizamo.ServiceUnavailableError}
|
|
80
|
+
* @throws {@link errors.RizamoError}
|
|
81
|
+
* @throws {@link errors.RizamoTimeoutError}
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* await client.media.create({
|
|
85
|
+
* contentType: "video/mp4",
|
|
86
|
+
* size: 48211334,
|
|
87
|
+
* alt: "Pouring latte art in slow motion",
|
|
88
|
+
* profileId: "prof_01m40k9k80fxd8cvng8derm7g9"
|
|
89
|
+
* })
|
|
90
|
+
*/
|
|
91
|
+
create(request = {}, requestOptions) {
|
|
92
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
93
|
+
}
|
|
94
|
+
__create() {
|
|
95
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
96
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
97
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
98
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
99
|
+
const _response = yield core.fetcher({
|
|
100
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RizamoEnvironment.Production, "media"),
|
|
101
|
+
method: "POST",
|
|
102
|
+
headers: _headers,
|
|
103
|
+
contentType: "application/json",
|
|
104
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
105
|
+
requestType: "json",
|
|
106
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
107
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
108
|
+
maxRetries: 0,
|
|
109
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
110
|
+
fetchFn: (_g = this._options) === null || _g === void 0 ? void 0 : _g.fetch,
|
|
111
|
+
logging: this._options.logging,
|
|
112
|
+
});
|
|
113
|
+
if (_response.ok) {
|
|
114
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
115
|
+
}
|
|
116
|
+
if (_response.error.reason === "status-code") {
|
|
117
|
+
switch (_response.error.statusCode) {
|
|
118
|
+
case 400:
|
|
119
|
+
throw new Rizamo.BadRequestError(_response.error.body, _response.rawResponse);
|
|
120
|
+
case 401:
|
|
121
|
+
throw new Rizamo.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
122
|
+
case 403:
|
|
123
|
+
throw new Rizamo.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
124
|
+
case 404:
|
|
125
|
+
throw new Rizamo.NotFoundError(_response.error.body, _response.rawResponse);
|
|
126
|
+
case 409:
|
|
127
|
+
throw new Rizamo.ConflictError(_response.error.body, _response.rawResponse);
|
|
128
|
+
case 413:
|
|
129
|
+
throw new Rizamo.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
130
|
+
case 415:
|
|
131
|
+
throw new Rizamo.UnsupportedMediaTypeError(_response.error.body, _response.rawResponse);
|
|
132
|
+
case 422:
|
|
133
|
+
throw new Rizamo.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
134
|
+
case 429:
|
|
135
|
+
throw new Rizamo.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
136
|
+
case 500:
|
|
137
|
+
throw new Rizamo.InternalServerError(_response.error.body, _response.rawResponse);
|
|
138
|
+
case 501:
|
|
139
|
+
throw new Rizamo.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
140
|
+
case 503:
|
|
141
|
+
throw new Rizamo.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
142
|
+
default:
|
|
143
|
+
throw new errors.RizamoError({
|
|
144
|
+
statusCode: _response.error.statusCode,
|
|
145
|
+
body: _response.error.body,
|
|
146
|
+
rawResponse: _response.rawResponse,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/media");
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* One image or video: `ready` once its file arrived, with its size, dimensions and length, and a link to view it that works for a few hours.
|
|
155
|
+
*
|
|
156
|
+
* @param {Rizamo.GetMediaRequest} request
|
|
157
|
+
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link Rizamo.BadRequestError}
|
|
160
|
+
* @throws {@link Rizamo.UnauthorizedError}
|
|
161
|
+
* @throws {@link Rizamo.ForbiddenError}
|
|
162
|
+
* @throws {@link Rizamo.NotFoundError}
|
|
163
|
+
* @throws {@link Rizamo.TooManyRequestsError}
|
|
164
|
+
* @throws {@link Rizamo.InternalServerError}
|
|
165
|
+
* @throws {@link Rizamo.ServiceUnavailableError}
|
|
166
|
+
* @throws {@link errors.RizamoError}
|
|
167
|
+
* @throws {@link errors.RizamoTimeoutError}
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* await client.media.get({
|
|
171
|
+
* id: "med_01m48vn2c0emgvm8bkwtj1hayp"
|
|
172
|
+
* })
|
|
173
|
+
*/
|
|
174
|
+
get(request, requestOptions) {
|
|
175
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
176
|
+
}
|
|
177
|
+
__get(request, requestOptions) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
180
|
+
const { id } = request;
|
|
181
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
182
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
183
|
+
const _response = yield core.fetcher({
|
|
184
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RizamoEnvironment.Production, `media/${core.url.encodePathParam(id, errors.RizamoError)}`),
|
|
185
|
+
method: "GET",
|
|
186
|
+
headers: _headers,
|
|
187
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
188
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
189
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
190
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
191
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
192
|
+
logging: this._options.logging,
|
|
193
|
+
});
|
|
194
|
+
if (_response.ok) {
|
|
195
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
196
|
+
}
|
|
197
|
+
if (_response.error.reason === "status-code") {
|
|
198
|
+
switch (_response.error.statusCode) {
|
|
199
|
+
case 400:
|
|
200
|
+
throw new Rizamo.BadRequestError(_response.error.body, _response.rawResponse);
|
|
201
|
+
case 401:
|
|
202
|
+
throw new Rizamo.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
203
|
+
case 403:
|
|
204
|
+
throw new Rizamo.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
205
|
+
case 404:
|
|
206
|
+
throw new Rizamo.NotFoundError(_response.error.body, _response.rawResponse);
|
|
207
|
+
case 429:
|
|
208
|
+
throw new Rizamo.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
209
|
+
case 500:
|
|
210
|
+
throw new Rizamo.InternalServerError(_response.error.body, _response.rawResponse);
|
|
211
|
+
case 503:
|
|
212
|
+
throw new Rizamo.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
213
|
+
default:
|
|
214
|
+
throw new errors.RizamoError({
|
|
215
|
+
statusCode: _response.error.statusCode,
|
|
216
|
+
body: _response.error.body,
|
|
217
|
+
rawResponse: _response.rawResponse,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/media/{id}");
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.MediaClient = MediaClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|