postboost 1.3.0 → 1.5.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.
Files changed (75) hide show
  1. package/README.md +1 -29
  2. package/api/aIApi.ts +176 -0
  3. package/api/accountsApi.ts +1 -1
  4. package/api/apis.ts +3 -1
  5. package/api/mediaApi.ts +1 -1
  6. package/api/postsApi.ts +1 -1
  7. package/api/receiptsApi.ts +1 -1
  8. package/api/subscriptionsApi.ts +1 -1
  9. package/api/tagsApi.ts +1 -1
  10. package/api/usersApi.ts +1 -1
  11. package/api/workspacesApi.ts +1 -1
  12. package/model/account.ts +1 -1
  13. package/model/addGenericSubscriptionRequest.ts +1 -1
  14. package/model/blogToSocial200Response.ts +32 -0
  15. package/model/blogToSocial429Response.ts +31 -0
  16. package/model/blogToSocialCaption.ts +79 -0
  17. package/model/blogToSocialInput.ts +195 -0
  18. package/model/blogToSocialMedia.ts +46 -0
  19. package/model/blogToSocialResponse.ts +87 -0
  20. package/model/changeSubscriptionPlanRequest.ts +1 -1
  21. package/model/checkoutSubscription200Response.ts +1 -1
  22. package/model/checkoutSubscriptionRequest.ts +1 -1
  23. package/model/deleteMediaBulkRequest.ts +1 -1
  24. package/model/deleteMode.ts +1 -1
  25. package/model/deletePostRequest.ts +1 -1
  26. package/model/deletePostsBulkRequest.ts +1 -1
  27. package/model/deleteReceiptsBulkRequest.ts +1 -1
  28. package/model/deleteResult.ts +1 -1
  29. package/model/deleteUser400Response.ts +1 -1
  30. package/model/deleteUsersBulkRequest.ts +1 -1
  31. package/model/deleteWorkspacesBulkRequest.ts +1 -1
  32. package/model/getRemoteUploadStatus200Response.ts +1 -1
  33. package/model/initiateChunkedUpload201Response.ts +1 -1
  34. package/model/initiateChunkedUploadRequest.ts +1 -1
  35. package/model/initiateRemoteUpload201Response.ts +1 -1
  36. package/model/initiateRemoteUpload201ResponseOneOf.ts +1 -1
  37. package/model/initiateRemoteUploadRequest.ts +1 -1
  38. package/model/listAccounts200Response.ts +1 -1
  39. package/model/listMedia200Response.ts +1 -1
  40. package/model/listPosts200Response.ts +1 -1
  41. package/model/listReceipts200Response.ts +1 -1
  42. package/model/listTags200Response.ts +1 -1
  43. package/model/listUsers200Response.ts +1 -1
  44. package/model/listWorkspaces200Response.ts +1 -1
  45. package/model/media.ts +1 -1
  46. package/model/models.ts +23 -0
  47. package/model/paginationMeta.ts +1 -1
  48. package/model/paginationMetaLinks.ts +1 -1
  49. package/model/paginationMetaMeta.ts +1 -1
  50. package/model/post.ts +1 -1
  51. package/model/postContent.ts +1 -1
  52. package/model/postInput.ts +1 -1
  53. package/model/postStatus.ts +1 -1
  54. package/model/postVersion.ts +1 -1
  55. package/model/receipt.ts +1 -1
  56. package/model/receiptInput.ts +1 -1
  57. package/model/receiptUpdateInput.ts +1 -1
  58. package/model/removeUserFromWorkspaceRequest.ts +1 -1
  59. package/model/schedulePostRequest.ts +1 -1
  60. package/model/scheduleResult.ts +1 -1
  61. package/model/subscription.ts +1 -1
  62. package/model/subscriptionInput.ts +1 -1
  63. package/model/subscriptionStatus.ts +1 -1
  64. package/model/subscriptionUpdateInput.ts +1 -1
  65. package/model/tag.ts +1 -1
  66. package/model/tagInput.ts +1 -1
  67. package/model/updateMediaRequest.ts +1 -1
  68. package/model/uploadChunk201Response.ts +1 -1
  69. package/model/user.ts +1 -1
  70. package/model/userInput.ts +1 -1
  71. package/model/userUpdateInput.ts +1 -1
  72. package/model/workspace.ts +1 -1
  73. package/model/workspaceInput.ts +1 -1
  74. package/model/workspaceUserInput.ts +1 -1
  75. package/package.json +1 -1
