postboost 1.35.0 → 1.36.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/README.md +1 -1
- package/api/aIApi.ts +1 -1
- package/api/accountGroupsApi.ts +1 -1
- package/api/accountsApi.ts +1 -1
- package/api/activityApi.ts +1 -1
- package/api/agentsApi.ts +1 -1
- package/api/analyticsApi.ts +1 -1
- package/api/competitorsApi.ts +1 -1
- package/api/freeToolsApi.ts +72 -1
- package/api/hashtagGroupsApi.ts +1 -1
- package/api/inboxApi.ts +1 -1
- package/api/mediaApi.ts +1 -1
- package/api/mentionsApi.ts +1 -1
- package/api/postingScheduleApi.ts +1 -1
- package/api/postsApi.ts +1 -1
- package/api/receiptsApi.ts +1 -1
- package/api/subscriptionsApi.ts +1 -1
- package/api/tagsApi.ts +1 -1
- package/api/templatesApi.ts +1 -1
- package/api/usersApi.ts +1 -1
- package/api/webhooksApi.ts +1 -1
- package/api/workspacesApi.ts +1 -1
- package/dist/api/freeToolsApi.d.ts +10 -0
- package/dist/api/freeToolsApi.js +61 -0
- package/dist/api/freeToolsApi.js.map +1 -1
- package/dist/model/freeToolCheckLinkPreviewRequest.d.ts +14 -0
- package/dist/model/freeToolCheckLinkPreviewRequest.js +18 -0
- package/dist/model/freeToolCheckLinkPreviewRequest.js.map +1 -0
- package/dist/model/freeToolCheckLinkPreviewResponse.d.ts +27 -0
- package/dist/model/freeToolCheckLinkPreviewResponse.js +53 -0
- package/dist/model/freeToolCheckLinkPreviewResponse.js.map +1 -0
- package/dist/model/freeToolCheckLinkPreviewResponseImage.d.ts +22 -0
- package/dist/model/freeToolCheckLinkPreviewResponseImage.js +35 -0
- package/dist/model/freeToolCheckLinkPreviewResponseImage.js.map +1 -0
- package/dist/model/freeToolCheckLinkPreviewResponsePreviewsValue.d.ts +17 -0
- package/dist/model/freeToolCheckLinkPreviewResponsePreviewsValue.js +33 -0
- package/dist/model/freeToolCheckLinkPreviewResponsePreviewsValue.js.map +1 -0
- package/dist/model/freeToolCheckLinkPreviewResponseRedirectsInner.d.ts +16 -0
- package/dist/model/freeToolCheckLinkPreviewResponseRedirectsInner.js +28 -0
- package/dist/model/freeToolCheckLinkPreviewResponseRedirectsInner.js.map +1 -0
- package/dist/model/freeToolCheckLinkPreviewResponseTags.d.ts +29 -0
- package/dist/model/freeToolCheckLinkPreviewResponseTags.js +93 -0
- package/dist/model/freeToolCheckLinkPreviewResponseTags.js.map +1 -0
- package/dist/model/models.d.ts +6 -0
- package/dist/model/models.js +19 -0
- package/dist/model/models.js.map +1 -1
- package/model/aICredits.ts +1 -1
- package/model/aIUsage.ts +1 -1
- package/model/aIUsageText.ts +1 -1
- package/model/account.ts +1 -1
- package/model/accountAnalytics.ts +1 -1
- package/model/accountAnalyticsInitialSync.ts +1 -1
- package/model/accountConnectionHealth.ts +1 -1
- package/model/accountConnectionHealthReconnectReason.ts +1 -1
- package/model/accountErrorsInner.ts +1 -1
- package/model/accountErrorsInnerOneOf.ts +1 -1
- package/model/accountGroup.ts +1 -1
- package/model/accountGroupInput.ts +1 -1
- package/model/accountHealth.ts +1 -1
- package/model/accountHealthDailyCap.ts +1 -1
- package/model/accountSchedule.ts +1 -1
- package/model/addCompetitor202Response.ts +1 -1
- package/model/addCompetitor409Response.ts +1 -1
- package/model/addGenericSubscriptionRequest.ts +1 -1
- package/model/addPostToQueueRequest.ts +1 -1
- package/model/agentPageMeta.ts +1 -1
- package/model/agentProposal.ts +1 -1
- package/model/agentProposalDecision.ts +1 -1
- package/model/agentRun.ts +1 -1
- package/model/analyticsPeriod.ts +1 -1
- package/model/analyticsSummary.ts +1 -1
- package/model/analyticsSummaryData.ts +1 -1
- package/model/apiActivity.ts +1 -1
- package/model/apiActivityOutcome.ts +1 -1
- package/model/apiKey.ts +1 -1
- package/model/apiKeyAbility.ts +1 -1
- package/model/apiKeyInput.ts +1 -1
- package/model/approveAgentProposal200Response.ts +1 -1
- package/model/approveAgentProposal409Response.ts +1 -1
- package/model/approveInboxReplyDraft403Response.ts +1 -1
- package/model/approvePostRequest.ts +1 -1
- package/model/bestPostingTimes.ts +1 -1
- package/model/bestPostingTimesTimesInner.ts +1 -1
- package/model/blogToSocial200Response.ts +1 -1
- package/model/blogToSocial429Response.ts +1 -1
- package/model/blogToSocialCaption.ts +1 -1
- package/model/blogToSocialInput.ts +1 -1
- package/model/blogToSocialMedia.ts +1 -1
- package/model/blogToSocialResponse.ts +1 -1
- package/model/brandVoice.ts +1 -1
- package/model/brandVoiceInput.ts +1 -1
- package/model/brandVoiceMeta.ts +1 -1
- package/model/cancelSubscription422Response.ts +1 -1
- package/model/cancelSubscription422ResponseErrors.ts +1 -1
- package/model/cancelSubscriptionRequest.ts +1 -1
- package/model/changeSubscriptionPlanRequest.ts +1 -1
- package/model/channelAccount.ts +1 -1
- package/model/checkoutSubscription200Response.ts +1 -1
- package/model/checkoutSubscriptionRequest.ts +1 -1
- package/model/codedError.ts +1 -1
- package/model/competitor.ts +1 -1
- package/model/competitorDetail.ts +1 -1
- package/model/competitorInput.ts +1 -1
- package/model/competitorMedia.ts +1 -1
- package/model/competitorSnapshot.ts +1 -1
- package/model/completeChunkedUploadRequest.ts +1 -1
- package/model/connectChannelInput.ts +1 -1
- package/model/connectLink.ts +1 -1
- package/model/createAccountGroup201Response.ts +1 -1
- package/model/createAgent201Response.ts +1 -1
- package/model/createApiKey201Response.ts +1 -1
- package/model/createApiKey201ResponseData.ts +1 -1
- package/model/createConnectLinkRequest.ts +1 -1
- package/model/createHashtagGroup201Response.ts +1 -1
- package/model/createInboxReplyDraft201Response.ts +1 -1
- package/model/createMediaFolderRequest.ts +1 -1
- package/model/createMention201Response.ts +1 -1
- package/model/createPost201Response.ts +1 -1
- package/model/createRecyclingRule201Response.ts +1 -1
- package/model/createReportExport201Response.ts +1 -1
- package/model/createResellerClient201Response.ts +1 -1
- package/model/createRssFeed201Response.ts +1 -1
- package/model/createTemplate201Response.ts +1 -1
- package/model/createWebhookSubscription201Response.ts +1 -1
- package/model/createWebhookSubscription201ResponseData.ts +1 -1
- package/model/deleteAgent200Response.ts +1 -1
- package/model/deleteMediaBulkRequest.ts +1 -1
- package/model/deleteMediaBulkRequestItemsInner.ts +1 -1
- package/model/deleteMediaFolderRequest.ts +1 -1
- package/model/deleteMode.ts +1 -1
- package/model/deletePostRequest.ts +1 -1
- package/model/deletePostsBulkRequest.ts +1 -1
- package/model/deleteReceiptsBulkRequest.ts +1 -1
- package/model/deleteResult.ts +1 -1
- package/model/deleteUser400Response.ts +1 -1
- package/model/deleteUsersBulkRequest.ts +1 -1
- package/model/deleteWorkspacesBulkRequest.ts +1 -1
- package/model/freeToolBuildUtmUrlRequest.ts +1 -1
- package/model/freeToolBuildUtmUrlResponse.ts +1 -1
- package/model/freeToolCalculateAspectRatioRequest.ts +1 -1
- package/model/freeToolCalculateAspectRatioResponse.ts +1 -1
- package/model/freeToolCalculateAspectRatioResponseMatchesInner.ts +1 -1
- package/model/freeToolCalculateAspectRatioResponseRounding.ts +1 -1
- package/model/freeToolCalculateCropRequest.ts +1 -1
- package/model/freeToolCalculateCropResponse.ts +1 -1
- package/model/freeToolCalculateCropResponseCrop.ts +1 -1
- package/model/freeToolCalculateCropResponseImage.ts +1 -1
- package/model/freeToolCalculateCropResponseOutput.ts +1 -1
- package/model/freeToolCalculateEngagementRateRequest.ts +1 -1
- package/model/freeToolCalculateEngagementRateResponse.ts +1 -1
- package/model/freeToolCheckLinkPreviewRequest.ts +34 -0
- package/model/freeToolCheckLinkPreviewResponse.ts +86 -0
- package/model/freeToolCheckLinkPreviewResponseImage.ts +52 -0
- package/model/freeToolCheckLinkPreviewResponsePreviewsValue.ts +49 -0
- package/model/freeToolCheckLinkPreviewResponseRedirectsInner.ts +43 -0
- package/model/freeToolCheckLinkPreviewResponseTags.ts +124 -0
- package/model/freeToolCheckPostRequest.ts +1 -1
- package/model/freeToolCheckPostRequestMedia.ts +1 -1
- package/model/freeToolCheckPostResponse.ts +1 -1
- package/model/freeToolCheckPostResponseNetworksInner.ts +1 -1
- package/model/freeToolCheckPostResponseNetworksInnerErrorsInner.ts +1 -1
- package/model/freeToolCleanTextRequest.ts +1 -1
- package/model/freeToolCleanTextResponse.ts +1 -1
- package/model/freeToolCleanTextResponseChangesInner.ts +1 -1
- package/model/freeToolCleanTextResponseFlagsInner.ts +1 -1
- package/model/freeToolCountCharactersRequest.ts +1 -1
- package/model/freeToolCountCharactersResponse.ts +1 -1
- package/model/freeToolCountCharactersResponseNetworksInner.ts +1 -1
- package/model/freeToolError.ts +1 -1
- package/model/freeToolFormatLinkedInPostRequest.ts +1 -1
- package/model/freeToolFormatLinkedInPostResponse.ts +1 -1
- package/model/freeToolGenerateCaptionRequest.ts +1 -1
- package/model/freeToolGenerateCaptionResponse.ts +1 -1
- package/model/freeToolGenerateFancyTextRequest.ts +1 -1
- package/model/freeToolGenerateFancyTextResponse.ts +1 -1
- package/model/freeToolGenerateFancyTextResponseStylesInner.ts +1 -1
- package/model/freeToolGenerateHashtagsRequest.ts +1 -1
- package/model/freeToolGenerateHashtagsResponse.ts +1 -1
- package/model/freeToolGenerateQrCodeRequest.ts +1 -1
- package/model/freeToolGenerateQrCodeRequestUtm.ts +1 -1
- package/model/freeToolGenerateQrCodeResponse.ts +1 -1
- package/model/freeToolGetBestTimesToPostResponse.ts +1 -1
- package/model/freeToolGetBestTimesToPostResponseNetworksInner.ts +1 -1
- package/model/freeToolGetImageSizesResponse.ts +1 -1
- package/model/freeToolGetImageSizesResponseSizesInner.ts +1 -1
- package/model/freeToolGetImageSizesResponseSourcesInner.ts +1 -1
- package/model/freeToolList.ts +1 -1
- package/model/freeToolListItem.ts +1 -1
- package/model/freeToolPreviewPostRequest.ts +1 -1
- package/model/freeToolPreviewPostResponse.ts +1 -1
- package/model/freeToolPreviewPostResponseNetworksInner.ts +1 -1
- package/model/freeToolSplitThreadRequest.ts +1 -1
- package/model/freeToolSplitThreadResponse.ts +1 -1
- package/model/freeToolSplitThreadResponsePostsInner.ts +1 -1
- package/model/getAccountHealth200Response.ts +1 -1
- package/model/getBrandVoice200Response.ts +1 -1
- package/model/getCompetitor200Response.ts +1 -1
- package/model/getInboxConversation200Response.ts +1 -1
- package/model/getPostingSchedule200Response.ts +1 -1
- package/model/getRemoteUploadStatus200Response.ts +1 -1
- package/model/getReportBranding200Response.ts +1 -1
- package/model/getRepurposeRun200Response.ts +1 -1
- package/model/guardrailError.ts +1 -1
- package/model/hashtagGroup.ts +1 -1
- package/model/hashtagGroupInput.ts +1 -1
- package/model/imageAltText200Response.ts +1 -1
- package/model/imageAltTextInput.ts +1 -1
- package/model/imageAltTextResponse.ts +1 -1
- package/model/imageCreditBalance.ts +1 -1
- package/model/imageEditInput.ts +1 -1
- package/model/imageGenerate200Response.ts +1 -1
- package/model/imageGenerate429Response.ts +1 -1
- package/model/imageGenerateInput.ts +1 -1
- package/model/imageGenerationResponse.ts +1 -1
- package/model/imagePrompt200Response.ts +1 -1
- package/model/imagePrompt429Response.ts +1 -1
- package/model/imagePromptInput.ts +1 -1
- package/model/imagePromptResponse.ts +1 -1
- package/model/imageVariations200Response.ts +1 -1
- package/model/imageVariationsInput.ts +1 -1
- package/model/imageVariationsResponse.ts +1 -1
- package/model/inboxAuthor.ts +1 -1
- package/model/inboxConversation.ts +1 -1
- package/model/inboxConversationAccount.ts +1 -1
- package/model/inboxConversationUpdate.ts +1 -1
- package/model/inboxMessage.ts +1 -1
- package/model/inboxMessageAuthor.ts +1 -1
- package/model/inboxReplyDraft.ts +1 -1
- package/model/inboxReplyDraftApprove.ts +1 -1
- package/model/inboxReplyDraftEdit.ts +1 -1
- package/model/inboxReplyDraftInput.ts +1 -1
- package/model/initiateChunkedUpload201Response.ts +1 -1
- package/model/initiateChunkedUploadRequest.ts +1 -1
- package/model/initiateRemoteUpload201Response.ts +1 -1
- package/model/initiateRemoteUpload201ResponseOneOf.ts +1 -1
- package/model/initiateRemoteUploadRequest.ts +1 -1
- package/model/learnBrandVoiceInput.ts +1 -1
- package/model/learnBrandVoiceResponse.ts +1 -1
- package/model/learnBrandVoiceResponseMeta.ts +1 -1
- package/model/listAccountGroups200Response.ts +1 -1
- package/model/listAccounts200Response.ts +1 -1
- package/model/listAgentProposals200Response.ts +1 -1
- package/model/listAgentRuns200Response.ts +1 -1
- package/model/listAgents200Response.ts +1 -1
- package/model/listApiActivity200Response.ts +1 -1
- package/model/listApiKeys200Response.ts +1 -1
- package/model/listCompetitors200Response.ts +1 -1
- package/model/listHashtagGroups200Response.ts +1 -1
- package/model/listInboxConversations200Response.ts +1 -1
- package/model/listInboxReplyDrafts200Response.ts +1 -1
- package/model/listMedia200Response.ts +1 -1
- package/model/listMediaFolders200Response.ts +1 -1
- package/model/listMentions200Response.ts +1 -1
- package/model/listMyWorkspaces200Response.ts +1 -1
- package/model/listPosts200Response.ts +1 -1
- package/model/listReceipts200Response.ts +1 -1
- package/model/listRecyclingRules200Response.ts +1 -1
- package/model/listRecyclingRuns200Response.ts +1 -1
- package/model/listReportExports200Response.ts +1 -1
- package/model/listResellerClients200Response.ts +1 -1
- package/model/listRssFeeds200Response.ts +1 -1
- package/model/listTags200Response.ts +1 -1
- package/model/listTemplates200Response.ts +1 -1
- package/model/listUsers200Response.ts +1 -1
- package/model/listWebhookSubscriptions200Response.ts +1 -1
- package/model/listWorkspaces200Response.ts +1 -1
- package/model/media.ts +1 -1
- package/model/mediaBase64Input.ts +1 -1
- package/model/mediaFolder.ts +1 -1
- package/model/mediaFolderInput.ts +1 -1
- package/model/mediaFolderRef.ts +1 -1
- package/model/mention.ts +1 -1
- package/model/mentionIdentity.ts +1 -1
- package/model/mentionIdentityInput.ts +1 -1
- package/model/mentionInput.ts +1 -1
- package/model/messageOnly.ts +1 -1
- package/model/models.ts +19 -0
- package/model/paginationMeta.ts +1 -1
- package/model/paginationMetaLinks.ts +1 -1
- package/model/paginationMetaMeta.ts +1 -1
- package/model/pollRssFeed200Response.ts +1 -1
- package/model/post.ts +1 -1
- package/model/postAnalytics.ts +1 -1
- package/model/postContent.ts +1 -1
- package/model/postInput.ts +1 -1
- package/model/postOptionsInstagram.ts +1 -1
- package/model/postOptionsTikTok.ts +1 -1
- package/model/postOptionsYoutube.ts +1 -1
- package/model/postStatus.ts +1 -1
- package/model/postVersion.ts +1 -1
- package/model/postVersionOptions.ts +1 -1
- package/model/postWarning.ts +1 -1
- package/model/postWarnings.ts +1 -1
- package/model/postingSchedule.ts +1 -1
- package/model/postingScheduleDay.ts +1 -1
- package/model/postingScheduleDayTimesInner.ts +1 -1
- package/model/postingScheduleInput.ts +1 -1
- package/model/postingTimeSlot.ts +1 -1
- package/model/postingTimes.ts +1 -1
- package/model/postingTimesBestInner.ts +1 -1
- package/model/postingTimesDayIntervalsInnerInner.ts +1 -1
- package/model/postingTimesDaysInner.ts +1 -1
- package/model/preflightResult.ts +1 -1
- package/model/publicWorkspace.ts +1 -1
- package/model/publicWorkspacePivot.ts +1 -1
- package/model/publishProgress.ts +1 -1
- package/model/queueSlots.ts +1 -1
- package/model/receipt.ts +1 -1
- package/model/receiptInput.ts +1 -1
- package/model/receiptUpdateInput.ts +1 -1
- package/model/recommendedPostingTimes.ts +1 -1
- package/model/reconnectLink.ts +1 -1
- package/model/recyclingRule.ts +1 -1
- package/model/recyclingRuleInput.ts +1 -1
- package/model/recyclingRuleSettings.ts +1 -1
- package/model/recyclingRuleUpdate.ts +1 -1
- package/model/recyclingRun.ts +1 -1
- package/model/removeGenericSubscription422Response.ts +1 -1
- package/model/removeUserFromWorkspaceRequest.ts +1 -1
- package/model/reportBranding.ts +1 -1
- package/model/reportBrandingInput.ts +1 -1
- package/model/reportExport.ts +1 -1
- package/model/reportExportInput.ts +1 -1
- package/model/repurposeContent200Response.ts +1 -1
- package/model/repurposeContent202Response.ts +1 -1
- package/model/repurposeContent500Response.ts +1 -1
- package/model/repurposeInput.ts +1 -1
- package/model/repurposeInputTheme.ts +1 -1
- package/model/repurposeResult.ts +1 -1
- package/model/repurposeResultMedia.ts +1 -1
- package/model/repurposeResultSource.ts +1 -1
- package/model/repurposeRun.ts +1 -1
- package/model/repurposeRunAccepted.ts +1 -1
- package/model/repurposeSlide.ts +1 -1
- package/model/resellerClient.ts +1 -1
- package/model/resellerClientInput.ts +1 -1
- package/model/resellerClientUsage.ts +1 -1
- package/model/retryPostAccountResult.ts +1 -1
- package/model/rssFeed.ts +1 -1
- package/model/rssFeedInput.ts +1 -1
- package/model/rssFeedUpdate.ts +1 -1
- package/model/runAgent202Response.ts +1 -1
- package/model/schedulePostRequest.ts +1 -1
- package/model/scheduleResult.ts +1 -1
- package/model/subscription.ts +1 -1
- package/model/subscriptionInput.ts +1 -1
- package/model/subscriptionStatus.ts +1 -1
- package/model/subscriptionUpdateInput.ts +1 -1
- package/model/tag.ts +1 -1
- package/model/tagInput.ts +1 -1
- package/model/template.ts +1 -1
- package/model/templateContentItem.ts +1 -1
- package/model/templateInput.ts +1 -1
- package/model/templateInputContentInner.ts +1 -1
- package/model/updateMediaRequest.ts +1 -1
- package/model/updatePost200Response.ts +1 -1
- package/model/uploadChunk201Response.ts +1 -1
- package/model/user.ts +1 -1
- package/model/userInput.ts +1 -1
- package/model/userUpdateInput.ts +1 -1
- package/model/webhookEventName.ts +1 -1
- package/model/webhookEventPayload.ts +1 -1
- package/model/webhookSubscription.ts +1 -1
- package/model/webhookSubscriptionInput.ts +1 -1
- package/model/workspace.ts +1 -1
- package/model/workspaceAgent.ts +1 -1
- package/model/workspaceAgentInput.ts +1 -1
- package/model/workspaceAgentSettings.ts +1 -1
- package/model/workspaceAgentUpdate.ts +1 -1
- package/model/workspaceInput.ts +1 -1
- package/model/workspaceUserInput.ts +1 -1
- package/model/xUsage.ts +1 -1
- package/model/xUsageCounter.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install postboost
|
|
|
13
13
|
| **npm** | [npmjs.com/package/postboost](https://www.npmjs.com/package/postboost) |
|
|
14
14
|
| **GitHub** | [postboost-co/postboost-node](https://github.com/postboost-co/postboost-node) |
|
|
15
15
|
| **Docs** | [postboost.co/docs/api](https://postboost.co/docs/api) |
|
|
16
|
-
| **Version** | v1.
|
|
16
|
+
| **Version** | v1.36.0 |
|
|
17
17
|
|
|
18
18
|
## Quick start
|
|
19
19
|
|
package/api/aIApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/accountGroupsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/accountsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/activityApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/agentsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/analyticsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/competitorsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/freeToolsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,6 +23,8 @@ import { FreeToolCalculateCropRequest } from '../model/freeToolCalculateCropRequ
|
|
|
23
23
|
import { FreeToolCalculateCropResponse } from '../model/freeToolCalculateCropResponse';
|
|
24
24
|
import { FreeToolCalculateEngagementRateRequest } from '../model/freeToolCalculateEngagementRateRequest';
|
|
25
25
|
import { FreeToolCalculateEngagementRateResponse } from '../model/freeToolCalculateEngagementRateResponse';
|
|
26
|
+
import { FreeToolCheckLinkPreviewRequest } from '../model/freeToolCheckLinkPreviewRequest';
|
|
27
|
+
import { FreeToolCheckLinkPreviewResponse } from '../model/freeToolCheckLinkPreviewResponse';
|
|
26
28
|
import { FreeToolCheckPostRequest } from '../model/freeToolCheckPostRequest';
|
|
27
29
|
import { FreeToolCheckPostResponse } from '../model/freeToolCheckPostResponse';
|
|
28
30
|
import { FreeToolCleanTextRequest } from '../model/freeToolCleanTextRequest';
|
|
@@ -399,6 +401,75 @@ export class FreeToolsApi {
|
|
|
399
401
|
});
|
|
400
402
|
});
|
|
401
403
|
}
|
|
404
|
+
/**
|
|
405
|
+
* Check how a link previews on X, LinkedIn, Facebook and chat apps (Open Graph and Twitter card tags). The same logic as the free web tool at https://postboost.co/tools/link-preview-checker. No account needed: call it without a token, or with any API token.
|
|
406
|
+
* @summary Check how a link previews on X, LinkedIn, Facebook and chat apps (Open Graph and Twitter card tags)
|
|
407
|
+
* @param freeToolCheckLinkPreviewRequest
|
|
408
|
+
*/
|
|
409
|
+
public async checkLinkPreview (freeToolCheckLinkPreviewRequest: FreeToolCheckLinkPreviewRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: FreeToolCheckLinkPreviewResponse; }> {
|
|
410
|
+
const localVarPath = this.basePath + '/tools/link-preview-checker';
|
|
411
|
+
let localVarQueryParameters: any = {};
|
|
412
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
413
|
+
const produces = ['application/json'];
|
|
414
|
+
// give precedence to 'application/json'
|
|
415
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
416
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
417
|
+
} else {
|
|
418
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
419
|
+
}
|
|
420
|
+
let localVarFormParams: any = {};
|
|
421
|
+
|
|
422
|
+
// verify required parameter 'freeToolCheckLinkPreviewRequest' is not null or undefined
|
|
423
|
+
if (freeToolCheckLinkPreviewRequest === null || freeToolCheckLinkPreviewRequest === undefined) {
|
|
424
|
+
throw new Error('Required parameter freeToolCheckLinkPreviewRequest was null or undefined when calling checkLinkPreview.');
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
428
|
+
|
|
429
|
+
let localVarUseFormData = false;
|
|
430
|
+
|
|
431
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
432
|
+
method: 'POST',
|
|
433
|
+
qs: localVarQueryParameters,
|
|
434
|
+
headers: localVarHeaderParams,
|
|
435
|
+
uri: localVarPath,
|
|
436
|
+
useQuerystring: this._useQuerystring,
|
|
437
|
+
json: true,
|
|
438
|
+
body: ObjectSerializer.serialize(freeToolCheckLinkPreviewRequest, "FreeToolCheckLinkPreviewRequest")
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
let authenticationPromise = Promise.resolve();
|
|
442
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
443
|
+
|
|
444
|
+
let interceptorPromise = authenticationPromise;
|
|
445
|
+
for (const interceptor of this.interceptors) {
|
|
446
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
return interceptorPromise.then(() => {
|
|
450
|
+
if (Object.keys(localVarFormParams).length) {
|
|
451
|
+
if (localVarUseFormData) {
|
|
452
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
453
|
+
} else {
|
|
454
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
return new Promise<{ response: http.IncomingMessage; body: FreeToolCheckLinkPreviewResponse; }>((resolve, reject) => {
|
|
458
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
459
|
+
if (error) {
|
|
460
|
+
reject(error);
|
|
461
|
+
} else {
|
|
462
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
463
|
+
body = ObjectSerializer.deserialize(body, "FreeToolCheckLinkPreviewResponse");
|
|
464
|
+
resolve({ response: response, body: body });
|
|
465
|
+
} else {
|
|
466
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
});
|
|
471
|
+
});
|
|
472
|
+
}
|
|
402
473
|
/**
|
|
403
474
|
* Check a post against each network\'s publishing rules. The same logic as the free web tool at https://postboost.co/tools/social-media-post-checker. No account needed: call it without a token, or with any API token.
|
|
404
475
|
* @summary Check a post against each network\'s publishing rules
|
package/api/hashtagGroupsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/inboxApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/mediaApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/mentionsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/postsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/receiptsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/subscriptionsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/tagsApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/templatesApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/usersApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/webhooksApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/workspacesApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* PostBoost API
|
|
3
3
|
* The PostBoost REST API lets you publish, schedule, and analyze social media posts on every supported network from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Plan access Every workspace-scoped endpoint returns `403` when the workspace\'s plan does not include API access (capability `api`). ## Dates and times Post dates and times (`date`, `time`, `accounts_schedule`) are read in the request\'s `timezone` when one is given, otherwise in the workspace timezone. ## Idempotent requests Send an `Idempotency-Key` header (any unique string, for example a UUID) with a `POST`. Repeating the request with the same key within 24 hours returns the stored response with `Idempotent-Replayed: true` and creates nothing new. Reusing a key with a different body returns `422`; a request still in progress with the same key returns `409`. `5xx` and `429` responses are not stored, so they can be retried with the same key. ## Guardrails for automated clients Create and update requests are checked before anything is written: a post whose content matches one created for the same account in the last 24 hours returns `409` (`code: duplicate_post`, override with `allow_duplicate: true`), scheduling past an account\'s daily cap returns `429` (`code: account_daily_cap_reached`), and scheduling to an account that must be reconnected returns `422` (`code: account_unauthorized` or `account_token_missing`). Use `POST /{workspaceUuid}/posts/validate` for a dry run and `GET /{workspaceUuid}/activity` to review what API clients did. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.36.0
|
|
6
6
|
* Contact: hi@postboost.co
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -7,6 +7,8 @@ import { FreeToolCalculateCropRequest } from '../model/freeToolCalculateCropRequ
|
|
|
7
7
|
import { FreeToolCalculateCropResponse } from '../model/freeToolCalculateCropResponse';
|
|
8
8
|
import { FreeToolCalculateEngagementRateRequest } from '../model/freeToolCalculateEngagementRateRequest';
|
|
9
9
|
import { FreeToolCalculateEngagementRateResponse } from '../model/freeToolCalculateEngagementRateResponse';
|
|
10
|
+
import { FreeToolCheckLinkPreviewRequest } from '../model/freeToolCheckLinkPreviewRequest';
|
|
11
|
+
import { FreeToolCheckLinkPreviewResponse } from '../model/freeToolCheckLinkPreviewResponse';
|
|
10
12
|
import { FreeToolCheckPostRequest } from '../model/freeToolCheckPostRequest';
|
|
11
13
|
import { FreeToolCheckPostResponse } from '../model/freeToolCheckPostResponse';
|
|
12
14
|
import { FreeToolCleanTextRequest } from '../model/freeToolCleanTextRequest';
|
|
@@ -85,6 +87,14 @@ export declare class FreeToolsApi {
|
|
|
85
87
|
response: http.IncomingMessage;
|
|
86
88
|
body: FreeToolCalculateEngagementRateResponse;
|
|
87
89
|
}>;
|
|
90
|
+
checkLinkPreview(freeToolCheckLinkPreviewRequest: FreeToolCheckLinkPreviewRequest, options?: {
|
|
91
|
+
headers: {
|
|
92
|
+
[name: string]: string;
|
|
93
|
+
};
|
|
94
|
+
}): Promise<{
|
|
95
|
+
response: http.IncomingMessage;
|
|
96
|
+
body: FreeToolCheckLinkPreviewResponse;
|
|
97
|
+
}>;
|
|
88
98
|
checkPost(freeToolCheckPostRequest: FreeToolCheckPostRequest, options?: {
|
|
89
99
|
headers: {
|
|
90
100
|
[name: string]: string;
|
package/dist/api/freeToolsApi.js
CHANGED
|
@@ -313,6 +313,67 @@ class FreeToolsApi {
|
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
+
checkLinkPreview(freeToolCheckLinkPreviewRequest_1) {
|
|
317
|
+
return __awaiter(this, arguments, void 0, function* (freeToolCheckLinkPreviewRequest, options = { headers: {} }) {
|
|
318
|
+
const localVarPath = this.basePath + '/tools/link-preview-checker';
|
|
319
|
+
let localVarQueryParameters = {};
|
|
320
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
321
|
+
const produces = ['application/json'];
|
|
322
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
323
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
327
|
+
}
|
|
328
|
+
let localVarFormParams = {};
|
|
329
|
+
if (freeToolCheckLinkPreviewRequest === null || freeToolCheckLinkPreviewRequest === undefined) {
|
|
330
|
+
throw new Error('Required parameter freeToolCheckLinkPreviewRequest was null or undefined when calling checkLinkPreview.');
|
|
331
|
+
}
|
|
332
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
333
|
+
let localVarUseFormData = false;
|
|
334
|
+
let localVarRequestOptions = {
|
|
335
|
+
method: 'POST',
|
|
336
|
+
qs: localVarQueryParameters,
|
|
337
|
+
headers: localVarHeaderParams,
|
|
338
|
+
uri: localVarPath,
|
|
339
|
+
useQuerystring: this._useQuerystring,
|
|
340
|
+
json: true,
|
|
341
|
+
body: models_1.ObjectSerializer.serialize(freeToolCheckLinkPreviewRequest, "FreeToolCheckLinkPreviewRequest")
|
|
342
|
+
};
|
|
343
|
+
let authenticationPromise = Promise.resolve();
|
|
344
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
345
|
+
let interceptorPromise = authenticationPromise;
|
|
346
|
+
for (const interceptor of this.interceptors) {
|
|
347
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
348
|
+
}
|
|
349
|
+
return interceptorPromise.then(() => {
|
|
350
|
+
if (Object.keys(localVarFormParams).length) {
|
|
351
|
+
if (localVarUseFormData) {
|
|
352
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
355
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
return new Promise((resolve, reject) => {
|
|
359
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
360
|
+
if (error) {
|
|
361
|
+
reject(error);
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
365
|
+
body = models_1.ObjectSerializer.deserialize(body, "FreeToolCheckLinkPreviewResponse");
|
|
366
|
+
resolve({ response: response, body: body });
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
}
|
|
316
377
|
checkPost(freeToolCheckPostRequest_1) {
|
|
317
378
|
return __awaiter(this, arguments, void 0, function* (freeToolCheckPostRequest, options = { headers: {} }) {
|
|
318
379
|
const localVarPath = this.basePath + '/tools/social-media-post-checker';
|