postboost 1.6.0 → 1.7.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 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.6.0 |
16
+ | **Version** | v1.7.0 |
17
17
 
18
18
  ## Quick start
19
19
 
@@ -11,10 +11,10 @@
11
11
  */
12
12
 
13
13
  import { RequestFile } from './models';
14
- import { GeneratedImageItem } from './generatedImageItem';
14
+ import { Media } from './media';
15
15
 
16
16
  export class ImageGenerationResponse {
17
- 'images': Array<GeneratedImageItem>;
17
+ 'images': Array<Media>;
18
18
  'promptUsed': string;
19
19
  'revisedPrompt'?: string;
20
20
  'aspectRatio': string;
@@ -28,7 +28,7 @@ export class ImageGenerationResponse {
28
28
  {
29
29
  "name": "images",
30
30
  "baseName": "images",
31
- "type": "Array<GeneratedImageItem>"
31
+ "type": "Array<Media>"
32
32
  },
33
33
  {
34
34
  "name": "promptUsed",
@@ -11,10 +11,10 @@
11
11
  */
12
12
 
13
13
  import { RequestFile } from './models';
14
- import { GeneratedImageItem } from './generatedImageItem';
14
+ import { Media } from './media';
15
15
 
16
16
  export class ImageVariationsResponse {
17
- 'images': Array<GeneratedImageItem>;
17
+ 'images': Array<Media>;
18
18
  'aspectRatio': string;
19
19
  'quality': string;
20
20
  'creditsUsed': number;
@@ -26,7 +26,7 @@ export class ImageVariationsResponse {
26
26
  {
27
27
  "name": "images",
28
28
  "baseName": "images",
29
- "type": "Array<GeneratedImageItem>"
29
+ "type": "Array<Media>"
30
30
  },
31
31
  {
32
32
  "name": "aspectRatio",
package/model/models.ts CHANGED
@@ -20,7 +20,6 @@ export * from './deleteResult';
20
20
  export * from './deleteUser400Response';
21
21
  export * from './deleteUsersBulkRequest';
22
22
  export * from './deleteWorkspacesBulkRequest';
23
- export * from './generatedImageItem';
24
23
  export * from './getRemoteUploadStatus200Response';
25
24
  export * from './imageAltText200Response';
26
25
  export * from './imageAltTextInput';
@@ -112,7 +111,6 @@ import { DeleteResult } from './deleteResult';
112
111
  import { DeleteUser400Response } from './deleteUser400Response';
113
112
  import { DeleteUsersBulkRequest } from './deleteUsersBulkRequest';
114
113
  import { DeleteWorkspacesBulkRequest } from './deleteWorkspacesBulkRequest';
115
- import { GeneratedImageItem } from './generatedImageItem';
116
114
  import { GetRemoteUploadStatus200Response } from './getRemoteUploadStatus200Response';
117
115
  import { ImageAltText200Response } from './imageAltText200Response';
118
116
  import { ImageAltTextInput } from './imageAltTextInput';
@@ -231,7 +229,6 @@ let typeMap: {[index: string]: any} = {
231
229
  "DeleteUser400Response": DeleteUser400Response,
232
230
  "DeleteUsersBulkRequest": DeleteUsersBulkRequest,
233
231
  "DeleteWorkspacesBulkRequest": DeleteWorkspacesBulkRequest,
234
- "GeneratedImageItem": GeneratedImageItem,
235
232
  "GetRemoteUploadStatus200Response": GetRemoteUploadStatus200Response,
236
233
  "ImageAltText200Response": ImageAltText200Response,
237
234
  "ImageAltTextInput": ImageAltTextInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postboost",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "NodeJS client for postboost",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,43 +0,0 @@
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 GeneratedImageItem {
16
- 'mediaId': number;
17
- 'url': string;
18
- 'thumbUrl': string;
19
-
20
- static discriminator: string | undefined = undefined;
21
-
22
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
23
- {
24
- "name": "mediaId",
25
- "baseName": "media_id",
26
- "type": "number"
27
- },
28
- {
29
- "name": "url",
30
- "baseName": "url",
31
- "type": "string"
32
- },
33
- {
34
- "name": "thumbUrl",
35
- "baseName": "thumb_url",
36
- "type": "string"
37
- } ];
38
-
39
- static getAttributeTypeMap() {
40
- return GeneratedImageItem.attributeTypeMap;
41
- }
42
- }
43
-