postboost 1.6.0 → 1.8.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 (132) hide show
  1. package/README.md +1 -1
  2. package/api/aIApi.ts +2 -2
  3. package/api/accountsApi.ts +24 -4
  4. package/api/analyticsApi.ts +553 -0
  5. package/api/apis.ts +5 -1
  6. package/api/mediaApi.ts +381 -10
  7. package/api/mentionsApi.ts +507 -0
  8. package/api/postsApi.ts +182 -9
  9. package/api/receiptsApi.ts +2 -2
  10. package/api/subscriptionsApi.ts +10 -5
  11. package/api/tagsApi.ts +2 -2
  12. package/api/usersApi.ts +2 -2
  13. package/api/workspacesApi.ts +142 -3
  14. package/model/aICredits.ts +52 -0
  15. package/model/account.ts +35 -2
  16. package/model/accountAnalytics.ts +73 -0
  17. package/model/accountAnalyticsInitialSync.ts +37 -0
  18. package/model/accountSchedule.ts +49 -0
  19. package/model/addGenericSubscriptionRequest.ts +2 -2
  20. package/model/addPostToQueueRequest.ts +34 -0
  21. package/model/analyticsPeriod.ts +52 -0
  22. package/model/analyticsSummary.ts +39 -0
  23. package/model/analyticsSummaryData.ts +100 -0
  24. package/model/approvePostRequest.ts +62 -0
  25. package/model/bestPostingTimes.ts +41 -0
  26. package/model/bestPostingTimesTimesInner.ts +49 -0
  27. package/model/blogToSocial200Response.ts +2 -2
  28. package/model/blogToSocial429Response.ts +2 -2
  29. package/model/blogToSocialCaption.ts +2 -2
  30. package/model/blogToSocialInput.ts +2 -2
  31. package/model/blogToSocialMedia.ts +2 -2
  32. package/model/blogToSocialResponse.ts +2 -2
  33. package/model/cancelSubscription422Response.ts +38 -0
  34. package/model/cancelSubscription422ResponseErrors.ts +31 -0
  35. package/model/cancelSubscriptionRequest.ts +34 -0
  36. package/model/changeSubscriptionPlanRequest.ts +2 -2
  37. package/model/checkoutSubscription200Response.ts +2 -2
  38. package/model/checkoutSubscriptionRequest.ts +2 -2
  39. package/model/completeChunkedUploadRequest.ts +40 -0
  40. package/model/createMediaFolderRequest.ts +43 -0
  41. package/model/createMention201Response.ts +32 -0
  42. package/model/deleteMediaBulkRequest.ts +6 -5
  43. package/model/deleteMediaBulkRequestItemsInner.ts +26 -0
  44. package/model/deleteMediaFolderRequest.ts +31 -0
  45. package/model/deleteMode.ts +2 -2
  46. package/model/deletePostRequest.ts +2 -2
  47. package/model/deletePostsBulkRequest.ts +2 -2
  48. package/model/deleteReceiptsBulkRequest.ts +2 -2
  49. package/model/deleteResult.ts +2 -2
  50. package/model/deleteUser400Response.ts +2 -2
  51. package/model/deleteUsersBulkRequest.ts +2 -2
  52. package/model/deleteWorkspacesBulkRequest.ts +2 -2
  53. package/model/getRemoteUploadStatus200Response.ts +2 -2
  54. package/model/imageAltText200Response.ts +2 -2
  55. package/model/imageAltTextInput.ts +2 -2
  56. package/model/imageAltTextResponse.ts +2 -2
  57. package/model/imageEditInput.ts +2 -2
  58. package/model/imageGenerate200Response.ts +2 -2
  59. package/model/imageGenerate429Response.ts +2 -2
  60. package/model/imageGenerateInput.ts +2 -2
  61. package/model/imageGenerationResponse.ts +5 -5
  62. package/model/imagePrompt200Response.ts +2 -2
  63. package/model/imagePrompt429Response.ts +2 -2
  64. package/model/imagePromptInput.ts +2 -2
  65. package/model/imagePromptResponse.ts +2 -2
  66. package/model/imageVariations200Response.ts +2 -2
  67. package/model/imageVariationsInput.ts +2 -2
  68. package/model/imageVariationsResponse.ts +5 -5
  69. package/model/initiateChunkedUpload201Response.ts +2 -2
  70. package/model/initiateChunkedUploadRequest.ts +2 -2
  71. package/model/initiateRemoteUpload201Response.ts +60 -2
  72. package/model/initiateRemoteUpload201ResponseOneOf.ts +2 -2
  73. package/model/initiateRemoteUploadRequest.ts +11 -2
  74. package/model/listAccounts200Response.ts +2 -2
  75. package/model/listMedia200Response.ts +2 -2
  76. package/model/listMediaFolders200Response.ts +32 -0
  77. package/model/listMentions200Response.ts +46 -0
  78. package/model/listMyWorkspaces200Response.ts +32 -0
  79. package/model/listPosts200Response.ts +2 -2
  80. package/model/listReceipts200Response.ts +2 -2
  81. package/model/listTags200Response.ts +2 -2
  82. package/model/listUsers200Response.ts +2 -2
  83. package/model/listWorkspaces200Response.ts +2 -2
  84. package/model/media.ts +60 -2
  85. package/model/mediaFolder.ts +55 -0
  86. package/model/mediaFolderInput.ts +43 -0
  87. package/model/{generatedImageItem.ts → mediaFolderRef.ts} +10 -16
  88. package/model/mention.ts +65 -0
  89. package/model/mentionIdentity.ts +55 -0
  90. package/model/mentionIdentityInput.ts +67 -0
  91. package/model/mentionInput.ts +44 -0
  92. package/model/models.ts +125 -3
  93. package/model/paginationMeta.ts +2 -2
  94. package/model/paginationMetaLinks.ts +2 -2
  95. package/model/paginationMetaMeta.ts +2 -2
  96. package/model/post.ts +12 -2
  97. package/model/postAnalytics.ts +46 -0
  98. package/model/postContent.ts +2 -2
  99. package/model/postInput.ts +15 -2
  100. package/model/postStatus.ts +9 -3
  101. package/model/postVersion.ts +11 -2
  102. package/model/postingTimeSlot.ts +51 -0
  103. package/model/postingTimes.ts +88 -0
  104. package/model/postingTimesBestInner.ts +49 -0
  105. package/model/postingTimesDayIntervalsInnerInner.ts +69 -0
  106. package/model/postingTimesDaysInner.ts +57 -0
  107. package/model/publicWorkspace.ts +50 -0
  108. package/model/publicWorkspacePivot.ts +53 -0
  109. package/model/publishProgress.ts +46 -0
  110. package/model/receipt.ts +2 -2
  111. package/model/receiptInput.ts +2 -2
  112. package/model/receiptUpdateInput.ts +2 -2
  113. package/model/removeGenericSubscription422Response.ts +31 -0
  114. package/model/removeUserFromWorkspaceRequest.ts +2 -2
  115. package/model/retryPostAccountResult.ts +47 -0
  116. package/model/schedulePostRequest.ts +39 -2
  117. package/model/scheduleResult.ts +11 -2
  118. package/model/subscription.ts +2 -2
  119. package/model/subscriptionInput.ts +2 -2
  120. package/model/subscriptionStatus.ts +2 -2
  121. package/model/subscriptionUpdateInput.ts +2 -2
  122. package/model/tag.ts +2 -2
  123. package/model/tagInput.ts +2 -2
  124. package/model/updateMediaRequest.ts +18 -3
  125. package/model/uploadChunk201Response.ts +2 -2
  126. package/model/user.ts +11 -2
  127. package/model/userInput.ts +2 -2
  128. package/model/userUpdateInput.ts +2 -2
  129. package/model/workspace.ts +17 -3
  130. package/model/workspaceInput.ts +8 -3
  131. package/model/workspaceUserInput.ts +2 -2
  132. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.0
