postboost 1.7.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 +2 -2
  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 +2 -2
  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/mediaFolderRef.ts +37 -0
  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 -0
  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
@@ -0,0 +1,53 @@
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`. ## 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
+ *
5
+ * The version of the OpenAPI document: 1.8.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
+ /**
16
+ * The caller\'s membership in the workspace.
17
+ */
18
+ export class PublicWorkspacePivot {
19
+ 'role'?: PublicWorkspacePivot.RoleEnum;
20
+ 'canApprove'?: boolean;
21
+ 'joinedAt'?: string;
22
+
23
+ static discriminator: string | undefined = undefined;
24
+
25
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
26
+ {
27
+ "name": "role",
28
+ "baseName": "role",
29
+ "type": "PublicWorkspacePivot.RoleEnum"
30
+ },
31
+ {
32
+ "name": "canApprove",
33
+ "baseName": "can_approve",
34
+ "type": "boolean"
35
+ },
36
+ {
37
+ "name": "joinedAt",
38
+ "baseName": "joined_at",
39
+ "type": "string"
40
+ } ];
41
+
42
+ static getAttributeTypeMap() {
43
+ return PublicWorkspacePivot.attributeTypeMap;
44
+ }
45
+ }
46
+
47
+ export namespace PublicWorkspacePivot {
48
+ export enum RoleEnum {
49
+ Admin = <any> 'admin',
50
+ Member = <any> 'member',
51
+ Viewer = <any> 'viewer'
52
+ }
53
+ }
@@ -0,0 +1,46 @@
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`. ## 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
+ *
5
+ * The version of the OpenAPI document: 1.8.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 PublishProgress {
16
+ /**
17
+ * Number of accounts the post goes to.
18
+ */
19
+ 'total': number;
20
+ 'published': number;
21
+ 'failed': number;
22
+
23
+ static discriminator: string | undefined = undefined;
24
+
25
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
26
+ {
27
+ "name": "total",
28
+ "baseName": "total",
29
+ "type": "number"
30
+ },
31
+ {
32
+ "name": "published",
33
+ "baseName": "published",
34
+ "type": "number"
35
+ },
36
+ {
37
+ "name": "failed",
38
+ "baseName": "failed",
39
+ "type": "number"
40
+ } ];
41
+
42
+ static getAttributeTypeMap() {
43
+ return PublishProgress.attributeTypeMap;
44
+ }
45
+ }
46
+
package/model/receipt.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).
@@ -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).
@@ -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`. ## 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
+ *
5
+ * The version of the OpenAPI document: 1.8.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 RemoveGenericSubscription422Response {
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 RemoveGenericSubscription422Response.attributeTypeMap;
29
+ }
30
+ }
31
+
@@ -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).
@@ -0,0 +1,47 @@
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`. ## 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
+ *
5
+ * The version of the OpenAPI document: 1.8.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 { PostStatus } from './postStatus';
15
+ import { PublishProgress } from './publishProgress';
16
+
17
+ export class RetryPostAccountResult {
18
+ 'success': boolean;
19
+ 'status': PostStatus;
20
+ 'publishProgress': PublishProgress;
21
+
22
+ static discriminator: string | undefined = undefined;
23
+
24
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
25
+ {
26
+ "name": "success",
27
+ "baseName": "success",
28
+ "type": "boolean"
29
+ },
30
+ {
31
+ "name": "status",
32
+ "baseName": "status",
33
+ "type": "PostStatus"
34
+ },
35
+ {
36
+ "name": "publishProgress",
37
+ "baseName": "publish_progress",
38
+ "type": "PublishProgress"
39
+ } ];
40
+
41
+ static getAttributeTypeMap() {
42
+ return RetryPostAccountResult.attributeTypeMap;
43
+ }
44
+ }
45
+
46
+ export namespace RetryPostAccountResult {
47
+ }
@@ -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).
@@ -11,9 +11,26 @@
11
11
  */
12
12
 
13
13
  import { RequestFile } from './models';
14
+ import { AccountSchedule } from './accountSchedule';
14
15
 
15
16
  export class SchedulePostRequest {
16
17
  'postNow': boolean;
18
+ /**
19
+ * New date for the post (Y-m-d). Use together with `time`.
20
+ */
21
+ 'date'?: string;
22
+ /**
23
+ * New time for the post (H:i).
24
+ */
25
+ 'time'?: string;
26
+ /**
27
+ * Timezone `date`, `time` and `accounts_schedule` are read in. Defaults to the workspace timezone.
28
+ */
29
+ 'timezone'?: string;
30
+ /**
31
+ * Per-account departure times. When omitted, accounts keep their offsets from the post time.
32
+ */
33
+ 'accountsSchedule'?: Array<AccountSchedule>;
17
34
 
18
35
  static discriminator: string | undefined = undefined;
19
36
 
@@ -22,6 +39,26 @@ export class SchedulePostRequest {
22
39
  "name": "postNow",
23
40
  "baseName": "postNow",
24
41
  "type": "boolean"
42
+ },
43
+ {
44
+ "name": "date",
45
+ "baseName": "date",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "name": "time",
50
+ "baseName": "time",
51
+ "type": "string"
52
+ },
53
+ {
54
+ "name": "timezone",
55
+ "baseName": "timezone",
56
+ "type": "string"
57
+ },
58
+ {
59
+ "name": "accountsSchedule",
60
+ "baseName": "accounts_schedule",
61
+ "type": "Array<AccountSchedule>"
25
62
  } ];
26
63
 
27
64
  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).
@@ -15,6 +15,10 @@ import { RequestFile } from './models';
15
15
  export class ScheduleResult {
16
16
  'success': boolean;
17
17
  'scheduledAt'?: Date;
18
+ /**
19
+ * True when the post now waits for approval instead of being scheduled (not returned by approve).
20
+ */
21
+ 'needsApproval'?: boolean;
18
22
 
19
23
  static discriminator: string | undefined = undefined;
20
24
 
@@ -28,6 +32,11 @@ export class ScheduleResult {
28
32
  "name": "scheduledAt",
29
33
  "baseName": "scheduled_at",
30
34
  "type": "Date"
35
+ },
36
+ {
37
+ "name": "needsApproval",
38
+ "baseName": "needs_approval",
39
+ "type": "boolean"
31
40
  } ];
32
41
 
33
42
  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).
@@ -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).