package/README.md CHANGED
@@ -13,35 +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.3.0 |
17
-
18
- ## Quick start
19
-
20
- ```typescript
21
- import { PostsApi, Configuration } from 'postboost';
22
-
23
- const api = new PostsApi(new Configuration({ accessToken: process.env.POSTBOOST_API_TOKEN }));
24
-
25
- const posts = await api.listPosts('YOUR_WORKSPACE_UUID');
26
- posts.forEach(post => console.log(post.uuid));
27
- ```
28
-
29
- ---
30
-
31
- Official TypeScript/Node.js client for the [PostBoost API](https://postboost.co/docs/api).
32
-
33
- ## Install
34
-
35
- ```bash
36
- npm install postboost
37
- ```
38
-
39
- | | |
40
- |---|---|
41
- | **npm** | [npmjs.com/package/postboost](https://www.npmjs.com/package/postboost) |
42
- | **GitHub** | [postboost-co/postboost-node](https://github.com/postboost-co/postboost-node) |
43
- | **Docs** | [postboost.co/docs/api](https://postboost.co/docs/api) |
44
- | **Version** | v1.2.0 |
16
+ | **Version** | v1.5.0 |
45
17
 
46
18
  ## Quick start
47
19
 
package/api/aIApi.ts ADDED
@@ -0,0 +1,176 @@
1
+ /**
2
+ * PostBoost API
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: hi@postboost.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ import localVarRequest from 'request';
15
+ import http from 'http';
16
+
17
+ /* tslint:disable:no-unused-locals */
18
+ import { BlogToSocial200Response } from '../model/blogToSocial200Response';
19
+ import { BlogToSocial429Response } from '../model/blogToSocial429Response';
20
+ import { BlogToSocialInput } from '../model/blogToSocialInput';
21
+
22
+ import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
23
+ import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
24
+
25
+ import { HttpError, RequestFile } from './apis';
26
+
27
+ let defaultBasePath = 'https://postboost.co/app/api';
28
+
29
+ // ===============================================
30
+ // This file is autogenerated - Please do not edit
31
+ // ===============================================
32
+
33
+ export enum AIApiApiKeys {
34
+ }
35
+
36
+ export class AIApi {
37
+ protected _basePath = defaultBasePath;
38
+ protected _defaultHeaders : any = {};
39
+ protected _useQuerystring : boolean = false;
40
+
41
+ protected authentications = {
42
+ 'default': <Authentication>new VoidAuth(),
43
+ 'bearerAuth': new HttpBearerAuth(),
44
+ }
45
+
46
+ protected interceptors: Interceptor[] = [];
47
+
48
+ constructor(basePath?: string);
49
+ constructor(basePathOrUsername: string, password?: string, basePath?: string) {
50
+ if (password) {
51
+ if (basePath) {
52
+ this.basePath = basePath;
53
+ }
54
+ } else {
55
+ if (basePathOrUsername) {
56
+ this.basePath = basePathOrUsername
57
+ }
58
+ }
59
+ }
60
+
61
+ set useQuerystring(value: boolean) {
62
+ this._useQuerystring = value;
63
+ }
64
+
65
+ set basePath(basePath: string) {
66
+ this._basePath = basePath;
67
+ }
68
+
69
+ set defaultHeaders(defaultHeaders: any) {
70
+ this._defaultHeaders = defaultHeaders;
71
+ }
72
+
73
+ get defaultHeaders() {
74
+ return this._defaultHeaders;
75
+ }
76
+
77
+ get basePath() {
78
+ return this._basePath;
79
+ }
80
+
81
+ public setDefaultAuthentication(auth: Authentication) {
82
+ this.authentications.default = auth;
83
+ }
84
+
85
+ public setApiKey(key: AIApiApiKeys, value: string) {
86
+ (this.authentications as any)[AIApiApiKeys[key]].apiKey = value;
87
+ }
88
+
89
+ set accessToken(accessToken: string | (() => string)) {
90
+ this.authentications.bearerAuth.accessToken = accessToken;
91
+ }
92
+
93
+ public addInterceptor(interceptor: Interceptor) {
94
+ this.interceptors.push(interceptor);
95
+ }
96
+
97
+ /**
98
+ * Generates platform-specific social media captions from a blog post URL or directly provided title and excerpt. Each platform generates one caption, which consumes one AI credit from the workspace\'s monthly allowance. **Input modes** (at least one required): - **URL mode**: provide `url` and the API scrapes the blog content automatically, including detecting the featured image via `og:image`. - **Direct mode**: provide `title` and `excerpt` directly (no scraping). If both are provided, direct values take priority. When `create_post` is `true`, a draft post is created in the workspace with per-account caption versions. If an image is available (from `image_url` or the scraped `og:image`), it is imported into the workspace media library and attached to the draft post.
99
+ * @summary Generate social media captions from a blog post
100
+ * @param workspaceUuid UUID of the workspace.
101
+ * @param blogToSocialInput
102
+ */
103
+ public async blogToSocial (workspaceUuid: string, blogToSocialInput: BlogToSocialInput, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: BlogToSocial200Response; }> {
104
+ const localVarPath = this.basePath + '/{workspaceUuid}/ai/blog-to-social'
105
+ .replace('{' + 'workspaceUuid' + '}', encodeURIComponent(String(workspaceUuid)));
106
+ let localVarQueryParameters: any = {};
107
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
108
+ const produces = ['application/json'];
109
+ // give precedence to 'application/json'
110
+ if (produces.indexOf('application/json') >= 0) {
111
+ localVarHeaderParams.Accept = 'application/json';
112
+ } else {
113
+ localVarHeaderParams.Accept = produces.join(',');
114
+ }
115
+ let localVarFormParams: any = {};
116
+
117
+ // verify required parameter 'workspaceUuid' is not null or undefined
118
+ if (workspaceUuid === null || workspaceUuid === undefined) {
119
+ throw new Error('Required parameter workspaceUuid was null or undefined when calling blogToSocial.');
120
+ }
121
+
122
+ // verify required parameter 'blogToSocialInput' is not null or undefined
123
+ if (blogToSocialInput === null || blogToSocialInput === undefined) {
124
+ throw new Error('Required parameter blogToSocialInput was null or undefined when calling blogToSocial.');
125
+ }
126
+
127
+ (<any>Object).assign(localVarHeaderParams, options.headers);
128
+
129
+ let localVarUseFormData = false;
130
+
131
+ let localVarRequestOptions: localVarRequest.Options = {
132
+ method: 'POST',
133
+ qs: localVarQueryParameters,
134
+ headers: localVarHeaderParams,
135
+ uri: localVarPath,
136
+ useQuerystring: this._useQuerystring,
137
+ json: true,
138
+ body: ObjectSerializer.serialize(blogToSocialInput, "BlogToSocialInput")
139
+ };
140
+
141
+ let authenticationPromise = Promise.resolve();
142
+ if (this.authentications.bearerAuth.accessToken) {
143
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
144
+ }
145
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
146
+
147
+ let interceptorPromise = authenticationPromise;
148
+ for (const interceptor of this.interceptors) {
149
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
150
+ }
151
+
152
+ return interceptorPromise.then(() => {
153
+ if (Object.keys(localVarFormParams).length) {
154
+ if (localVarUseFormData) {
155
+ (<any>localVarRequestOptions).formData = localVarFormParams;
156
+ } else {
157
+ localVarRequestOptions.form = localVarFormParams;
158
+ }
159
+ }
160
+ return new Promise<{ response: http.IncomingMessage; body: BlogToSocial200Response; }>((resolve, reject) => {
161
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
162
+ if (error) {
163
+ reject(error);
164
+ } else {
165
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
166
+ body = ObjectSerializer.deserialize(body, "BlogToSocial200Response");
167
+ resolve({ response: response, body: body });
168
+ } else {
169
+ reject(new HttpError(response, body, response.statusCode));
170
+ }
171
+ }
172
+ });
173
+ });
174
+ });
175
+ }
176
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PostBoost API
3
- * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms 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`. ## 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 ```
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
5
  * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hi@postboost.co
package/api/apis.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './aIApi';
2
+ import { AIApi } from './aIApi';
1
3
  export * from './accountsApi';
2
4
  import { AccountsApi } from './accountsApi';
3
5
  export * from './mediaApi';
@@ -25,4 +27,4 @@ export class HttpError extends Error {
25
27
 
26
28
  export { RequestFile } from '../model/models';
27
29
 
28
- export const APIS = [AccountsApi, MediaApi, PostsApi, ReceiptsApi, SubscriptionsApi, TagsApi, UsersApi, WorkspacesApi];
30
+ export const APIS = [AIApi, AccountsApi, MediaApi, PostsApi, ReceiptsApi, SubscriptionsApi, TagsApi, UsersApi, WorkspacesApi];
package/api/mediaApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PostBoost API
3
- * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms 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`. ## 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 ```
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
5
  * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hi@postboost.co
package/api/postsApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PostBoost API
3
- * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms 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`. ## 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 ```
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
5
  * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hi@postboost.co
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PostBoost API
3
- * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms 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`. ## 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 ```
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
5
  * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hi@postboost.co
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PostBoost API
3
- * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms 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`. ## 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 ```
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
5
  * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hi@postboost.co
package/api/tagsApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PostBoost API
3
- * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms 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`. ## 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 ```
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
5
  * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hi@postboost.co
package/api/usersApi.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PostBoost API
3
- * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms 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`. ## 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 ```
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
5
  * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hi@postboost.co
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PostBoost API
3
- * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms 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`. ## 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 ```
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
5
  * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hi@postboost.co
package/model/account.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PostBoost API
3
- * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms 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`. ## 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 ```
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
5
  * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hi@postboost.co
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PostBoost API
3
- * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms 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`. ## 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 ```
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
5
  * The version of the OpenAPI document: 1.0.0
6
6
  * Contact: hi@postboost.co
@@ -0,0 +1,32 @@
1
+ /**
2
+ * PostBoost API
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: hi@postboost.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+ import { BlogToSocialResponse } from './blogToSocialResponse';
15
+
16
+ export class BlogToSocial200Response {
17
+ 'data'?: BlogToSocialResponse;
18
+
19
+ static discriminator: string | undefined = undefined;
20
+
21
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
22
+ {
23
+ "name": "data",
24
+ "baseName": "data",
25
+ "type": "BlogToSocialResponse"
26
+ } ];
27
+
28
+ static getAttributeTypeMap() {
29
+ return BlogToSocial200Response.attributeTypeMap;
30
+ }
31
+ }
32
+
@@ -0,0 +1,31 @@
1
+ /**
2
+ * PostBoost API
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: hi@postboost.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+
15
+ export class BlogToSocial429Response {
16
+ 'message'?: string;
17
+
18
+ static discriminator: string | undefined = undefined;
19
+
20
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
21
+ {
22
+ "name": "message",
23
+ "baseName": "message",
24
+ "type": "string"
25
+ } ];
26
+
27
+ static getAttributeTypeMap() {
28
+ return BlogToSocial429Response.attributeTypeMap;
29
+ }
30
+ }
31
+
@@ -0,0 +1,79 @@
1
+ /**
2
+ * PostBoost API
3
+ * The PostBoost REST API lets you publish, schedule, and analyze social media posts across 12+ platforms 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`. ## 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
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: hi@postboost.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+
15
+ export class BlogToSocialCaption {
16
+ /**
17
+ * ID of the social account this caption was generated for.
18
+ */
19
+ 'accountId'?: number;
20
+ /**
21
+ * Social media platform identifier.
22
+ */
23
+ 'provider'?: string;
24
+ /**
25
+ * The generated caption text. `null` if generation failed for this account.
26
+ */
27
+ 'content'?: string;
28
+ /**
29
+ * Character count of the generated content. `null` if generation failed.
30
+ */
31
+ 'characterCount'?: number;
32
+ /**
33
+ * Maximum allowed character count for this platform.
34
+ */
35
+ 'characterLimit'?: number;
36
+ /**
37
+ * Error message if caption generation failed for this account. `null` on success.
38
+ */
39
+ 'error'?: string;
40
+
41
+ static discriminator: string | undefined = undefined;
42
+
43
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
44
+ {
45
+ "name": "accountId",
46
+ "baseName": "account_id",
47
+ "type": "number"
48
+ },
49
+ {
50
+ "name": "provider",
51
+ "baseName": "provider",
52
+ "type": "string"
53
+ },
54
+ {
55
+ "name": "content",
56
+ "baseName": "content",
57
+ "type": "string"
58
+ },
59
+ {
60
+ "name": "characterCount",
61
+ "baseName": "character_count",
62
+ "type": "number"
63
+ },
64
+ {
65
+ "name": "characterLimit",
66
+ "baseName": "character_limit",
67
+ "type": "number"
68
+ },
69
+ {
70
+ "name": "error",
71
+ "baseName": "error",
72
+ "type": "string"
73
+ } ];
74
+
75
+ static getAttributeTypeMap() {
76
+ return BlogToSocialCaption.attributeTypeMap;
77
+ }
78
+ }
79
+