6
6
  * Contact: hi@postboost.co
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.0
6
6
  * Contact: hi@postboost.co
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.0
6
6
  * Contact: hi@postboost.co
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.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/model/tag.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.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/model/tagInput.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.0
6
6
  * Contact: hi@postboost.co
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.0
6
6
  * Contact: hi@postboost.co
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,18 +13,33 @@
13
13
  import { RequestFile } from './models';
14
14
 
15
15
  export class UpdateMediaRequest {
16
+ 'name'?: string;
16
17
  /**
17
18
  * Alternative text for accessibility.
18
19
  */
19
- 'altText': string;
20
+ 'altText'?: string;
21
+ /**
22
+ * UUID of the media folder to move the item to, or null for the library root.
23
+ */
24
+ 'folder'?: string;
20
25
 
21
26
  static discriminator: string | undefined = undefined;
22
27
 
23
28
  static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
29
+ {
30
+ "name": "name",
31
+ "baseName": "name",
32
+ "type": "string"
33
+ },
24
34
  {
25
35
  "name": "altText",
26
36
  "baseName": "alt_text",
27
37
  "type": "string"
38
+ },
39
+ {
40
+ "name": "folder",
41
+ "baseName": "folder",
42
+ "type": "string"
28
43
  } ];
29
44
 
