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
package/model/account.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).
@@ -24,6 +24,18 @@ export class Account {
24
24
  */
25
25
  'data': object;
26
26
  'authorized': boolean;
27
+ /**
28
+ * Public URL of the account\'s profile on the network, when known.
29
+ */
30
+ 'profileUrl'?: string;
31
+ /**
32
+ * Only present when the account is embedded in a post. Publishing state of this account for the post.
33
+ */
34
+ 'publishStatus'?: Account.PublishStatusEnum;
35
+ /**
36
+ * Only present when the account is embedded in a post. How many parts (for example thread items or a first comment) are live on the network.
37
+ */
38
+ 'publishedParts'?: number;
27
39
  'createdAt': Date;
28
40
 
29
41
  static discriminator: string | undefined = undefined;
@@ -69,6 +81,21 @@ export class Account {
69
81
  "baseName": "authorized",
70
82
  "type": "boolean"
71
83
  },
84
+ {
85
+ "name": "profileUrl",
86
+ "baseName": "profile_url",
87
+ "type": "string"
88
+ },
89
+ {
90
+ "name": "publishStatus",
91
+ "baseName": "publish_status",
92
+ "type": "Account.PublishStatusEnum"
93
+ },
94
+ {
95
+ "name": "publishedParts",
96
+ "baseName": "published_parts",
97
+ "type": "number"
98
+ },
72
99
  {
73
100
  "name": "createdAt",
74
101
  "baseName": "created_at",
@@ -91,4 +118,10 @@ export namespace Account {
91
118
  Youtube = <any> 'youtube',
92
119
  Mastodon = <any> 'mastodon'
93
120
  }
121
+ export enum PublishStatusEnum {
122
+ Pending = <any> 'pending',
123
+ Publishing = <any> 'publishing',
124
+ Published = <any> 'published',
125
+ Failed = <any> 'failed'
126
+ }
94
127
  }
@@ -0,0 +1,73 @@
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 { Account } from './account';
15
+ import { AccountAnalyticsInitialSync } from './accountAnalyticsInitialSync';
16
+ import { AnalyticsPeriod } from './analyticsPeriod';
17
+
18
+ export class AccountAnalytics {
19
+ 'account': Account;
20
+ /**
21
+ * The analytics tab returned.
22
+ */
23
+ 'type': string;
24
+ /**
25
+ * Tabs this account supports; any of them can be passed as `type`.
26
+ */
27
+ 'tabs': Array<string>;
28
+ 'period': AnalyticsPeriod;
29
+ 'initialSync': AccountAnalyticsInitialSync;
30
+ /**
31
+ * Provider- and tab-specific metrics. Chart series are lists of `{date, value}` points.
32
+ */
33
+ 'data': { [key: string]: any; };
34
+
35
+ static discriminator: string | undefined = undefined;
36
+
37
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
38
+ {
39
+ "name": "account",
40
+ "baseName": "account",
41
+ "type": "Account"
42
+ },
43
+ {
44
+ "name": "type",
45
+ "baseName": "type",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "name": "tabs",
50
+ "baseName": "tabs",
51
+ "type": "Array<string>"
52
+ },
53
+ {
54
+ "name": "period",
55
+ "baseName": "period",
56
+ "type": "AnalyticsPeriod"
57
+ },
58
+ {
59
+ "name": "initialSync",
60
+ "baseName": "initial_sync",
61
+ "type": "AccountAnalyticsInitialSync"
62
+ },
63
+ {
64
+ "name": "data",
65
+ "baseName": "data",
66
+ "type": "{ [key: string]: any; }"
67
+ } ];
68
+
69
+ static getAttributeTypeMap() {
70
+ return AccountAnalytics.attributeTypeMap;
71
+ }
72
+ }
73
+
@@ -0,0 +1,37 @@
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 AccountAnalyticsInitialSync {
16
+ 'inProgress': boolean;
17
+ 'progress'?: any | null;
18
+
19
+ static discriminator: string | undefined = undefined;
20
+
21
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
22
+ {
23
+ "name": "inProgress",
24
+ "baseName": "in_progress",
25
+ "type": "boolean"
26
+ },
27
+ {
28
+ "name": "progress",
29
+ "baseName": "progress",
30
+ "type": "any"
31
+ } ];
32
+
33
+ static getAttributeTypeMap() {
34
+ return AccountAnalyticsInitialSync.attributeTypeMap;
35
+ }
36
+ }
37
+
@@ -0,0 +1,49 @@
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 AccountSchedule {
16
+ /**
17
+ * ID of one of the post\'s accounts. Entries for accounts the post does not carry are ignored.
18
+ */
19
+ 'accountId': number;
20
+ 'date': string;
21
+ /**
22
+ * H:i, read in the request `timezone`. Must not be in the past.
23
+ */
24
+ 'time': string;
25
+
26
+ static discriminator: string | undefined = undefined;
27
+
28
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
29
+ {
30
+ "name": "accountId",
31
+ "baseName": "account_id",
32
+ "type": "number"
33
+ },
34
+ {
35
+ "name": "date",
36
+ "baseName": "date",
37
+ "type": "string"
38
+ },
39
+ {
40
+ "name": "time",
41
+ "baseName": "time",
42
+ "type": "string"
43
+ } ];
44
+
45
+ static getAttributeTypeMap() {
46
+ return AccountSchedule.attributeTypeMap;
47
+ }
48
+ }
49
+
@@ -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,34 @@
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 AddPostToQueueRequest {
16
+ /**
17
+ * Accepted and validated for consistency with the other scheduling endpoints; queue slots are always taken from the workspace posting schedule.
18
+ */
19
+ 'timezone'?: string;
20
+
21
+ static discriminator: string | undefined = undefined;
22
+
23
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24
+ {
25
+ "name": "timezone",
26
+ "baseName": "timezone",
27
+ "type": "string"
28
+ } ];
29
+
30
+ static getAttributeTypeMap() {
31
+ return AddPostToQueueRequest.attributeTypeMap;
32
+ }
33
+ }
34
+
@@ -0,0 +1,52 @@
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 AnalyticsPeriod {
16
+ 'startDate': string;
17
+ 'endDate': string;
18
+ /**
19
+ * Start of the equally long range before this one, used for comparisons.
20
+ */
21
+ 'previousStartDate': string;
22
+ 'previousEndDate': string;
23
+
24
+ static discriminator: string | undefined = undefined;
25
+
26
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
27
+ {
28
+ "name": "startDate",
29
+ "baseName": "start_date",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "endDate",
34
+ "baseName": "end_date",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "previousStartDate",
39
+ "baseName": "previous_start_date",
40
+ "type": "string"
41
+ },
42
+ {
43
+ "name": "previousEndDate",
44
+ "baseName": "previous_end_date",
45
+ "type": "string"
46
+ } ];
47
+
48
+ static getAttributeTypeMap() {
49
+ return AnalyticsPeriod.attributeTypeMap;
50
+ }
51
+ }
52
+
@@ -0,0 +1,39 @@
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 { AnalyticsPeriod } from './analyticsPeriod';
15
+ import { AnalyticsSummaryData } from './analyticsSummaryData';
16
+
17
+ export class AnalyticsSummary {
18
+ 'period': AnalyticsPeriod;
19
+ 'data': AnalyticsSummaryData;
20
+
21
+ static discriminator: string | undefined = undefined;
22
+
23
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24
+ {
25
+ "name": "period",
26
+ "baseName": "period",
27
+ "type": "AnalyticsPeriod"
28
+ },
29
+ {
30
+ "name": "data",
31
+ "baseName": "data",
32
+ "type": "AnalyticsSummaryData"
33
+ } ];
34
+
35
+ static getAttributeTypeMap() {
36
+ return AnalyticsSummary.attributeTypeMap;
37
+ }
38
+ }
39
+
@@ -0,0 +1,100 @@
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
+ * Cross-platform summary over every account that supports analytics. Chart series are lists of `{date, value}` points (or `{label, value}` when the axis is not a date).
17
+ */
18
+ export class AnalyticsSummaryData extends any {
19
+ 'totalFollowers'?: number;
20
+ /**
21
+ * Growth in the period with the change against the previous period.
22
+ */
23
+ 'followerGrowth'?: { [key: string]: any; };
24
+ /**
25
+ * Posts in the period with the change against the previous period.
26
+ */
27
+ 'totalPosts'?: { [key: string]: any; };
28
+ 'bestAccount'?: { [key: string]: any; };
29
+ 'needsAttention'?: { [key: string]: any; };
30
+ 'audienceChart'?: Array<{ [key: string]: any; }>;
31
+ 'leaderboard'?: Array<{ [key: string]: any; }>;
32
+ 'mostActive'?: { [key: string]: any; };
33
+ 'leastActive'?: { [key: string]: any; };
34
+ 'followerDistribution'?: Array<{ [key: string]: any; }>;
35
+ 'postingStreak'?: { [key: string]: any; };
36
+
37
+ static discriminator: string | undefined = undefined;
38
+
39
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
40
+ {
41
+ "name": "totalFollowers",
42
+ "baseName": "total_followers",
43
+ "type": "number"
44
+ },
45
+ {
46
+ "name": "followerGrowth",
47
+ "baseName": "follower_growth",
48
+ "type": "{ [key: string]: any; }"
49
+ },
50
+ {
51
+ "name": "totalPosts",
52
+ "baseName": "total_posts",
53
+ "type": "{ [key: string]: any; }"
54
+ },
55
+ {
56
+ "name": "bestAccount",
57
+ "baseName": "best_account",
58
+ "type": "{ [key: string]: any; }"
59
+ },
60
+ {
61
+ "name": "needsAttention",
62
+ "baseName": "needs_attention",
63
+ "type": "{ [key: string]: any; }"
64
+ },
65
+ {
66
+ "name": "audienceChart",
67
+ "baseName": "audience_chart",
68
+ "type": "Array<{ [key: string]: any; }>"
69
+ },
70
+ {
71
+ "name": "leaderboard",
72
+ "baseName": "leaderboard",
73
+ "type": "Array<{ [key: string]: any; }>"
74
+ },
75
+ {
76
+ "name": "mostActive",
77
+ "baseName": "most_active",
78
+ "type": "{ [key: string]: any; }"
79
+ },
80
+ {
81
+ "name": "leastActive",
82
+ "baseName": "least_active",
83
+ "type": "{ [key: string]: any; }"
84
+ },
85
+ {
86
+ "name": "followerDistribution",
87
+ "baseName": "follower_distribution",
88
+ "type": "Array<{ [key: string]: any; }>"
89
+ },
90
+ {
91
+ "name": "postingStreak",
92
+ "baseName": "posting_streak",
93
+ "type": "{ [key: string]: any; }"
94
+ } ];
95
+
96
+ static getAttributeTypeMap() {
97
+ return super.getAttributeTypeMap().concat(AnalyticsSummaryData.attributeTypeMap);
98
+ }
99
+ }
100
+
@@ -0,0 +1,62 @@
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 { AccountSchedule } from './accountSchedule';
15
+
16
+ export class ApprovePostRequest {
17
+ /**
18
+ * New date for the post (Y-m-d). Use together with `time`.
19
+ */
20
+ 'date'?: string;
21
+ /**
22
+ * New time for the post (H:i).
23
+ */
24
+ 'time'?: string;
25
+ /**
26
+ * Timezone `date`, `time` and `accounts_schedule` are read in. Defaults to the workspace timezone.
27
+ */
28
+ 'timezone'?: string;
29
+ /**
30
+ * Per-account departure times. When omitted, accounts keep their offsets from the post time.
31
+ */
32
+ 'accountsSchedule'?: Array<AccountSchedule>;
33
+
34
+ static discriminator: string | undefined = undefined;
35
+
36
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
37
+ {
38
+ "name": "date",
39
+ "baseName": "date",
40
+ "type": "string"
41
+ },
42
+ {
43
+ "name": "time",
44
+ "baseName": "time",
45
+ "type": "string"
46
+ },
47
+ {
48
+ "name": "timezone",
49
+ "baseName": "timezone",
50
+ "type": "string"
51
+ },
52
+ {
53
+ "name": "accountsSchedule",
54
+ "baseName": "accounts_schedule",
55
+ "type": "Array<AccountSchedule>"
56
+ } ];
57
+
58
+ static getAttributeTypeMap() {
59
+ return ApprovePostRequest.attributeTypeMap;
60
+ }
61
+ }
62
+
@@ -0,0 +1,41 @@
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 { BestPostingTimesTimesInner } from './bestPostingTimesTimesInner';
15
+
16
+ export class BestPostingTimes {
17
+ 'timezone': string;
18
+ /**
19
+ * The next recommended time per account. Accounts without enough history are left out.
20
+ */
21
+ 'times': Array<BestPostingTimesTimesInner>;
22
+
23
+ static discriminator: string | undefined = undefined;
24
+
25
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
26
+ {
27
+ "name": "timezone",
28
+ "baseName": "timezone",
29
+ "type": "string"
30
+ },
31
+ {
32
+ "name": "times",
33
+ "baseName": "times",
34
+ "type": "Array<BestPostingTimesTimesInner>"
35
+ } ];
36
+
37
+ static getAttributeTypeMap() {
38
+ return BestPostingTimes.attributeTypeMap;
39
+ }
40
+ }
41
+
@@ -0,0 +1,49 @@
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 BestPostingTimesTimesInner {
16
+ 'accountId': number;
17
+ 'accountUuid': string;
18
+ 'date': string;
19
+ 'time': string;
20
+
21
+ static discriminator: string | undefined = undefined;
22
+
23
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24
+ {
25
+ "name": "accountId",
26
+ "baseName": "account_id",
27
+ "type": "number"
28
+ },
29
+ {
30
+ "name": "accountUuid",
31
+ "baseName": "account_uuid",
32
+ "type": "string"
33
+ },
34
+ {
35
+ "name": "date",
36
+ "baseName": "date",
37
+ "type": "string"
38
+ },
39
+ {
40
+ "name": "time",
41
+ "baseName": "time",
42
+ "type": "string"
43
+ } ];
44
+
45
+ static getAttributeTypeMap() {
46
+ return BestPostingTimesTimesInner.attributeTypeMap;
47
+ }
48
+ }
49
+
@@ -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).