30
45
  static getAttributeTypeMap() {
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.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/model/user.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.0
6
6
  * Contact: hi@postboost.co
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,6 +16,10 @@ export class User {
16
16
  'id': number;
17
17
  'name': string;
18
18
  'email': string;
19
+ /**
20
+ * URL of the user\'s avatar, or null when none is set.
21
+ */
22
+ 'avatar'?: string;
19
23
  'isAdmin': boolean;
20
24
  'emailVerifiedAt'?: Date;
21
25
  'createdAt': Date;
@@ -38,6 +42,11 @@ export class User {
38
42
  "baseName": "email",
39
43
  "type": "string"
40
44
  },
45
+ {
46
+ "name": "avatar",
47
+ "baseName": "avatar",
48
+ "type": "string"
49
+ },
41
50
  {
42
51
  "name": "isAdmin",
43
52
  "baseName": "is_admin",
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.0
6
6
  * Contact: hi@postboost.co
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.0
6
6
  * Contact: hi@postboost.co
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.0
6
6
  * Contact: hi@postboost.co
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,7 +16,16 @@ import { User } from './user';
16
16
  export class Workspace {
17
17
  'uuid': string;
18
18
  'name': string;
19
- 'hexColor': string;
19
+ /**
20
+ * Deprecated. Workspaces no longer have a colour (workspaces now use `avatar`); the API returns the constant `4f46e5` so existing clients keep working. Will be removed in API v2.
21
+ *
22
+ * @deprecated
23
+ */
24
+ 'hexColor'?: string;
25
+ /**
26
+ * URL of the workspace avatar, or null when none is set. Supersedes `hex_color`.
27
+ */
28
+ 'avatar'?: string;
20
29
  'owner'?: User;
21
30
  'accessStatus': Workspace.AccessStatusEnum;
22
31
  'createdAt': Date;
@@ -39,6 +48,11 @@ export class Workspace {
39
48
  "baseName": "hex_color",
40
49
  "type": "string"
41
50
  },
51
+ {
52
+ "name": "avatar",
53
+ "baseName": "avatar",
54
+ "type": "string"
55
+ },
42
56
  {
43
57
  "name": "owner",
44
58
  "baseName": "owner",
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.0
6
6
  * Contact: hi@postboost.co
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,7 +14,12 @@ import { RequestFile } from './models';
14
14
 
15
15
  export class WorkspaceInput {
16
16
  'name': string;
17
- 'hexColor': string;
17
+ /**
18
+ * Ignored since v2.0; kept for backward compatibility
19
+ *
20
+ * @deprecated
21
+ */
22
+ 'hexColor'?: string;
18
23
  'ownerId'?: number;
19
24
  'accessStatus': WorkspaceInput.AccessStatusEnum;
20
25
 
@@ -1,8 +1,8 @@
1
1
  /**
2
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 ```
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`. ## 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. ## 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.0.0
5
+ * The version of the OpenAPI document: 1.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postboost",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "description": "NodeJS client for postboost",
5
5
  "repository": {
6
6
  "type": "git",